Skip to main content
Version: 202201

Price Rule Detail

GET 

/openapi/2022-01/price_rules/:price_rule_id

Retrieves detailed information about a specific price rule based on its ID.

Request

Path Parameters

    price_rule_id stringrequired

    Price rule ID

Responses

200

Schema
    price_rule object
    idstring
    Example: 00095d6a-419d-4499-a497-f265fb2edaa5
    titlestring
    Example: title-update
    valueinteger
    Default value: 0
    Example: 0
    value_typestring
    Example: percentage
    usage_limitstring
    Example: -1
    times_usedstring
    Example: 0
    allocation_methodstring
    Example:
    allocation_limitstring
    Example: 0
    once_per_customerstring
    Example: 1
    prerequisitestring
    Example: 1
    customer_selectionstring
    Example: all
    target_selectionstring
    Example: entitled
    target_typestring
    Example:
    created_atstring
    Example: 2020-03-06 17:00:32
    updated_atstring
    Example: 2020-03-12 15:29:44
    starts_atstring
    Example: 1583424000
    ends_atstring
    Example: 1583942399
    entitled_product_idsstring[]
    entitled_variant_idsarray
    prerequisite_quantity_range object[]
  • Array [
  • greater_than_or_equal_tostring
    Example: 1
    valuestring
    Example: 5
    target_typestring
    Example:
    target_dataarray
  • ]
  • prerequisite_subtotal_range