Calculates the check price amounts, tax amounts, and service
charges for an Order
object you supply as a required message
body parameter. The prices
endpoint validates the order you
submit to ensure all referenced data exists and that you include
item selections in the expected structure with all required modifier
options. Some values that would be present in the response data when
creating an order are not present in the response data for the prices
endpoint. For example, the order GUID is not set because the
Toast platform does not create persistent data for the order.
The calculated price can change between requests to the
prices
endpoint with the same Order
object if enough time
passes between the requests. The difference in price is
possible because the restaurant configuration can change and
because some pricing configuration is based on time and date
schedules.
A required JSON Order
object containing information about
the checks, item selections, modifier options, and other parts
of the order.
Success. The response body contains a JSON Order
object with
values for check amounts, taxes, service charges, and other parts
of the order. Because this endpoint only calculates prices,
no parts of the order persist in the Toast platform and do
not have GUIDs in the response object.
Either the request contains data that is not supported by the current version of the API as described or the order contains an item that is negatively priced.
The API client does not have access to the restaurant, the
API client does not have the orders:read
scope, or both.
An entity referenced in the order does not exist, or belongs to a restaurant the API 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
HTTP header field.
An unexpected internal error occurred. There is a
requestId
attached to the error that can be referenced by
the Toast support team.
"string"
{- "orders": [
- {
- "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": null,
- "entityType": null,
- "multiLocationId": null,
- "externalId": null
}, - "itemGroup": {
- "guid": null,
- "entityType": null,
- "multiLocationId": null,
- "externalId": null
}, - "optionGroup": {
- "guid": null,
- "entityType": null,
- "multiLocationId": null,
- "externalId": null
}, - "preModifier": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "quantity": 0,
- "seatNumber": 0,
- "unitOfMeasure": "NONE",
- "selectionType": "NONE",
- "salesCategory": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "appliedDiscounts": [
- null
], - "deferred": true,
- "preDiscountPrice": 0,
- "price": 0,
- "tax": 0,
- "voided": true,
- "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "voidReason": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "refundDetails": {
- "refundAmount": null,
- "taxRefundAmount": null,
- "refundTransaction": null
}, - "displayName": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiers": [
- null
], - "fulfillmentStatus": "NEW",
- "taxInclusion": "INCLUDED",
- "appliedTaxes": [
- null
], - "diningOption": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "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": null,
- "entityType": null,
- "externalId": null
}, - "chargeType": "FIXED",
- "name": "string",
- "delivery": true,
- "takeout": true,
- "dineIn": true,
- "gratuity": true,
- "taxable": true,
- "appliedTaxes": [
- null
], - "serviceChargeCalculation": "PRE_DISCOUNT",
- "refundDetails": {
- "refundAmount": null,
- "taxRefundAmount": null,
- "refundTransaction": null
}
}
], - "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": null,
- "entityType": null,
- "externalId": null
}, - "referenceCode": "string",
- "cashDrawer": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "refundStatus": "NONE",
- "refund": {
- "refundAmount": null,
- "tipRefundAmount": null,
- "refundDate": null,
- "refundBusinessDate": null,
- "refundTransaction": null
}, - "paymentStatus": "OPEN",
- "voidInfo": {
- "voidUser": null,
- "voidApprover": null,
- "voidDate": null,
- "voidBusinessDate": null,
- "voidReason": null
}, - "houseAccount": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "otherPayment": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "createdDevice": {
- "id": null
}, - "lastModifiedDevice": {
- "id": null
}, - "mcaRepaymentAmount": 0,
- "cardPaymentId": "string",
- "giftCard": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "giftCardInfo": {
- "guid": null,
- "entityType": null,
- "storedValueBalance": null,
- "rewardsBalance": null,
- "authRequestId": null,
- "authorizationState": null,
- "cardNumberIdentifier": null
}, - "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": 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
}
], - "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
}
]
}
}
]
}