Backend API
Retrieve an existing account credit using the ID that was returned when created.
Arguments
idobjectIdrequired
Unique identifier for the credit.
GET/accounts:credits/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.get('/accounts:credits/{id}', {
id: '61e78cbed7e71014da0f1b87'
});Response
{
"parent_id": "5ffd413300b58e2a4a017831",
"payment_id": "61e78cbed7e71014da0f1b2c",
"amount": -19.55,
"currency": "USD",
"date_created": "2022-01-19T03:59:58.816Z",
"number": "101082",
"id": "61e78cbed7e71014da0f1b87"
}