**Version: 202506**

# Get price rule

**GET** `/openapi/2025-06/price_rules/:price_rule_id`

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

## Request

**Path Parameters**

- `price_rule_id` string (required)

  Price rule ID

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `price_rule` object

    Price rule

    - `id` string

      Price rule ID
    - `title` string

      Title
    - `value` float

      The value
    - `value_type` string

      Value type
    - `usage_limit` int32

      Usage limit. -1 means unlimited
    - `times_used` int32

      Number of times used
    - `allocation_method` string

      Allocation method
    - `allocation_limit` int32

      Allocation limit
    - `allocation_limit_amount` float

      Allocation limit amount
    - `once_per_customer` int32

      Whether usable once per customer
    - `prerequisite` int32

      Prerequisite condition
    - `customer_selection` string

      Customer selection criteria
    - `target_selection` string

      Target selection
    - `target_type` string

      Target type
    - `target_price_type` string

      Target price type
    - `created_at` string

      Creation timestamp, in ISO-8601 format
    - `updated_at` string

      Last update timestamp, in ISO-8601 format
    - `starts_at` string

      Start timestamp
    - `ends_at` string

      End timestamp
    - `prerequisite_customer_ids` string[]

      List of prerequisite customer IDs
    - `prerequisite_customer_segment_ids` string[]

      Customer segment prerequisite IDs
    - `entitled_product_ids` string[]

      Entitled product IDs
    - `entitled_variant_ids` string[]

      Entitled variant IDs
    - `entitled_filter_ids` string[]

      Entitled filter IDs
    - `entitled_filter_list` string[]

      Deprecated: use entitled_filter_detail_list instead.
    - `entitled_filter_detail_list` object[]

      List of entitled filters

      *   Array [

      - `id` string

        Filter ID
      - `starts_at` string

        Start time in RFC3339 format (e.g., 2020-06-15T16:00:00Z)
      - `ends_at` string

        End time in RFC3339 format; empty means it never expires
      *   ]
    - `variant_product_ids` string[]

      Product IDs of variants
    - `entitled_collection_ids` string[]

      Entitled collection IDs
    - `entitled_area_list` object[]

      List of entitled areas

      *   Array [

      - `country_code` string

        Country code (e.g., CN)
      - `province_codes` string[]

        List of province codes
      *   ]
    - `prerequisite_subtotal_range` object[]

      Subtotal prerequisite range

      *   Array [

      - `greater_than_or_equal_to` string

        Greater than or equal to value
      - `value` string

        The value
      - `value_percentage` string

        Percentage value
      - `value_event_type` string

        Value event type
      - `value_condition` string

        Value condition
      - `target_type` string

        Target type
      - `target_data` string[]

        Target data
      *   ]
    - `prerequisite_quantity_range` object[]

      Quantity prerequisite range

      *   Array [

      - `greater_than_or_equal_to` string

        Greater than or equal to value
      - `value` string

        The value
      - `value_percentage` string

        Percentage value
      - `value_event_type` string

        Value event type
      - `value_condition` string

        Value condition
      - `target_type` string

        Target type
      - `target_data` string[]

        Target data
      *   ]

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "price_rule": {
      "id": "string",
      "title": "string",
      "value": 0,
      "value_type": "string",
      "usage_limit": 0,
      "times_used": 0,
      "allocation_method": "string",
      "allocation_limit": 0,
      "allocation_limit_amount": 0,
      "once_per_customer": 0,
      "prerequisite": 0,
      "customer_selection": "string",
      "target_selection": "string",
      "target_type": "string",
      "target_price_type": "string",
      "created_at": "string",
      "updated_at": "string",
      "starts_at": "string",
      "ends_at": "string",
      "prerequisite_customer_ids": [
        "string"
      ],
      "prerequisite_customer_segment_ids": [
        "string"
      ],
      "entitled_product_ids": [
        "string"
      ],
      "entitled_variant_ids": [
        "string"
      ],
      "entitled_filter_ids": [
        "string"
      ],
      "entitled_filter_list": [
        "string"
      ],
      "entitled_filter_detail_list": [
        {
          "id": "string",
          "starts_at": "string",
          "ends_at": "string"
        }
      ],
      "variant_product_ids": [
        "string"
      ],
      "entitled_collection_ids": [
        "string"
      ],
      "entitled_area_list": [
        {
          "country_code": "string",
          "province_codes": [
            "string"
          ]
        }
      ],
      "prerequisite_subtotal_range": [
        {
          "greater_than_or_equal_to": "string",
          "value": "string",
          "value_percentage": "string",
          "value_event_type": "string",
          "value_condition": "string",
          "target_type": "string",
          "target_data": [
            "string"
          ]
        }
      ],
      "prerequisite_quantity_range": [
        {
          "greater_than_or_equal_to": "string",
          "value": "string",
          "value_percentage": "string",
          "value_event_type": "string",
          "value_condition": "string",
          "target_type": "string",
          "target_data": [
            "string"
          ]
        }
      ]
    }
  }
}
```
