Skip to main content

Delete Multiple Rule Promotion Codes

DELETE Delete Multiple Rule 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",
"data": {
"type": "promotion_codes",
"codes": [
{
"code": "fall2024"
},
{
"code": "Winter2024"
}
]
}

Response Example

204 No Content