Order
The unique ID of the order.
8948843The version of this order. The version may increment even when no visible changes occur, due to internal processing.
4Indicates whether this is the latest version of the order known to Scoffable.
trueThe unique ID of the vendor location processing the order.
ebd97b79-02b1-41e8-94b4-7821ca2c77abThe high-level status of the order. Possible values:
- placed: The initial status of the order.
- rejected: The order (which was never accepted) has been cancelled.
- accepted: The order was accepted by the vendor location.
- cancelled: The order (previously accepted) has been cancelled.
Possible values: [placed, rejected, accepted, cancelled]
acceptedThe fulfillment method of the order. Possible values:
- collection: The consumer will pick up the order from the vendor.
- delivery: The order will be delivered to the consumer's address.
Possible values: [collection, delivery]
deliveryThe timestamp when the order was placed by the consumer.
The timestamp when the order was accepted by the vendor. Only present for accepted orders.
The timestamp when the order was cancelled. Only present for rejected or cancelled orders.
The timestamp when the order was dispatched. Only present for delivery orders with tracking.
The timestamp when the order was delivered to the consumer. Only present for delivery orders with tracking.
The timestamp when the order was returned to the vendor. Only present for delivery orders with tracking.
deliveryFee object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPserviceFee object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPtotal object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPitems object[]
The line items in the order. May include products, discounts, or vouchers.
The unique identifier for this item.
The name of the item
Is this item subject to an age restriction check?
An optional item barcode
An optional item reference that can be used to identify the item at the vendor
What this line item is
- product: A physical product that has been ordered
- offer: e.g You've added 2 items and you get the third free ... the offer entry would be a price negation of the third item.
- voucher: The consumer has used a promotional voucher code
- adjustment: An adjustment made after the order was placed (defective products, price matching etc).
Possible values: [product, offer, voucher, adjustment]
optionCategories object[]
If this item can be customised, this contains the categories of options that can be chosen (e.g 'Toppings', 'Sides' etc)
The name of the group of options (e.g 'Sides', 'Toppings', 'Drinks' etc).
selectedOptions object[]
The options that were selected (e.g 'Plain Chips', 'Peri-Peri Chips', 'Noodles' etc)
The name of the selected option (e.g 'Chips')
optionPrice object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPThe quantity of this item that was ordered.
The quantity of this item that was supplied to the customer.
price object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPtotal object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPpriceAdjustmentDetails object
If the price of this item was adjusted after the order was placed, this contains further information
If this item is an adjustment, this contains a list of items that this adjustment relates to
If this item is a product which has been price adjusted, this is the associated adjustment id
substitutionDetails object
If this item was substituted by another item / substitutes an item, this contains further information
List of item ids that this item has been replaced by
List of item ids that this item replaces
customerPayments object[]
The payments made for the order, including who collected them (Scoffable or the vendor).
The type of payment collected
Possible values: [online, voucher, cash]
onlineWho is receiving the funds from the consumer
Possible values: [scoffable, vendor]
scoffablepayment object
The amount of the payment
The amount in the currency specified. Note that the amount will be represented as a whole number from the least significant digit (e.g 523 USD = $5.23)
1099ISO 4217 Currency code e.g 'GBP'
GBPIndicates who provided the delivery service.
Possible values: [vendor, uber]
vendor{
"id": 8948843,
"version": 4,
"latestVersion": true,
"vendorId": "ebd97b79-02b1-41e8-94b4-7821ca2c77ab",
"status": "accepted",
"type": "delivery",
"placedAt": "2024-07-29T15:51:28.071Z",
"acceptedAt": "2024-07-29T15:51:28.071Z",
"cancelledAt": "2024-07-29T15:51:28.071Z",
"dispatchedAt": "2024-07-29T15:51:28.071Z",
"deliveredAt": "2024-07-29T15:51:28.071Z",
"returnedAt": "2024-07-29T15:51:28.071Z",
"deliveryFee": {
"amount": 1099,
"currency": "GBP"
},
"serviceFee": {
"amount": 1099,
"currency": "GBP"
},
"total": {
"amount": 1099,
"currency": "GBP"
},
"items": [
{
"id": "string",
"name": "string",
"ageRestricted": true,
"barcode": "string",
"vendorReference": "string",
"type": "product",
"optionCategories": [
{
"name": "string",
"selectedOptions": [
{
"name": "string",
"optionPrice": {
"amount": 1099,
"currency": "GBP"
}
}
]
}
],
"quantityOrdered": 0,
"quantityFulfilled": 0,
"price": {
"amount": 1099,
"currency": "GBP"
},
"total": {
"amount": 1099,
"currency": "GBP"
},
"priceAdjustmentDetails": {
"itemsAdjusted": [
"string"
],
"relatedPriceAdjustment": "string"
},
"substitutionDetails": {
"substitutedBy": [
"string"
],
"substitutedFor": [
"string"
]
}
}
],
"customerPayments": [
{
"type": "online",
"collectedBy": "scoffable",
"payment": {
"amount": 1099,
"currency": "GBP"
}
}
],
"deliveryProvider": "vendor"
}