Replace the in-app catalog
replace_in_app_productsReplace the whole in-app catalog with products — not a patch: a product you leave out is deleted, and an empty list clears the catalog. Ask the developer before removing products. Read list_in_app_products first and pass its checksum as expectedChecksum; if the catalog changed meanwhile, the call is refused. While in-game purchases are off, a call that leaves them off is refused (IN_GAME_PURCHASES_OFF): turn them on with hasInGamePurchases: true to change the catalog.
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": {
"applicationId": "<applicationId>",
"products": "<products>",
"expectedChecksum": "<expectedChecksum>"
},
"name": "replace_in_app_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| products | Yes | The complete catalog after your change | |
| applicationId | Yes | Game id from list_applications | |
| expectedChecksum | Yes | The `checksum` list_in_app_products answered — the state this call means to replace | |
| hasInGamePurchases | No | Defaults to whether `products` is non-empty |