Refund
A refund represents an amount of money transfered back to the customer for a given reason. Refunds may occur in relation to Returns, Swaps and Claims, but can also be initiated by an admin for an order.
Properties
idstringRequiredThe refund's ID
created_atDateRequiredThe date with timezone at which the resource was created.
updated_atDateRequiredThe date with timezone at which the resource was updated.
order_idstringRequiredThe ID of the order this refund was created for.
payment_idstringRequiredThe payment's ID, if available.
The details of the order this refund was created for.
The details of the payment associated with the refund.
amountnumberRequiredThe amount that has be refunded to the Customer.
notestringRequiredAn optional note explaining why the amount was refunded.
reasonstringRequiredThe reason given for the Refund, will automatically be set when processed as part of a Swap, Claim or Return.
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
idempotency_keystringRequiredRandomly generated key used to continue the completion of the refund in case of failure.
Was this section helpful?