Get Promotion Codes
GET
Get Codes by Promotion ID
https://api.moltin.com/v2/promotions/:id/codes
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
id | Required | string | The unique promotion identifier. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Example
curl https://api.moltin.com/v2/promotions/:id/codes \
-H "Authorization: Bearer XXXX"
Response Example
200 OK
{
"data": [
{
"code": "ZXY_CBA"
},
{
"code": "ABC_XYZ"
}
]
}