Excerpt |
---|
How To - Use this guide provides step-by-step instructions on how to use the API to submit a refund or void transaction using the Payrix API as a Payrix Partner. |
Cancel vs Refund vs Void
A refund, cancel or void transaction request can be submitted via the API using the /txns
endpoint. You can see more information in theAPI Reference guide.
...
For more info on Transaction Type see the expandable content below:
Transaction Types
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Transaction Statuses
Expand | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
|
...
Refund Payments via the API
Getting Started
Step 1: Check the desired refund payment’s transaction status - 3
for Captured or 4
for Settled.
...
See examples below of different payment refund use cases after setup:
Refund a Full Card Payment
Unless specified, refunds without amounts listed will be treated as a refund of the entire transaction amount.
...
|
Refund a Partial Card Payment
You can specify a partial amount to be refunded by using the optionaltotal
parameter.
...
|
Refund an eCheck Payment
For eCheck refunds, you must submit the first name of the receiving/refunded customer under a first
parameter.
|
Void Payments via the API
Getting Started
Step 1: Check the desired payment’s transaction status is:1
for Captured
...
When finished, send the request body in a POST
request to the /txns
endpoint.
Void a Payment
|
Cancel an approved payment via the API
Getting Started
Step 1: Check the desired payment’s transaction status is:1
for Captured
...
When finished, send the request body in a PUT
request to the /txns/{txn_ID}
endpoint.
Cancel a Payment
|
...