Skip to main content
Version: 202201

Price Rule List

GET 

/openapi/2022-01/price_rules

Retrieves a list of price rules that can be applied to customer orders.

Request

Query Parameters

    limit int32

    Result per page, max: 250

    Default value: 50
    starts_at_min int32

    Filter price rule started after date, timestamp format, e.g. 1581152471

    starts_at_max int32

    Filter price rule started before date, timestamp format, e.g. 1581152471

    ends_at_min int32

    Filter price rule ended before date, timestamp format, e.g. 1581152471

    ends_at_max int32

    Filter price rule ended after date, timestamp format, e.g. 1581152471

    times_used int32

    Used count for this price rule

Responses

200

Schema
    price_rules object[]
  • Array [
  • idstring
    Example: 91f9a466-7c8c-46e7-9774-64874a641534
    titlestring
    Example: Buy $180 get $20 off,once for one customer
    valueinteger
    Default value: 0
    Example: 20
    value_typestring
    Example: fixed_amount
    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: all
    target_typestring
    Example:
    created_atstring
    Example: 2022-06-17 15:00:03
    updated_atstring
    Example: 2022-06-17 15:00:03
    starts_atstring
    Example: 1655431200
    ends_atstring
    Example: -1
    entitled_product_idsarray
    entitled_filter_idsarray
    entitled_filter_listarray
    variant_product_idsarray
    prerequisite_subtotal_range object[]
  • Array [
  • greater_than_or_equal_tostring
    Example: 180
    valuestring
    Example: 20
    value_conditionstring
    Example: less_than_or_equal_to
    target_typestring
    Example:
    target_dataarray
    target_data_variantarray
    target_data_collectionarray
  • ]
  • prerequisite_quantity_range
  • ]