createReversal
MUTATIONThis call will create a refund or a void for a transaction.
Arguments
transaction_idRequired
The Pay Theory unique identifier for the transaction to refund.
amountRequired
The amount of the refund. This must be less than or equal to the amount of the transaction.
refund_reasonRequired
The reason for the refund. This is required for all refunds and is made up of the following.
refund_email
The email address to send the refund receipt to. If not provided an email will not be sent out.
Response
ReversalResponse
is_void
Whether void.
transaction_id
Full void: no new transaction ID handed back. Partial void: new transaction ID for the adjusted debit. Refund: transaction ID points to the reversal.