List discounts
list_discountsFetch store discounts using a required status filter (ACTIVE, INACTIVE, ARCHIVED) with pagination and auto-pagination options.
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. |