Skip to content

Search API reference

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

Deactivate a promotion code

Stop a code working.

POST/v1/promotion_codes/{id}/deactivate

Stop a code working.

Endpoint

http
POST /v1/promotion_codes/{id}/deactivate

Path parameters

NameTypeDescription
idstringThe promotion code's ID, promo_....

Example request

bash
curl -X POST https://api.sovgate.com/v1/promotion_codes/promo_22c793f0f6e03e802cd4a00f/deactivate \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: fcfe59ff-4b2a-4c1d-9e3f-ecd4c6082e05"

Example response

json
{  "id": "promo_22c793f0f6e03e802cd4a00f",  "object": "promotion_code",  "livemode": false,  "coupon": "cpn_20b5e71de063737f5f3e2920",  "code": "LAUNCH20",  "active": false,  "first_time_only": false,  "one_per_customer": true,  "minimum_amount": null,  "customer": null,  "expires_at": null,  "max_redemptions": null,  "times_redeemed": 4,  "created": "2026-11-20T09:30:00Z"}