Skip to main content

Get a Rule Promotion by ID

GET 

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

Retrieves a single Rule Promotion by the promotion ID. Responses include promotion specifications such as discount type, eligibility criteria, and configuration details.

Request

Path Parameters

    promotionID stringrequired

    The unique identifier of the rule promotion.

Header Parameters

    Authorization Bearerrequired

    The Bearer token required to get access to the API.

Responses

OK

Schema
    data object
    typestring

    Possible values: [rule_promotion]

    idstring
    store_idstring
    namestring
    descriptionstring
    priorityinteger
    enabledboolean
    automaticboolean
    stackableboolean
    override_stackingboolean
    rule_set object
    catalog_idsstring[]
    currenciesstring[]
    rules object
    strategystring
    operatorstring
    argsstring[]
    children object[]
  • Array [
  • strategystring
    operatorstring
    argsstring[]
  • ]
  • actions object[]
  • Array [
  • strategystring
    argsstring[]
    condition object
    strategystring
    children object[]
  • Array [
  • strategystring
    operatorstring
    argsstring[]
  • ]
  • limitations object
    max_discountinteger
    max_quantityinteger
    items object
    max_itemsinteger
    price_strategystring

    Possible values: [cheapest, expensive]

  • ]
  • startdate-time
    enddate-time
    meta object
    timestamps object
    created_atdate-time
    updated_atdate-time

Authorization: http

name: BearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://useast.api.elasticpath.com/v2/rule-promotions/:promotionID");
request.Headers.Add("Accept", "application/json");
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!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.