Backend API
Update an existing gift card debit using the ID that was returned when created.
Arguments
idobjectIdrequired
Unique identifier for the gift card debit.
currencystring
amountcurrency
PUT/giftcards:debits/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.put('/giftcards:debits/{id}', {
id: '62ced9a991f00e001279a07e',
currency: 'JPY'
});The gift card debit model
{
"parent_id": "5fd21b2b53c2be21778d1f7e",
"payment_id": "5fd21b5353c2be21778d3293",
"amount": 35,
"currency": "USD",
"date_created": "2020-12-10T12:57:55.651Z",
"id": "5fd21b5353c2be21778d337d"
}