Retrieve Refunds

How to retrieve and track refunds requests

List all Refund Requests

How to list chargebacks/refunds made to the account.

from intasend import APIService

token = "YOUR-API-TOKEN"
service = APIService(token="token")

response = service.chargebacks.retrieve()
print(response)
$response = $chagebacks->retrieve()
print_r(response);
const IntaSend = require('intasend-node');

const intasend = new IntaSend(/*...Authenticate*/)
let refunds = intasend.refunds();

refunds
    .list()
    .then((resp) => {
        console.log(`Refund list response: ${resp}`);
    })
    .catch((err) => {
        console.error(`Refund list error: ${err}`);
    });

Retrieve Refund by ID

How to retrieve a single refund record by its ID i.e chargeback_id

from intasend import APIService

token = "YOUR-API-TOKEN"
service = APIService(token="token")

response = service.chargebacks.details("<CHARGEBACK_ID>")
print(response)
$response = $chagebacks->details(<chagebacks_id>)
print_r(response);
const IntaSend = require('intasend-node');

const intasend = new IntaSend(/*...Authenticate*/)
let refunds = intasend.refunds();

refunds
    .get('<refund_id>')
    .then((resp) => {
        console.log(`Refund list response: ${resp}`);
    })
    .catch((err) => {
        console.error(`Refund list error: ${err}`);
    });