v11

latestOpenAPI 3.1.12026-08-03174162.0 MB
Coupon Codes

Update a coupon code

put/coupon-codes/{id}

Path parameters

idstring required

A unique identifier for this coupon code.

Example:cod_01jps5cgsfzftw7hxcvr2wftk2

Request body

namestring

The code string that customers enter to redeem the coupon.

activeboolean

Whether this coupon code is currently enabled for use.

Example request

{
  "name": "TEST50",
  "active": true
}

Response

OK

Example response

{
  "couponCode": {
    "id": "cod_01jps5cgsfzftw7hxcvr2wftk2",
    "createdAt": "2026-08-03T06:13:52.214Z",
    "updatedAt": "2026-08-03T06:13:52.214Z",
    "name": "TEST50",
    "active": true,
    "couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac"
  }
}