get_transactions
Retrieve Amazon transaction history by day range or order ID, returning batches with a cursor to page through additional transactions.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_transactions"
}
}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. | |
| account | No | Another Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`). | |
| 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`. |