get_gift_cards
Retrieve Amazon Gift Card balance and recent activity for a chosen site and day range, with cursor-based paging to fetch additional batches.
Instructions
Get the Amazon Gift Card balance, and a batch of its activity for a given number of days, with a cursor to fetch the next batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The number of days worth of Gift Card activity to get. Ignored when `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 activity pages once at least this many GiftCardActivity entries 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 it was fetched with carries over. |
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. | |
| balance | No | The current Gift Card balance, or `None` if Amazon didn't show one. | |
| has_more | No | `True` if there are more results to fetch with `cursor`. |