API reference
RefundIntent
The RefundIntent object.
Kind: Objects
Fields
id
ID!
completedAt
context
createdAt
deliveryLocation
discountAmount
items
[OrderItem!]
paymentProvider
posTerminal
receiptPrinter
requestedByUser
tipAmount
totalAmountRefunded
totalAmountRefundable
updatedAt
action
For state "RequiresAction" this is the action that the user needs to perform.
order
If refunding an order, this is that order. If refunding an order intent, this is null.
orderIntent
If refunding an order, this is the order intent that led to that order. If refunding an order intent, this is that order intent.
state
The state which this Refund Intent is currently in.
- 'RequiresAction' - An action is required to be performed by the user before this refund intent can progress, see the 'action' field for more info.
- 'Done' - This refund intent has successfully resulted in an Refund.
- 'Failed' - The refund intent has failed and will never result in an Refund.
How to get it
This type is returned by:
cancelOrderIntent(mutation)cancelRefundIntent(mutation)createRefundIntent(mutation)finalizeRefundIntent2(mutation)Restaurant.refundIntent(field onRestaurant)Order.refundIntents(field onOrder)OrderIntent.refundIntent(field onOrderIntent)