action just_eat_post_orders { label: "Create order" description: "Create order" provider: just_eat method: POST path: "/orders" encoding: json input: { type: "object" properties: { Customer: { type: "object" required: ["Address", "Name", "PhoneNumber"] properties: { Address: { type: "object" required: ["City", "Geolocation", "Lines", "PostalCode"] properties: { City: { type: "string" } GeoLocation: { type: "object" required: ["Latitude", "Longitude"] properties: { Latitude: { type: "number" format: "double" } Longitude: { type: "number" format: "double" } } } Lines: { type: "array" items: { type: "string" } } PostalCode: { type: "string" } } } DisplayPhoneNumber: { type: "string" description: "If you implement phone masking provide a masked number here" } Email: { type: "string" } Name: { type: "string" } PhoneNumber: { type: "string" description: "The customer's real phone number" } } } CustomerNotes: { type: "object" properties: { NoteForDelivery: { type: "string" } NoteForRestaurant: { type: "string" } } } FriendlyOrderReference: { type: "string" } Fulfilment: { type: "object" required: ["DueDate", "Method"] properties: { DueAsap: { type: "boolean" description: "If food should be delivered ASAP" } DueDate: { type: "string" format: "date-time" description: "The time the customer expects the food. Time must be in the future" } Method: { type: "string" enum: ["Delivery", "Collection"] } } } IsTest: { type: "boolean" } Items: { type: "array" items: { type: "object" required: ["TotalPrice", "Reference", "Name", "Quantity"] properties: { Items: { type: "array" items: { type: "object" properties: { Items: { type: "array" items: { type: "object" additionalProperties: true } } Name: { type: "string" } Quantity: { type: "integer" } Reference: { type: "string" } UnitPrice: { type: "integer" format: "money" } } } } Name: { type: "string" } Quantity: { type: "integer" } Reference: { type: "string" description: "The item's ID that you hold" } TotalPrice: { type: "number" format: "money" description: "Price of this item x quantity and all sub items" } UnitPrice: { type: "integer" format: "money" } } } } OrderReference: { type: "string" } Payment: { type: "object" required: ["Lines"] properties: { Fees: { type: "array" items: { type: "object" properties: { Type: { type: "string" } Value: { type: "number" format: "money" } } } } Lines: { type: "array" items: { type: "object" required: ["Type"] properties: { LastCardDigits: { type: "string" } Paid: { type: "boolean" } ServiceFee: { type: "number" format: "double" } Type: { type: "string" enum: ["Cash", "Card", "AccountCredit", "Voucher"] } Value: { type: "number" format: "money" } } } } PaidDate: { type: "string" format: "date-time" } Taxes: { type: "array" items: { type: "object" required: ["Value", "Type", "Percentage"] properties: { Percentage: { type: "number" format: "double" } Type: { type: "string" } Value: { type: "number" format: "money" } } } } Tips: { type: "array" items: { type: "object" additionalProperties: true } } } } Restaurant: { type: "object" } TotalPrice: { type: "number" format: "double" } "x-je-api-version": { type: "number" } } required: ["Customer", "Fulfilment", "Items", "OrderReference", "Payment", "Restaurant", "TotalPrice"] additionalProperties: false } output: { type: "object" properties: { OrderId: { type: "string" } } } }