API reference

RefundIntent

The RefundIntent object.

Kind: Objects

Fields

id

ID!

completedAt

DateTime

context

RefundContext

createdAt

DateTime

deliveryLocation

DeliveryLocation

discountAmount

Int53

items

[OrderItem!]

paymentProvider

PaymentProvider

posTerminal

PosTerminal

receiptPrinter

PrinterQueue

requestedByUser

User

tipAmount

Int53

totalAmountRefunded

Int53

totalAmountRefundable

Int53

updatedAt

DateTime

action

RefundIntentAction

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

order

Order

If refunding an order, this is that order. If refunding an order intent, this is null.

orderIntent

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

RefundIntentState!

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: