Skip to main content

Delete a Rule Promotion

DELETE 

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

Deletes an existing Rule Promotion identified by its promotion ID.

  • This action permanently removes the promotion and cannot be undone.
  • If the promotion is active, please ensure that its removal does not impact ongoing campaigns.

A successful request returns a 204 No Content response, indicating that the promotion has been deleted.

Request

Path Parameters

    promotionID stringrequired

    The unique identifier of the promotion.

Header Parameters

    Authorization Bearerrequired

    The Bearer token required to get access to the API.

Responses

No Content

Authorization: http

name: BearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://useast.api.elasticpath.com/v2/rule-promotions/:promotionID");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
Parameters
— pathrequired
— headerrequired
ResponseClear

Click the Send API Request button above and see the response here!