Giropay 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/debit card or Alternative Payment 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
Parameter | Required/Optional | Type | Description |
---|---|---|---|
amount | REQUIRED | Number | Amount 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). |
id | REQUIRED | String | ID of the Charge belongs to Charge with Success Status. Every payment processed has an ID, pass the ID to refund the charge created. |