action just_eat_put_order_requires_delivery_acceptance { label: "Order requires delivery acceptance" description: "This webhook will be invoked when we have determined that an order is required acceptance for delivery. Upon receiving the request, the order should be scheduled for pickup by a courier/driver. We expect an immediate `201` response from this webhook to denote that you have received the request." provider: just_eat method: PUT path: "/order-requires-delivery-acceptance" encoding: json input: { type: "array" items: { type: "object" properties: { BasketInfo: { type: "object" description: "Basket data" properties: { BasketId: { type: "string" description: "Unique Basket Id for the Order." } DeliveryCharge: { type: "number" format: "double" description: "Amount of cost that comes from delivery." } Discount: { type: "number" format: "double" description: "The discount amount, used in conjunction with `DiscountType`." } Discounts: { type: "array" description: "Any Discounts applied to the Order." items: { type: "object" description: "Discount data" properties: { Discount: { type: "number" format: "int32" description: "The discount amount, used in conjunction with `DiscountType`." } DiscountType: { type: "string" description: "The type of discount, e.g. a percentage or the order or fixed amount." } Id: { type: "number" format: "int32" description: "Basket item id." } QualifyingValue: { type: "number" format: "double" description: "The minimum order amount in order for this discount to be applicable." } } } } GroupedBasketItems: { type: "array" description: "Grouped basket items" items: { type: "object" description: "An item in the Basket." properties: { BasketItem: { type: "object" description: "An item in the Basket." properties: { CombinedPrice: { type: "number" format: "double" description: "Unit Price plus individual Meal Part item cost." } Discounts: { type: "array" description: "Any discounts applied to this specific item." items: { type: "object" description: "Discount data" properties: { Amount: { type: "object" additionalProperties: true } DiscountType: { type: "object" additionalProperties: true } } } } MealParts: { type: "array" description: "Represents sub-parts of a meal." items: { type: "object" description: "Meal part data" properties: { GroupId: { type: "object" additionalProperties: true } MealPartId: { type: "object" additionalProperties: true } Name: { type: "object" additionalProperties: true } OptionalAccessories: { type: "object" additionalProperties: true } RequiredAccessories: { type: "object" additionalProperties: true } Synonym: { type: "object" additionalProperties: true } } } } MenuCardNumber: { type: "string" description: "Menu card number." } MultiBuyDiscounts: { type: "array" description: "Any multi-purchase discounts applied to this item." items: { type: "object" description: "Multi-purchase discount data" properties: { Amount: { type: "object" additionalProperties: true } DiscountType: { type: "object" additionalProperties: true } OrderItemId: { type: "object" additionalProperties: true } ProductTypeId: { type: "object" additionalProperties: true } } } } Name: { type: "string" description: "The Item name, e.g. Chicken Tikka Masala or Family Meal Deal 3." } OptionalAccessories: { type: "array" description: "An option item added to the Basket Item, this may be options such as Garlic Bread or a bottle of Coke." items: { type: "object" description: "Optional accessory" properties: { Name: { type: "object" additionalProperties: true } OptionalAccessoryId: { type: "object" additionalProperties: true } Quantity: { type: "object" additionalProperties: true } UnitPrice: { type: "object" additionalProperties: true } } } } ProductId: { type: "number" format: "int32" description: "Id of the Product." } ProductTypeId: { type: "number" format: "int32" description: "Id of the Product." } RequiredAccessories: { type: "array" description: "Items required as part of the Item, for example, Pizza base sauce." items: { type: "object" description: "Required accessory" properties: { GroupId: { type: "object" additionalProperties: true } Name: { type: "object" additionalProperties: true } RequiredAccessoryId: { type: "object" additionalProperties: true } UnitPrice: { type: "object" additionalProperties: true } } } } Synonym: { type: "string" description: "Legacy - ignore." } UnitPrice: { type: "number" format: "double" description: "The price of the item." } } } CombinedPrice: { type: "number" format: "double" description: "The total price of the Basket Item (including discounts)." } MenuCardNumber: { type: "string" description: "Menu card number." } OrderSubId: { type: "number" format: "int32" description: "Order `SubId`" } Quantity: { type: "number" format: "int32" description: "The quantity of Basket Items requested." } } } } MenuId: { type: "number" format: "int32" description: "Id of the Restaurant's menu." } MultiBuyDiscount: { type: "number" format: "double" description: "MultiBuy discount." } SubTotal: { type: "number" format: "double" description: "The Basket total cost, excluding any discounts." } ToSpend: { type: "number" format: "double" description: "Amount to spend." } Total: { type: "number" format: "double" description: "Total price of the Order." } } } CustomerInfo: { type: "object" description: "Customer data" properties: { Address: { type: "string" description: "Customer Address. Note that Address is comma delimited." } City: { type: "string" description: "The name of the city where the Customer is located." } DisplayPhoneNumber: { type: "string" description: "The customer's masked phone number." } Email: { type: "string" description: "Email address for the Customer." } Id: { type: "string" description: "The JUST EAT Customer Id." } Latitude: { type: "number" format: "double" description: "Customer address latitude. Will be 0 if not provided." } LocationAccuracyDescription: { type: "string" description: "Location accuracy description" } LocationAccuracyInMeters: { type: "number" format: "double" description: "Accuracy of the location data in meters." } LocationSource: { type: "string" description: "Provider of the location data." } Longitude: { type: "number" format: "double" description: "Customer address longitude. Will be 0 if not provided." } Name: { type: "string" description: "The name of the Customer." } PhoneMaskingCode: { type: "string" description: "Code to use when calling customer phone masked number (`DisplayPhoneNumber`) about this order. Null if phone masking not enabled" } PhoneNumber: { type: "string" description: "The customer's unmasked phone number. Please don't expose this to drivers, instead use this number to provide your own phone masking number or use the JustEat masked number `DisplayPhoneNumber` below" } Postcode: { type: "string" description: "The post code where Customer is located." } PreviousRestuarantOrderCount: { type: "number" format: "int32" description: "The number of Orders the Customer has placed at this Restaurant via JUST EAT" } TimeZone: { type: "string" description: "Customer timezone, e.g. 'Central European Standard Time'." } } } CustomerOrderId: { type: "number" format: "int32" description: "This is a deprecated customer-facing ID that we maintain to support existing implementations." } FriendlyOrderReference: { type: "string" description: "The customer facing identifier for the order, which should be used in any UI or receipts to identify the order to the customer, driver or restaurant. This identifier is not guaranteed to be globally unique." } Id: { type: "string" description: "The unique identifier for an order within the country. You can provide this ID whenever sending requests related to the order. Note that further messages from Just Eat relating to this order may not use this same identifier, use `OrderId` for a more consistent identifier." } IsAMiniFistPumpOrder: { type: "boolean" description: "Legacy Promotion - Ignore." } Order: { type: "object" description: "Order data" properties: { DueDate: { type: "string" format: "date-time" description: "Ignore - use `DueDateWithUtcOffset`." } DueDateWithUtcOffset: { type: "string" format: "date-time" description: "The DateTime when the Customer has been told they will receive the Order." } InitialDueDate: { type: "string" format: "date-time" description: "Ignore - use `IntialDueDateWithUtcOffset`." } InitialDueDateWithUtcOffset: { type: "string" format: "date-time" description: "When the Customer was originally told the order would be delivered (prior to Restaurant adjustment)" } NoteToRestaurant: { type: "string" description: "Notes from the customer about their order. In addition to notes for the restaurant, this field can also delivery instructions - and should be displayed to the delivery driver." } PickupNoticePeriod: { type: "string" format: "timespan" description: "Desired minimum amount of notice needed before the driver arrives to pickup the order at the restaurant. This is to allow restaurant enough time to prepare the order. If less notice is given the driver may have to wait for the order to be prepared. Field is in the format \"hh:mm:ss\"" } PlacedDate: { type: "string" format: "date-time" description: "Date Customer placed the order. Note that JUST EAT accepts pre-orders therefore there may be a significant difference between Placed Date and Due Date This Date/Time is set as UTC without an offset, regardless of Country." } PromptAsap: { type: "boolean" description: "Did the Customer request the Order to ready ASAP" } RdsPickupTimeWithUtcOffset: { type: "string" format: "date-time" description: "When the Delivery Partner needs to be at the Restaurant to pickup the Order." } ServiceType: { type: "string" description: "Type of the Order." enum: ["Collection", "Delivery"] } } } OrderId: { type: "string" description: "Globally unique Identifier for the order. Please use this whenever sending requests related to this order. Just Eat will provide this same identifier on any further messages relating to this order." } OrderReference: { type: "string" description: "This field is used to store external references to the order. This is defined by either Just Eat or the partner that created the order." } PaymentInfo: { type: "object" description: "Payment data" properties: { CashOnDelivery: { type: "boolean" description: "Is the Customer paying on Delivery." } DriverTipValue: { type: "number" format: "double" description: "The value of the tip given to the Driver." } PaidDate: { type: "string" format: "date-time" description: "DateTime when the Order was Paid (excludes UTC offset)." } PaymentLines: { type: "array" description: "How the Customer has paid for the Order." items: { type: "object" description: "Payment line data" properties: { CardFee: { type: "number" format: "double" description: "Was there a fee for the payment mechanism." } Type: { type: "string" description: "How was the order Paid." enum: ["Card"] } Value: { type: "number" format: "double" description: "The value of the payment." } } } } Total: { type: "number" format: "double" description: "The total order value." } TotalComplementary: { type: "number" format: "double" description: "Order amount covered by JUST EAT." } } } RestaurantInfo: { type: "object" description: "Restaurant data" properties: { AddressLines: { type: "array" description: "Restaurant address." items: { type: "string" description: "Address line" } } City: { type: "string" description: "The name of the city where the Restaurant is located" } DispatchMethod: { type: "string" description: "`DispatchMethod` to use." } EmailAddress: { type: "string" description: "Email address for the Restaurant." } Id: { type: "string" description: "Unique ID of the Restaurant." } Latitude: { type: "number" format: "double" description: "Restaurant address latitude. Will be 0 if not provided." } Longitude: { type: "number" format: "double" description: "Restaurant address longitude. Will be 0 if not provided." } Name: { type: "string" description: "The name of the Restaurant." } PhoneNumber: { type: "string" description: "The Restaurant phone number." } PickupNotes: { type: "string" description: "Order pickup instructions for the Delivery Partner." } Postcode: { type: "string" description: "The post code where Restaurant is located" } } } Restrictions: { type: "array" description: "This is a list of types of restricted items contained in the order." items: { type: "object" properties: { Type: { type: "string" description: "The type of restricted item contained in the order. The only supported value is 'Alcohol'." enum: ["Alcohol"] } } } } } } } output: { type: "object" additionalProperties: true } }