API reference

OrderIntentInput

The OrderIntentInput input object.

Kind: Input objects

Input fields

Name Type Description
idempotencyKey String! An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions.
deliveryAddress DeliveryAddressInput When placing a Delivery order, this is the address where to deliver the items to.
deliveryLocation CoordinatesInput When placing a Delivery order, this is the geo-position of the location to deliver the items to.
deliveryLocationId String When placing an EatIn or TakeAway order, this is the id of the location to deliver the items to.
deviceLocation CoordinatesInput The location of the device that placed the order.
discountAmount Int53 A specific amount to discount from the total amount payable. Can only be used by employees. Required permission: RestaurantDiscountedCheckout
employeeId ID The Employee that placed the order, when placing an order from a Till while being logged in as an Employee Required permission: RestaurantPosWrite
expectedTotalAmount Int If provided, the mutation will abort if the computed total amount doesn't match the value given here. This value should reflect the exact amount that the customer will be asked to pay in the payment step. It might however be lower than the final amount, if the customer adds tip in the payment step. Note that this amount should thus include everything that the customer should pay for, that is: - Each item, including VAT - Each addon item, including VAT - Delivery cost, including VAT - Discount - Tip
installationId String An identifier that is unique to this particular device and installation of client.
metadata JSONObject Any data passed in here will be returned as is when querying for it later. The server never acts upon the data in here.
posTerminalId ID The terminal that the card payment should be made on. This is only applicable if using a payment provider that uses physical card terminals. Required permission: RestaurantRead
productsHandedToCustomer Boolean If this is provided as true the order will go directly to the "Delivered" state after being paid, and will thus not show up in Loco PoS Kitchen Required permission: RestaurantRead
receiptPrinterId ID If provided, instead of sending a digital receipt, the original receipt will be printed on the specified printer and the digital receipt will be a copy of the receipt. Required permission: RestaurantRead
tillId ID The Till this order was placed from Required permission: RestaurantRead
transactionChannel TransactionChannel Used to indicate the origin of the order. This till become mandatory in the future, so make sure to always send it. If there isn't a value that fits your use case, please contact us. Valid values: - TransactionChannel.Loco - TransactionChannel.Order (required permission: RestaurantRead) - TransactionChannel.SelfCheckout (required permission: RestaurantRead) - TransactionChannel.Web - TransactionChannel.WhiteLabel
appLabel String!
deliveryTime DateTime
discountId ID
items [OrderItemInput!]!
message String
pushToken PushTokenInput
tip Int
type MenuType!