Backend API
Delete a promotion use permanently.
Arguments
idobjectIdrequired
The ID of the promotion use to delete.
DELETE/promotions:uses/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.delete('/promotions:uses/{id}', {
id: '60f199509111e70000000074'
});
The promotion use model
{
"parent_id": "6285746dd0fc72001a6a2f4e",
"account_id": "628fb3c90f42a10014f04787",
"order_id": "62a09d0317f83f001975b491",
"date_created": "2022-06-08T13:08:10.445Z",
"id": "62a09f3a17f83f001975b4d1"
},