List discounts
list_discountsRetrieve paginated store discounts, filtered by required status (ACTIVE, INACTIVE, ARCHIVED). Use auto-pagination to fetch up to 500 items or set page and per_page for controlled results.
Instructions
List discounts of the store filtered by status (paginated). The status filter is required by the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Fetch all pages via auto-pagination, up to 500 items; ignores page/per_page. | |
| page | No | Page number, starting at 1 (default 1). | |
| status | Yes | Discount statuses to include (required). At least one of ACTIVE, INACTIVE, ARCHIVED. | |
| per_page | No | Items per page, 1-100 (default 25). Values outside the range are clamped. |