Backend API
Deleting account addresses with the Swell Backend API.
Arguments
idobjectIdrequired
The id of the account address to delete.
DELETE/accounts:addresses/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.delete('/accounts:addresses/{id}', {
id: '62e047aaff9aae0013394b22'
});
The account addresses model
{
"parent_id": "62e046da033fc8001271fc74",
"name": "Jzargo Khajiit",
"first_name": "Jzargo",
"last_name": "Khajiit",
"address1": "321 Skyrim Way",
"address2": null,
"city": "Winterhold",
"state": "NY",
"zip": null,
"country": "US",
"phone": null,
"fingerprint": "ee9f59a3b941ea09513058efdb108b6d",
"date_created": "2022-07-26T19:59:38.141Z",
"active": true,
"id": "62e047aaff9aae0013394b22"
}