Submits an order to the server. Returns a JSON Order
object if successful.
A JSON object containing information about an order.
A JSON Order
object that has been persisted in Toast. The returned Order contains generated property values for the check amounts, taxes, service charges, and GUIDs for persisted entities.
Either the request contains data that is not supported by the current version of the API as described (e.g. specifying credit card as the payment type.), or the order contains an item that is negatively priced.
An entity referenced in the order does not exist, or belongs to a restaurant the authenticated client is not authorized to access.
The number of checks in the submitted order exceeds the limit.
The request did not have "application/json" in the Content-Type header.
An unexpected internal error occurred. There is a requestId attached to this error that can be referenced by Toast.
{- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "openedDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "promisedDate": "2019-08-24T14:15:22Z",
- "diningOption": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "checks": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "openedDate": "2019-08-24T14:15:22Z",
- "closedDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "deletedDate": "2019-08-24T14:15:22Z",
- "deleted": true,
- "selections": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "item": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": "string",
- "externalId": "string"
}, - "itemGroup": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": "string",
- "externalId": "string"
}, - "optionGroup": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": "string",
- "externalId": "string"
}, - "preModifier": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "quantity": 0,
- "seatNumber": 0,
- "unitOfMeasure": "NONE",
- "selectionType": "NONE",
- "salesCategory": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "appliedDiscounts": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "name": "string",
- "discountAmount": 0,
- "nonTaxDiscountAmount": 0,
- "discount": {
- "guid": null,
- "entityType": null
}, - "triggers": [
- null
], - "approver": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "processingState": "PENDING_APPLIED",
- "loyaltyDetails": {
- "vendor": null,
- "referenceId": null
}, - "comboItems": [
- null
], - "appliedPromoCode": "string",
- "discountType": "BOGO",
- "discountPercent": 0
}
], - "deferred": true,
- "preDiscountPrice": 0,
- "price": 0,
- "tax": 0,
- "voided": true,
- "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "voidReason": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "refundDetails": {
- "refundAmount": 0,
- "taxRefundAmount": 0,
- "refundTransaction": {
- "guid": "string",
- "entityType": "string"
}
}, - "displayName": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiers": [
- { }
], - "fulfillmentStatus": "NEW",
- "taxInclusion": "INCLUDED",
- "appliedTaxes": [
- {
- "guid": "string",
- "entityType": "string",
- "taxRate": {
- "guid": null,
- "entityType": null
}, - "name": "string",
- "rate": 0,
- "taxAmount": 0,
- "type": "PERCENT",
- "facilitatorCollectAndRemitTax": true
}
], - "diningOption": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "openPriceAmount": 0,
- "receiptLinePrice": 0,
- "optionGroupPricingMode": "INCLUDED",
- "externalPriceAmount": 0
}
], - "customer": {
- "guid": "string",
- "entityType": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "phoneToken": "string",
- "email": "string",
- "emailToken": "string"
}, - "appliedLoyaltyInfo": {
- "guid": "string",
- "entityType": "string",
- "loyaltyIdentifier": "string",
- "maskedLoyaltyIdentifier": "string",
- "vendor": "TOAST",
- "accrualFamilyGuid": "string",
- "accrualText": "string"
}, - "taxExempt": false,
- "displayNumber": "string",
- "appliedServiceCharges": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "chargeAmount": 0,
- "serviceCharge": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "chargeType": "FIXED",
- "name": "string",
- "delivery": true,
- "takeout": true,
- "dineIn": true,
- "gratuity": true,
- "taxable": true,
- "appliedTaxes": [
- {
- "guid": "string",
- "entityType": "string",
- "taxRate": {
- "guid": null,
- "entityType": null
}, - "name": "string",
- "rate": 0,
- "taxAmount": 0,
- "type": "PERCENT",
- "facilitatorCollectAndRemitTax": true
}
], - "serviceChargeCalculation": "PRE_DISCOUNT",
- "refundDetails": {
- "refundAmount": 0,
- "taxRefundAmount": 0,
- "refundTransaction": {
- "guid": "string",
- "entityType": "string"
}
}
}
], - "amount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "payments": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "paidDate": "2019-08-24T14:15:22Z",
- "paidBusinessDate": 0,
- "type": "CASH",
- "cardEntryMode": "SWIPED",
- "amount": 0,
- "tipAmount": 0,
- "amountTendered": 0,
- "cardType": "VISA",
- "last4Digits": "string",
- "originalProcessingFee": 0,
- "server": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "referenceCode": "string",
- "cashDrawer": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "refundStatus": "NONE",
- "refund": {
- "refundAmount": 0,
- "tipRefundAmount": 0,
- "refundDate": "2019-08-24T14:15:22Z",
- "refundBusinessDate": 0,
- "refundTransaction": {
- "guid": "string",
- "entityType": "string"
}
}, - "paymentStatus": "OPEN",
- "voidInfo": {
- "voidUser": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "voidApprover": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "voidReason": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
}, - "houseAccount": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "otherPayment": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "createdDevice": {
- "id": "string"
}, - "lastModifiedDevice": {
- "id": "string"
}, - "mcaRepaymentAmount": 0,
- "cardPaymentId": "string",
- "giftCard": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "giftCardInfo": {
- "guid": "string",
- "entityType": "string",
- "storedValueBalance": 0,
- "rewardsBalance": 0,
- "authRequestId": "string",
- "authorizationState": "VALIDATED",
- "cardNumberIdentifier": "string"
}, - "orderGuid": "string",
- "checkGuid": "string",
- "receiptToken": "string",
- "cardHolderFirstName": "string",
- "cardHolderLastName": "string"
}
], - "tabName": "string",
- "paymentStatus": "OPEN",
- "appliedDiscounts": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "name": "string",
- "discountAmount": 0,
- "nonTaxDiscountAmount": 0,
- "discount": {
- "guid": "string",
- "entityType": "string"
}, - "triggers": [
- {
- "selection": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "quantity": 0
}
], - "approver": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "processingState": "PENDING_APPLIED",
- "loyaltyDetails": {
- "vendor": "TOAST",
- "referenceId": "string"
}, - "comboItems": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
], - "appliedPromoCode": "string",
- "discountType": "BOGO",
- "discountPercent": 0
}
], - "voided": true,
- "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "paidDate": "2019-08-24T14:15:22Z",
- "createdDevice": {
- "id": "string"
}, - "lastModifiedDevice": {
- "id": "string"
}, - "appliedPreauthInfo": {
- "guid": "string",
- "token": "string",
- "oneTimeUse": true,
- "preAuthAmount": 0,
- "cardType": "VISA",
- "readerType": "ACS_ACR31",
- "last4CardDigits": "string",
- "cardHolderFirstName": "string",
- "cardHolderLastName": "string",
- "cardHolderhash4": "string",
- "cardHolderhash6": "string",
- "magStripeName": "string",
- "cardHolderExpirationMonth": "string",
- "cardHolderExpirationYear": "string",
- "useCount": 0
}
}
], - "table": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "serviceArea": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "restaurantService": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "revenueCenter": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "source": "string",
- "duration": 0,
- "deliveryInfo": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zipCode": "string",
- "latitude": 0,
- "longitude": 0,
- "notes": "string",
- "deliveredDate": "2019-08-24T14:15:22Z",
- "dispatchedDate": "2019-08-24T14:15:22Z",
- "deliveryEmployee": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "deliveryState": "PENDING"
}, - "requiredPrepTime": "string",
- "estimatedFulfillmentDate": "2019-08-24T14:15:22Z",
- "numberOfGuests": 0,
- "voided": true,
- "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "paidDate": "2019-08-24T14:15:22Z",
- "closedDate": "2019-08-24T14:15:22Z",
- "deletedDate": "2019-08-24T14:15:22Z",
- "deleted": true,
- "businessDate": 0,
- "server": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "pricingFeatures": [
- "TAXESV2"
], - "approvalStatus": "NEEDS_APPROVAL",
- "guestOrderStatus": "string",
- "createdDevice": {
- "id": "string"
}, - "createdDate": "2019-08-24T14:15:22Z",
- "initialDate": 0,
- "lastModifiedDevice": {
- "id": "string"
}, - "curbsidePickupInfo": {
- "guid": "string",
- "entityType": "string",
- "transportColor": "string",
- "transportDescription": "string",
- "notes": "string"
}, - "deliveryServiceInfo": {
- "guid": "string",
- "entityType": "string",
- "providerId": "string",
- "providerName": "string",
- "driverName": "string",
- "driverPhoneNumber": "string",
- "providerInfo": "string"
}, - "marketplaceFacilitatorTaxInfo": {
- "facilitatorCollectAndRemitTaxOrder": true,
- "taxes": [
- {
- "guid": "string",
- "entityType": "string",
- "taxRate": {
- "guid": "string",
- "entityType": "string"
}, - "name": "string",
- "rate": 0,
- "taxAmount": 0,
- "type": "PERCENT",
- "facilitatorCollectAndRemitTax": true
}
]
}
}
{- "guid": "89488287-f259-435b-a654-0bc391596af0",
- "entityType": "Order",
- "externalId": null,
- "revenueCenter": null,
- "server": {
- "guid": "c89d1e72-1888-469f-a24b-506c66eafab7",
- "entityType": "RestaurantUser",
- "externalId": null
}, - "lastModifiedDevice": {
- "id": null
}, - "source": "API",
- "voidDate": null,
- "duration": null,
- "businessDate": 20210730,
- "paidDate": null,
- "restaurantService": null,
- "voided": false,
- "estimatedFulfillmentDate": "2021-07-30T12:12:46.235+0000",
- "table": null,
- "requiredPrepTime": "PT15M",
- "approvalStatus": "NEEDS_APPROVAL",
- "deliveryInfo": {
- "address1": "401 Park Drive",
- "address2": "Suite 801",
- "city": "Boston",
- "state": "MA",
- "zipCode": "02215",
- "latitude": 42.3446671,
- "longitude": -71.1023575,
- "notes": "Please ring the doorbell.",
- "deliveredDate": null,
- "dispatchedDate": null,
- "deliveryEmployee": null,
- "deliveryState": null
}, - "serviceArea": null,
- "curbsidePickupInfo": null,
- "numberOfGuests": 1,
- "diningOption": {
- "guid": "18855a26-40d4-4a8f-b484-c6af211dd597",
- "entityType": "DiningOption",
- "externalId": null
}, - "openedDate": "2021-07-30T11:57:46.235+0000",
- "voidBusinessDate": null,
- "checks": [
- {
- "guid": "cbcb6fd5-d973-4e44-9b91-2abcee5ea6cd",
- "entityType": "Check",
- "externalId": null,
- "displayNumber": "pdesjardins-api-1627646263",
- "payments": [
- {
- "guid": "88642b2d-c359-4b96-bb8e-9cb3f5c2ac6a",
- "entityType": "OrderPayment",
- "externalId": null,
- "originalProcessingFee": null,
- "server": null,
- "cashDrawer": null,
- "lastModifiedDevice": {
- "id": null
}, - "refundStatus": "NONE",
- "type": "OTHER",
- "voidInfo": null,
- "checkGuid": "cbcb6fd5-d973-4e44-9b91-2abcee5ea6cd",
- "otherPayment": {
- "guid": "0dc19214-d29e-4ab9-a773-27e5812999c7",
- "entityType": "AlternatePaymentType",
- "externalId": null
}, - "paidDate": "2021-07-30T11:57:46.237+0000",
- "orderGuid": "89488287-f259-435b-a654-0bc391596af0",
- "cardEntryMode": null,
- "paymentStatus": "CAPTURED",
- "amount": 8.5,
- "tipAmount": 0,
- "amountTendered": null,
- "cardType": null,
- "houseAccount": null,
- "mcaRepaymentAmount": null,
- "createdDevice": {
- "id": null
}, - "paidBusinessDate": 20210730,
- "last4Digits": null,
- "refund": null
}
], - "appliedDiscounts": [ ],
- "lastModifiedDevice": {
- "id": null
}, - "voidDate": null,
- "paidDate": null,
- "appliedLoyaltyInfo": null,
- "voided": false,
- "paymentStatus": "OPEN",
- "amount": 5,
- "tabName": null,
- "taxExempt": false,
- "openedDate": "2021-07-30T11:57:46.235+0000",
- "totalAmount": 5,
- "selections": [
- {
- "guid": "2c8b6ece-c503-4f85-aed7-6a8c6526ba0d",
- "entityType": "MenuItemSelection",
- "externalId": null,
- "deferred": false,
- "preDiscountPrice": 5,
- "voidReason": null,
- "optionGroup": null,
- "displayName": "蟹餅 CRAB CAKES",
- "appliedDiscounts": [ ],
- "modifiers": [ ],
- "seatNumber": -1,
- "voidDate": null,
- "fulfillmentStatus": "NEW",
- "optionGroupPricingMode": null,
- "salesCategory": {
- "guid": "c0915e46-341e-4ec0-b46e-cb87fab729fd",
- "entityType": "SalesCategory",
- "externalId": null
}, - "selectionType": "NONE",
- "price": 5,
- "voided": false,
- "appliedTaxes": [ ],
- "itemGroup": {
- "guid": "881472e6-dd94-48c6-b5c6-25e51a864208",
- "entityType": "MenuGroup",
- "externalId": null
}, - "item": {
- "guid": "9c59d4ab-8242-450f-8f36-b16e1b3ab802",
- "entityType": "MenuItem",
- "externalId": null
}, - "taxInclusion": "NOT_INCLUDED",
- "quantity": 1,
- "receiptLinePrice": 5,
- "unitOfMeasure": "NONE",
- "refundDetails": null,
- "tax": 0,
- "diningOption": {
- "guid": "18855a26-40d4-4a8f-b484-c6af211dd597",
- "entityType": "DiningOption",
- "externalId": null
}, - "voidBusinessDate": null,
- "createdDate": "2021-07-30T11:57:46.269+0000",
- "preModifier": null,
- "modifiedDate": "2021-07-30T11:57:46.269+0000"
}
], - "voidBusinessDate": null,
- "createdDate": "2021-07-30T11:57:46.282+0000",
- "deleted": false,
- "createdDevice": {
- "id": null
}, - "closedDate": null,
- "deletedDate": null,
- "modifiedDate": "2021-07-30T11:57:46.282+0000",
- "taxAmount": 0,
- "appliedServiceCharges": [ ],
- "customer": {
- "guid": "970e92e6-33b3-4caa-876b-2c6ef528ef4e",
- "entityType": "Customer",
- "firstName": "Severe",
- "lastName": "Thibault",
- "phone": "5555555555",
- "email": "severe@example.com"
}
}
], - "deleted": false,
- "createdDevice": {
- "id": null
}, - "createdDate": "2021-07-30T11:57:46.286+0000",
- "closedDate": null,
- "deletedDate": null,
- "modifiedDate": "2021-07-30T11:57:46.286+0000",
- "promisedDate": null,
- "pricingFeatures": [
- "TAXESV2"
]
}