v11

latestOpenAPI 3.1.12026-08-03174162.0 MB
Coupon Codes

Create a new coupon code

post/coupon-codes

Request body

namestring required

The code string that customers enter to redeem the coupon.

activeboolean required

Whether this coupon code is currently enabled for use.

couponIdstring required

Identifier of the coupon to which this code belongs.

teamIdstring required

Team that created this coupon code.

Example request

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

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"
  }
}