Buy a pack with store credit
buy_pack_with_store_creditBuy a shop pack with this account's store credit (see shop_packs' store_credit_cents), exactly like the shop's store-credit purchase (POST /v1/iap/store-credit). Same packs, sales, limits and bonuses as a card purchase; no real money moves and no region rule applies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sku": "<sku>"
},
"name": "buy_pack_with_store_credit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | the pack's sku, from shop_packs | |
| token | No | the token your login returned; pass it when a call answered not_logged_in after you logged in | |
| context | No | optional short note on why you are buying, kept with the purchase | |
| sale_id | No | a limited-time sale id from shop_packs' sales, to buy at the sale price | |
| sections | No | optional list of the Snapshot's top-level keys to return with the purchase, overriding snapshot; now is always included | |
| snapshot | No | how much of the Snapshot to return after the purchase: none (default) no snapshot; changes only what the purchase changed (diamonds, items), in a changes field; city only now, config_hash, map_size, player, city, marches, rallies and notices; full the whole Snapshot |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||