API reference

CheckoutOpenOrderItemsInput

The CheckoutOpenOrderItemsInput 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.
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.
employeeId ID The Employee that placed the order, when placing an order from a Till while being logged in as an Employee
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.
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
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.
tillId ID The Till this order was placed from
appLabel String!
discountId ID
items [OpenOrderItemInput!]!
message String
pushToken PushTokenInput
tip Int
type MenuType!