Skip to main content
Version: 202506

Update price rule

PUT 

/openapi/2025-06/price_rules/:price_rule_id

Updates an existing price rule by ID with new parameters.

Request

Path Parameters

    price_rule_id stringrequired

    Price rule ID

Bodyrequired

    price_rule objectrequired

    Price rule

    titlestring

    Title

    valuefloat

    The value

    value_typestring

    Value type

    usage_limitint32

    Usage limit. -1 means unlimited

    allocation_limitint32

    Allocation limit

    once_per_customerint32

    Whether usable once per customer

    prerequisiteint32

    Prerequisite condition

    target_selectionstring

    Target selection

    target_typestring

    Target type

    starts_atstring

    Start timestamp

    ends_atstring

    End timestamp

    entitled_product_idsstring[]

    Entitled product IDs

    entitled_variant_idsstring[]

    Entitled variant IDs

    entitled_collection_idsstring[]

    Entitled collection IDs

    prerequisite_subtotal_range object[]

    Subtotal prerequisite range

  • Array [
  • greater_than_or_equal_tostring

    To specify the value which the price has to greater than or equal to

    valuestring

    The value

    value_percentagestring

    Percentage value

    value_event_typestring

    Value event type

    value_conditionstring

    Value condition

    target_typestring

    Target type

    target_datastring[]

    Target data

  • ]
  • prerequisite_quantity_range object[]

    Quantity prerequisite range

  • Array [
  • greater_than_or_equal_tostring

    To specify the value which the price has to greater than or equal to

    valuestring

    The value

    value_percentagestring

    Percentage value

    value_event_typestring

    Value event type

    value_conditionstring

    Value condition

    target_typestring

    Target type

    target_datastring[]

    Target data

  • ]

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    price_rule object

    Price rule

    idstring

    Price rule ID

    titlestring

    Title

    valuefloat

    The value

    value_typestring

    Value type

    usage_limitint32

    Usage limit. -1 means unlimited

    times_usedint32

    Number of times used

    allocation_methodstring

    Allocation method

    allocation_limitint32

    Allocation limit

    allocation_limit_amountfloat

    Allocation limit amount

    once_per_customerint32

    Whether usable once per customer

    prerequisiteint32

    Prerequisite condition

    customer_selectionstring

    Customer selection criteria

    target_selectionstring

    Target selection

    target_typestring

    Target type

    target_price_typestring

    Target price type

    created_atstring

    Creation timestamp, in ISO-8601 format

    updated_atstring

    Last update timestamp, in ISO-8601 format

    starts_atstring

    Start timestamp

    ends_atstring

    End timestamp

    prerequisite_customer_idsstring[]

    List of prerequisite customer IDs

    prerequisite_customer_segment_idsstring[]

    Customer segment prerequisite IDs

    entitled_product_idsstring[]

    Entitled product IDs

    entitled_variant_idsstring[]

    Entitled variant IDs

    entitled_filter_idsstring[]

    Entitled filter IDs

    entitled_filter_liststring[]

    List of entitled filters

    variant_product_idsstring[]

    Product IDs of variants

    entitled_collection_idsstring[]

    Entitled collection IDs

    entitled_area_list object[]

    List of entitled areas

  • Array [
  • country_codestring

    Country code (e.g., CN)

    province_codesstring[]

    List of province codes

  • ]
  • prerequisite_subtotal_range object[]

    Subtotal prerequisite range

  • Array [
  • greater_than_or_equal_tostring

    Greater than or equal to value

    valuestring

    The value

    value_percentagestring

    Percentage value

    value_event_typestring

    Value event type

    value_conditionstring

    Value condition

    target_typestring

    Target type

    target_datastring[]

    Target data

  • ]
  • prerequisite_quantity_range object[]

    Quantity prerequisite range

  • Array [
  • greater_than_or_equal_tostring

    Greater than or equal to value

    valuestring

    The value

    value_percentagestring

    Percentage value

    value_event_typestring

    Value event type

    value_conditionstring

    Value condition

    target_typestring

    Target type

    target_datastring[]

    Target data

  • ]