Skip to main content

Delete Multiple Promotion Codes

DELETE Delete Multiple Promotion Codes

https://useast.api.elasticpath.com/v2/rule-promotions/:promotionID/codes/

Parameters

Path parameters

NameRequiredTypeDescription
promotionIDRequiredstringThe unique identifier of the rule promotion.

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe 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