OrderIntent
The OrderIntent object.
Kind: Objects
Fields
id
ID!
createdAt
updatedAt
finalizeAccessToken
An access token that can be used to finalize the order intent without requiring an authenticated user.
metadata
Any metadata that was passed in by the client will be returned as is here.
paidItems
If payment intents have been made for specific items in this order intent, this field will contain the items that have been paid for.
paymentIntents
state
The state which this Order Intent is currently in.
- 'Ready' - This order intent is ready to be finalized.
- 'RequiresAction' - An action is required to be performed by the user before this order intent can progress, see the 'action' field for more info.
- 'Done' - This order intent has successfully resulted in an Order.
- 'Failed' - The order intent has failed and will never result in an Order.
action
For state "RequiresAction" this is the action that the user needs to perform.
openOrder
If this order intent was created from an open order, this field will contain the open order.
order
For state "Done" this is the Order that was created from this Order Intent.
refundIntent
For state "RefundPending" this is the RefundIntent that is currently pending.
deliveryLocation
discountAmount
items
[OrderItem!]
receiptPrinter
tipAmountPaid
tipAmountPayable
type
totalAmountPaid
totalAmountPayable
vatAmountPaid
vatAmountPayable
How to get it
This type is returned by:
checkoutOpenOrderItems(mutation)createOrderIntent(mutation)finalizePaymentIntent(mutation)Restaurant.orderIntent(field onRestaurant)Restaurant.resumableOrderIntents(field onRestaurant)Order.orderIntent(field onOrder)PaymentIntent.orderIntent(field onPaymentIntent)RefundIntent.orderIntent(field onRefundIntent)