Void an APM transaction
Background |
---|
Before starting this tutorial, make sure you understand the following topics from the Quick start section:
|
For situations where an APM transaction has been run as auth only, you can void that transaction at a later time, if needed. For the steps to run that auth-only transaction, see Run an auth only transaction.
You can void a transaction using either the API or the Nexio Dashboard.
Dashboard
To void an auth-only APM transaction through the Nexio Dashboard, complete the following steps:
- Go to the Nexio Dashboard and log in.
- In the top left of the contents pane, select the merchant account or accounts that you want to void the APM transaction for.
- Go to the Transactions feature.
- Filter the resulting list of transactions as needed. For example, set the Method to "APM" and the Status to "AUTHONLY" to get auth-only transactions for all alternative payment methods.
- Click the transaction you want in order to open it.
- Click Void.
- In the Void Transaction dialog, if needed, change the void amount.
- Click Void Transaction.
The system attempts to void that transaction. - Repeat steps 3-8 as needed.
API
To void an auth-only APM transaction through the Nexio API, complete the following steps:
- Make sure you know the payment ID of the auth-only transaction.
This value is returned asid
in the original auth-only transaction.
If you do not know thepaymentId
oramount
to use, make a call with the View transactions endpoint with the query filters oftransactionStatus=11
andplugin=
to get an array of possible transactions with the IDs (returned asplugin.originalId
). - Send a request to the Void an APM transaction endpoint.
You need to include thepaymentId
for the auth-only transaction and theamount
to void.A successful request returns acurl -X POST https://api.nexiopaysandbox.com/apm/v3/void \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Basic [Base64_encoded_login]' -d '{ "data": { "amount": 4.00 }, "id": "[payment_id]" }'
message
ofsuccess
, along with other transaction information:{ "id": "[payment_id]", "merchantId": "000999", "transactionDate": "2024-12-12T23:13:12.149Z", "transactionStatus": "voided", "amount": 4.00, "transactionType": "sale", "currency": "USD", "gatewayResponse": { "gatewayName": "braintreePayPal", "message": "voided" }, "data": { "amount": 4.00, "currency": "USD", "settlementCurrency": "USD" }, "message": "success" }
- Repeat steps 1-2 for each APM transaction you want to void.
Updated 3 days ago