shop_history
Retrieves one shop’s install and billing events plus earnings transactions for a single app, newest first, using a shop ID or domain to answer support questions.
Instructions
Everything about one shop for one app, newest first: install and billing events plus earnings transactions. Takes a shop ID or its myshopify.com domain. Useful for support questions.
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": {
"shop": "<shop>"
},
"name": "shop_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shop | Yes | Shop ID, shop GID, or example.myshopify.com | |
| appId | No | App ID: the number or a gid:// ID. Optional when SHOPIFY_PARTNER_APP_IDS names exactly one app | |
| occurredAtMax | No | End of the window. Defaults to now; the window is at most 365 days | |
| occurredAtMin | No | Start of the window. Defaults to 30 days before the end |