API ReferenceStorefront
Delete a discount code
DELETE /rest/v1/storefront/discounts/{id}
Required scope: storefront:write.
Authorization
apiKey AuthorizationBearer <token>
Authorization: Bearer nbl_live_... (or nbl_test_... for test mode). Test-mode writes are validated and simulated but never persisted and never touch channels; simulated results are marked simulated.
In: header
Path Parameters
id*string
Header Parameters
Idempotency-Key?string
Unique client-generated key (max 255 chars), stored 24h.
Length
length <= 255Response Body
application/json
application/json
curl -X DELETE "https://example.com/storefront/discounts/string"{ "id": "string", "object": "string", "deleted": true, "simulated": true}Last updated on October 18, 2026
Need help?
Email us and a human replies, usually within one business day.