Coupon Codes
Update a coupon code
Changed onput/coupon-codes/{id}
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
id, string required
A unique identifier for this coupon code.
Example:cod_01jps5cgsfzftw7hxcvr2wftk2
Request body
object required
name, string
The code string that customers enter to redeem the coupon.
active, boolean
Whether this coupon code is currently enabled for use.
Example request
{
"name": "TEST50",
"active": true
}Response
OK
object required
couponCode, Coupon Code required
coupon-code
Example response
{
"couponCode": {
"id": "cod_01jps5cgsfzftw7hxcvr2wftk2",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"name": "TEST50",
"active": true,
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac"
}
}Changes
- breaking
the
couponCode/createdAtresponse's property format changed fromdate-timeto no format for status - breaking
the
couponCode/updatedAtresponse's property format changed fromdate-timeto no format for status - breaking
the
couponCode/usesresponse's property type changed fromintegertonumberfor status
- breaking