Delete Multiple Promotion Codes
DELETE
Delete Multiple Promotion Codes
https://useast.api.elasticpath.com/v2/rule-promotions/:promotionID/codes/
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
promotionID | Required | string | The unique identifier of the rule promotion. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Example
curl https://useast.api.elasticpath.com/v2/rule-promotions/:promotionID/codes/ \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d $ '{
"data": {
"type": "promotion_codes",
"codes": [
{
"code": "spring2024"
},
{
"code": "summer2024"
},
{
"code": "summer2024_limited"
},
{
"code": "fall2024_limited"
},
{
"code": "winter_VIP_limited"
}
]
}'
Response Example
204 No Content