Refund a transaction

Allows you to refund all or part of a previous credit card, debit card, or echeck transaction using the Nexio Payment ID. In order to refund a transaction, it must have already settled.

The entire process for refunding a transaction is as follows:

  1. Run a transaction using the Run card transaction or Run echeck transaction endpoint.
  2. Retrieve the id from the response. This is the Nexio Payment ID.
  3. Use the dashboard from the gateway connection that processed the transaction to manually settle the transaction if that is possible (or wait for the transaction to settle). Note that you can use the Nexio mock gateway and the paymentOptionTag of nexioAuto to immediately make a transaction settle.
  4. Include the payment id in the body of your request for this endpoint, along with an amount that is less than or equal to the original transaction amount. Note that some gateway connections allow multiple refunds per transaction. In this situation, you should ensure that the total of all refunds does not exceed the amount charged in the original transaction.

If you do not know the paymentId or the maximum amount to refund, you can get an array of possible transactions that have settled with the View transactions endpoint and at least the following query filters:
transactionStatus=20
plugin=

⚠️

Try It

To use the Try It feature for this endpoint, you can use the credentials for your Sandbox API user.

You can also use the following test account. Copy the value and paste it into the appropriate space in the Try It section to the right.
username: [email protected]
password: JZdzoXpdDeH6VA

Include the ID and a refund amount, as indicated above. You may also include a description of why you are issuing the refund.

Request parameters

  • id
  • data
  • data.amount
  • refundReason

Response parameters

  • id
  • merchantId
  • transactionDate
  • authCode
  • transactionStatus
  • transactionType
  • currency
  • amount
  • message
  • data
  • data.currency
  • data.settlementCurrency
  • data.amount
  • gatewayResponse
  • gatewayResponse.gatewayName
  • gatewayResponse.refNumber
  • recurringData
  • recurringData.recurringId
  • recurringData.recurringIdType
Language
Credentials
Basic
base64
:
Click Try It! to start a request and see the response here!