Skip to content

Search API reference

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

Update a coupon

Rename a coupon. Its discount and what it applies to never change.

POST/v1/coupons/{id}

Rename a coupon. Its discount and what it applies to never change.

Endpoint

http
POST /v1/coupons/{id}

Path parameters

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

Request body

NameTypeRequiredDescription
namestringRequiredThe new name.

Example request

bash
curl -X POST https://api.sovgate.com/v1/coupons/cpn_20b5e71de063737f5f3e2920 \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 8ccb3fae-4b2a-4c1d-9e3f-d3d5cca02f28" \  -H "Content-Type: application/json" \  -d '{  "name": "Holiday 20% off"}'

Example response

json
{  "id": "cpn_20b5e71de063737f5f3e2920",  "object": "coupon",  "livemode": false,  "name": "Holiday 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": "active",  "created": "2026-11-20T09:30:00Z"}