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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | the pack's sku, from shop_packs | |
| 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 | |||