Retreive All Charge
Use the Retrieve API to retreive a payment. A Created Charge has an ID used to request payment.
Retrieve All Charge
Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Axxonpay will return the corresponding charge information. The same information is returned when creating or refunding the charge.
GET /v1/retrieve/payments/
const axios = require('axios');
const headers = {
authorization: 'key_<Your-Key>'
};
// Make the GET request
const response = await axios.get('https://<axxonpay-url-gateway>/v1/retreive/payments/', { headers });
Parameters
Parameter | Required/Optional | Type | Description |
---|---|---|---|
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. |