Delete a Rule Promotion
DELETEhttps://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
- 204
No Content
Authorization: http
name: BearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear