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