Refund an APM transaction

Refunds a transaction using an Alternative Payment Method.

If you do not know the paymentId or amount to use, make a call with the View transactions endpoint with the query filter of transactionStatus=10 and plugin= to get an array of possible transactions that have authorized or transactionStatus=20 and plugin= for transactions that are settled.

For more help with this endpoint, see the Refund a transaction tutorial in Guides.

⚠️

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 (that is connected with PayPal). 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 of the payment request and the amount of the transaction in your request.

Request parameters

  • id
  • data
  • data.amount

Response parameters

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