get_orders
Retrieve Google Play order details by order ID, including status, purchase token, line items, totals, and refund history. Use when you have receipt IDs; order listing/search is unavailable.
Instructions
Look up one or more orders by order ID (the 'GPA.1234-5678-9012-34567' number on the buyer's receipt and in Play Console > Order management). Each order has orderId, state (PENDING, PROCESSED, CANCELED, PENDING_REFUND, PARTIALLY_REFUNDED, REFUNDED), purchaseToken, lineItems (productId, productTitle, listingPrice, total, tax and subscription or one-time purchase details), total, tax, developerRevenueInBuyerCurrency, buyerAddress (country), createTime, lastEventTime and orderHistory with refund and cancellation events. The API cannot list or search orders: you need the IDs, e.g. from a customer's receipt or list_voided_purchases. Orders that are not found are left out of the result.
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": {
"order_ids": "<order_ids>"
},
"name": "get_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_ids | Yes | Order IDs to look up, e.g. ['GPA.3345-1234-5678-90123'] (1 to 1000) | |
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) |