post https://apiprod.fattlabs.com/transaction//void-or-refund
Void or refund a transaction based on its current status
Void: If the transaction has not been batched, it will be voided.
Refund: If the transaction has been batched, it will be refunded.
Usage Notes
- Use the
is_refundable
flag on the transaction to determine if it can be refunded. - Partial refunds are allowed by specifying the
total
in the request. - Partial voids are not supported.
Refunding Terminal Transactions
To refund terminal transactions via the API, ensure the following:
Prerequisites
- Your merchant account has Settlement Tokenization or Card-Present Tokenization enabled.
- The transaction's
source
indicates it was processed via a terminal (e.g.,terminalservice.dejavoo
).
Endpoint:
Additional Steps
- Check Transaction Eligibility: Verify that the transaction is refundable by checking the
is_refundable
flag. - Refund Timing: For Settlement Tokenization, refunds can only be processed after the transaction has settled.
- Error Handling: Be prepared to handle errors indicating that the transaction is not yet available for refund via API.
If unable to refund via the standard API endpoint, you may need to use the terminal-specific void or refund endpoint