list_products
Retrieve products from your Wayl catalogue, newest first. Gain access to stock, variants, discounts, and downloadable file URLs. Page through results with skip and take.
Instructions
List the products in your Wayl catalogue, newest first.
Covers Digital, Physical and Service products; Subscription products are not
returned by this endpoint. Digital products are the relevant kind for selling
ebooks, since they carry downloadable files.
This returns richer records than `get_product` does — stock (`qt`, `unlimited`),
variants (`inventories`), discounts and the downloadable file URL appear only here.
To inspect one product's stock, page this endpoint and filter by `id`.
Wayl returns no total count, so do not treat the number of rows as the size of the
catalogue: keep paging with `nextSkip` while `hasMore` is true. `price` comes back
as a string of whole IQD. Listing changes nothing and charges nobody — selling still
means creating a link with `sell_book` or `create_payment_link`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | How many to skip, for paging. | |
| take | No | How many products to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||