get_transactions
Get a batch of Amazon Transaction history for a given number of days, or for a single Order, with a cursor to fetch the next batch.
Instructions
Get a batch of Amazon Transaction history for a given number of days, or for a single Order, with a cursor to fetch the next batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The number of days worth of Transactions to get. Ignored when `order_id` or `cursor` is given. | |
| site | No | The Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`). | |
| limit | No | Stop fetching Transaction pages once at least this many Transactions are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page. | |
| cursor | No | The `cursor` of the previous batch, to fetch the next one. The `days` window or `order_id` it was fetched with carries over. | |
| order_id | No | If given, only Transactions for this Amazon Order ID are returned, as in `get_transactions`. Ignored when `cursor` is given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | The results in this batch. | |
| cursor | No | Pass this back as `cursor` to the same call to fetch the next batch. A JSON-safe `dict` to keep as it is, not to build or change. `None` when there are no more results. | |
| has_more | No | `True` if there are more results to fetch with `cursor`. |