Card
Refund a Charge

Card Refund

Use the Refund API to initiate a new payment instead of using this method. Confirmation of the Charge creates the Refund object used to request payment.

Create A Refund

Refund objects allow you to refund a charge that has previously been created but not yet refunded. Funds will be refunded to the credit or debit card that was originally charged.

POST /v1/create/refund
const axios = require('axios');
 
const data = {
  // Add your request body data here
  amount: 1000,
  id: "<Charge_ID>"
};
 
const headers = {
  authorization: 'key_<Your-Key>'
};
 
// Make the POST request
const response = await axios.post('https://<axxonpay-url-gateway>/v1/create/refund', data, { headers });

Parameters

ParameterRequired/OptionalTypeDescription
amountREQUIREDNumberAmount intended to be collected by this Charge. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
idREQUIREDStringID of the Charge belongs to Charge with Success Status. Every payment processed has an ID, pass the ID to refund the charge created.