get
https://{subdomain}.myshoplaza.com/openapi/2025-06/price_rules/count
Retrieves the total number of price rules available in your store.
Requiresprice_rulesaccess scope. More access scope
The Price Rule Count API retrieves the total number of price rules available in your store.
This API is especially useful for:
- Checking the total number of active and inactive price rules in your store.
- Providing a quick overview of discount rules without retrieving their details.
- Integrating the count with dashboards or reports for summary analytics.
Request Parameters
Public Request Parameters
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | 200 | Error code (200 indicates success) |
message | string | Success | Error message |
data | object | {...} | Contains the price rules data |
data.count | int32 | Total number of price rules. | 22 |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
