Dashboard
APIArchive Coupon API - Retire a Discount Code | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Archive Coupon - Retire a Discount Code via API

Archive a coupon to take it out of circulation while keeping its redemption history and configuration intact. An archived coupon can no longer be applied to new purchases; use Unarchive Coupon to bring it back.

PATCH/v2/projects/{project_id}/coupons/{coupon_id}/archive

Authorization

Bearer TokenRequired

Requires the coupons:update permission.

Path Parameters

project_idstringrequired

The unique identifier of the project.

coupon_idstringrequired

The unique identifier of the coupon to archive.

Last updated: