API reference

OrderIntent

The OrderIntent object.

Kind: Objects

Fields

id

ID!

createdAt

DateTime

updatedAt

DateTime

finalizeAccessToken

String

An access token that can be used to finalize the order intent without requiring an authenticated user.

metadata

JSONObject

Any metadata that was passed in by the client will be returned as is here.

paidItems

[OrderIntentPaidItem!]

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

[PaymentIntent!]

state

OrderIntentState!

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

OrderIntentAction

For state "RequiresAction" this is the action that the user needs to perform.

openOrder

OpenOrder

If this order intent was created from an open order, this field will contain the open order.

order

Order

For state "Done" this is the Order that was created from this Order Intent.

refundIntent

RefundIntent

For state "RefundPending" this is the RefundIntent that is currently pending.

deliveryLocation

DeliveryLocation

discountAmount

Int53

items

[OrderItem!]

receiptPrinter

PrinterQueue

tipAmountPaid

Int53

tipAmountPayable

Int53

type

MenuType

totalAmountPaid

Int53

totalAmountPayable

Int53

vatAmountPaid

Int53

vatAmountPayable

Int53

How to get it

This type is returned by: