API reference
RefundIntentInput
The RefundIntentInput input object.
Kind: Input objects
Input fields
| Name | Type | Description |
|---|---|---|
orderId |
ID |
DEPRECATED: Pass "orderId" directly to the "createRefundIntent" mutation instead. |
context |
RefundContextInput |
Business context supplied by the client creating the refund. |
employeeId |
ID |
The employee authorising the refund. |
items |
[RefundIntentItemInput!] |
Specific items to refund. Total refund amount of all items must be equal to "refundAmount". |
paymentMethodId |
ID |
If specified, will use this specific payment method to refund the order. Otherwise uses the same provider that was used to pay the order. |
posTerminalId |
ID |
The terminal that the card refund should be made on. This is only applicable if refunding a payment made with a physical card terminal. |
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. |
refundAmount |
Int53 |
The total amount that should be refunded. Currently, the full amount of the order will be refunded if this is not provided. MANDATORY: This field will be made mandatory in the future. |
refundDiscountAmount |
Int53 |
How much of the discount that should be refunded. Should also be deducted from the total "refundAmount". |
refundTipAmount |
Int53 |
How much of the tip that should be refunded. Should also be included in the total "refundAmount". |
tillId |
ID |
The till that the refund was made from. |
waitActionSupported |
Boolean |
Indicates that the client supports getting back a "Wait" action. Without this support we cannot guarantee that the refund intent will be completed. If this is not provided, we will assume that the client does not support this. |