Admin API reference
/v4 API
//
Batch delete draft promo...
Permanently delete up to 50 draft promo codes in one request.
You can only delete draft definitions. For live definitions, use the status-update endpoint to archive them first.
You will see a list of items that could not be deleted, such as missing IDs, duplicates, or non-draft definition, so you can identify what needs attention.
Security
ZephrHmacHttp
- https://demo.api.zephr.comhttps://demo.api.zephr.com/zephr/integration/promo-codes/v1/definitions/batch-delete
{ "definition_ids": [ "pd-1", "pd-2" ] }
OK. Your batch was processed. Review which items need attention.
Response
{ "message": "2 promo codes have been deleted successfully.", "failures": [] }