Backend API
Delete a customer account credit permanently.
Arguments
idobjectIdrequired
Unique identifier of the account credit.
DELETE/accounts:credits/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.delete('/accounts:credits/{id}', {
id: '62c8933c5f4ffe00136039f2'
});Response
{
"parent_id": "621e53a6213eaf013d1fa6b2",
"amount": 17,
"reason": "refund",
"currency": "USD",
"date_created": "2022-07-08T20:27:40.199Z",
"number": "100003",
"date_updated": "2022-07-12T16:02:14.965Z",
"id": "62c8933c5f4ffe00136039f2"
}