Owneat Technical Guide main Help

Create a new order.

POST method/api/v1/Orders

Request parameters

{ "customerGuid": "7d4e0139-b4a3-3dec-8d12-0423aeb2bf5d", "tableGuid": "d1712ba6-b592-3fee-8e5d-2973dbb71458", "orderLineItemsCommand": [ { "productId": "cfe72f93-8f57-3f93-8d77-049c4d4e765d", "name": "example", "unitPrice": 99.0, "quantity": 49, "externalPaymentId": "example", "categoryProductData": { "categoryName": "example", "servingPeriod": "0" }, "vatRate": "0", "instructions": "example", "personalizations": [ { "name": "example", "selectedChoices": [ { "name": "example", "price": 1.0 } ] } ] } ], "productsToSubmitForDecrement": {} }

Responses

{ "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "customerId": "c7fe6c0d-a028-3abd-8e96-b311aeb9eedc", "tableId": "11ecb9a0-25db-3510-8366-7d1af44472b9", "restaurantId": "f459eb7f-8954-39fb-b7ad-424937beb163", "totalPrice": 55.0, "unpaidTotalPrice": 26.0, "state": "0", "lineItems": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "productId": "cfe72f93-8f57-3f93-8d77-049c4d4e765d", "orderId": "61e9abea-a2ba-3e12-9655-5c135d818e6e", "name": "example", "categoryProductData": { "categoryName": "example", "servingPeriod": "0" }, "quantity": 49, "unitPrice": 99.0, "vatRate": "0", "externalPaymentId": "example", "payingCustomerId": "73d4fd54-ee66-3d8a-86a0-4cebd154dc0d", "isRefunded": false, "isPaid": true, "isCanceled": false, "isAcknowledged": true, "isServed": false, "totalPrice": 55.0, "instructions": "example", "personalizations": [ { "name": "example", "selectedChoices": [ { "name": "example", "price": 1.0 } ] } ] } ], "needsToBePaid": false, "isTreatmentOver": true, "paymentState": "0" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
Last modified: 21 May 2024