Get Promotion Codes

get
Get Codes by Promotion ID

https://api.moltin.com/v2/promotions/:id/codes
Request
Response
Path Parameters
id
required
string
The unique promotion identifier
Headers
Authorization
required
string
The Bearer token to grant access to the API
200: OK
{
"data": [
{
"code": "ZXY_CBA"
},
{
"code": "ABC_XYZ"
}
]
}
cURL
curl https://api.moltin.com/v2/promotions/:id/codes \
-H "Authorization: Bearer XXXX"