Coupon Codes
Create a new coupon code
Changed onpost/coupon-codes
Request
- Base URL: https://api.session.services
- URL: https://api.session.services/coupon-codes
- Auth: API key in header x-tenant-id
Request body
Example request
{
"name": "TEST50",
"active": true,
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac"
}Response
OK
Example response
{
"couponCode": {
"id": "cod_01jps5cgsfzftw7hxcvr2wftk2",
"createdAt": "2026-10-17T08:46:46.697Z",
"updatedAt": "2026-10-17T08:46:46.697Z",
"name": "TEST50",
"active": true,
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac"
}
}Changes
- breaking
the
/response's property type changed fromobjectto no type for status - breaking
removed the required property
//from the response with the status - info
added
subschema #1subschema #2to the/response propertyanyOflist for the response status
- breaking
- info
added the non-success response with the status
- info