Updates the delivery information of an order that uses the DELIVERY
dining option.
You can use this endpoint to update the delivery time, dispatch time, the
employee who is delivering the order, the delivery state, or a
combination of the four.
Specify the Toast platform GUID of the
order in the PATCH
path parameters. Returns a JSON
Order
object if successful.
For more information, see the Toast Developer Guide.
A JSON deliveryInfo
object
containing the delivery information you want to update for an order.
You can update the deliveredDate
, dispatchedDate
, deliveryState
, or
DeliveryEmployee
.
These are the only values you can update with this endpoint.
Success. The response body contains the full order JSON, including information you updated in the deliveryInfo
object.
The request contains data that is not supported by the API.
{- "deliveredDate": "2019-08-24T14:15:22Z",
- "dispatchedDate": "2019-08-24T14:15:22Z",
- "deliveryState": "PENDING",
- "deliveryEmployee": "string"
}
{- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "openedDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "promisedDate": "2019-08-24T14:15:22Z",
- "channelGuid": "3c66b5cf-1850-49e6-aef3-40576e6de979",
- "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",
- "multiLocationId": "string",
- "externalId": "string"
}, - "quantity": 0,
- "seatNumber": 0,
- "unitOfMeasure": "NONE",
- "selectionType": "NONE",
- "salesCategory": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": "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",
- "appliedDiscountReason": {
- "name": null,
- "description": null,
- "comment": null,
- "discountReason": null
}, - "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,
- "displayName": "string",
- "jurisdiction": "string",
- "jurisdictionType": "string"
}
], - "diningOption": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "openPriceAmount": 0,
- "receiptLinePrice": 0,
- "optionGroupPricingMode": "INCLUDED",
- "externalPriceAmount": 0,
- "splitOrigin": {
- "guid": "string",
- "entityType": "string"
}
}
], - "customer": {
- "guid": "string",
- "entityType": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "phoneCountryCode": "string",
- "email": "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,
- "displayName": "string",
- "jurisdiction": "string",
- "jurisdictionType": "string"
}
], - "serviceChargeCalculation": "PRE_DISCOUNT",
- "refundDetails": {
- "refundAmount": 0,
- "taxRefundAmount": 0,
- "refundTransaction": {
- "guid": "string",
- "entityType": "string"
}
}, - "serviceChargeCategory": "SERVICE_CHARGE",
- "paymentGuid": "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"
}, - "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",
- "orderGuid": "string",
- "checkGuid": "string",
- "tenderTransactionGuid": "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",
- "appliedDiscountReason": {
- "name": "string",
- "description": "string",
- "comment": "string",
- "discountReason": {
- "guid": "string",
- "entityType": "string"
}
}, - "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"
}, - "duration": 0,
- "openedBy": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
}
], - "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",
- "administrativeArea": "string",
- "state": "string",
- "zipCode": "string",
- "country": "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",
- "originalQuotedDeliveryDate": "string"
}, - "marketplaceFacilitatorTaxInfo": {
- "facilitatorCollectAndRemitTaxOrder": true,
- "taxes": [
- {
- "guid": "string",
- "entityType": "string",
- "taxRate": {
- "guid": "string",
- "entityType": "string"
}, - "name": "string",
- "rate": 0,
- "taxAmount": 0,
- "type": "PERCENT",
- "facilitatorCollectAndRemitTax": true,
- "displayName": "string",
- "jurisdiction": "string",
- "jurisdictionType": "string"
}
]
}, - "createdInTestMode": true,
- "appliedPackagingInfo": {
- "guid": "string",
- "entityType": "string",
- "appliedPackagingItems": [
- {
- "guid": "string",
- "entityType": "string",
- "itemConfigId": "string",
- "inclusion": "YES",
- "itemTypes": [
- "string"
], - "guestDisplayName": "string"
}
]
}, - "excessFood": true,
- "displayNumber": "string"
}