Backend API
Delete a customer account card.
Arguments
idobjectIdrequired
The ID of the account card to delete.
DELETE/accounts:cards/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.delete('/accounts:cards/{id}', {
id: '62ceea552fa37600132911f6'
});The account card model
{
"parent_id": "627308bc32db26001276f091",
"billing": {
"name": "Glarthir",
"first_name": "Glarthir",
"last_name": null,
"address1": "Glarthir's House",
"address2": null,
"city": "Skingrad",
"state": "CA",
"zip": "95051",
"country": "US",
"phone": null,
"company": null
},
"brand": "Visa",
"last4": "4242",
"exp_month": 2,
"exp_year": 2024,
"token": "card_mgLMIJrqdFKjapNnKQXzbGSg",
"address_check": "pass",
"zip_check": "pass",
"cvc_check": "pass",
"fingerprint": "011778e5080632a4701cb5628266007d",
"date_created": "2022-05-19T17:17:31.167Z",
"active": true,
"id": "62867bab67e544001a6a3218"
},