Transactions
Refund transaction
Refund a transaction with the Go SDK.
POST
Refund transaction
Use
client.Transaction.Refund to refund a transaction.
Call the method
- Queued refund
- Synchronous refund
Omit the optional body to queue the refund using Core defaults.
client.Transaction.Refund
| Field | Type | Description |
|---|---|---|
transactionID | string | Transaction ID of the applied transaction to refund. |
SkipQueue | bool | When true, process the refund synchronously instead of queuing. |
Save the refund transaction ID
Use
refund.TransactionID to track the refund. Check refund.ParentTransactionID to confirm it links to the original transaction.Response
201 Created
| Field | Type | Description |
|---|---|---|
transaction_id | string | ID of the new refund transaction. |
parent_transaction | string | Original transaction being refunded. |
source | string | Original destination, now the source of the refund. |
destination | string | Original source, now the destination of the refund. |
status | string | Status of the refund transaction. |
Related docs
Refunds
Reversal behavior and edge cases.
Refund transaction
HTTP request and response schema.