Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Archive a coupon

Stop a coupon being redeemed. Whatever it was applied to keeps its discount.

POST/v1/coupons/{id}/archive

Stop a coupon being redeemed. Whatever it was applied to keeps its discount.

Endpoint

http
POST /v1/coupons/{id}/archive

Path parameters

NameTypeDescription
idstringThe coupon's ID, cpn_....

Example request

bash
curl -X POST https://api.sovgate.com/v1/coupons/cpn_20b5e71de063737f5f3e2920/archive \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 4f110aeb-4b2a-4c1d-9e3f-c0278dc3fd2e"

Example response

json
{  "id": "cpn_20b5e71de063737f5f3e2920",  "object": "coupon",  "livemode": false,  "name": "Launch 20% off",  "discount": {    "type": "percent",    "percent_bps": 2000  },  "duration": "repeating",  "duration_months": 3,  "products": null,  "max_redemptions": 100,  "redeem_by": "2026-12-31T23:59:59Z",  "times_redeemed": 12,  "status": "archived",  "created": "2026-11-20T09:30:00Z"}