Pandabase
Store APIsCoupons

Delete coupon

DELETE
/stores/{storeId}/coupons/{couponId}

Deletes a coupon. Existing orders that redeemed it are unaffected. Requires the COUPONS_WRITE scope.

Authorization

AuthorizationBearer <token>

Bearer token authentication. Pass the secret directly in the Authorization header. Token secrets start with sk_.

In: header

Path Parameters

storeId*string
Length12 <= length <= 48
couponId*string
Length12 <= length <= 48

Header Parameters

idempotency-key?string
Length8 <= length <= 32

Response Body

application/json

application/json

curl -X DELETE "https://example.com/stores/stringstring/coupons/stringstring"
{  "ok": true,  "data": {    "deleted": true  }}

Last updated on