get_product_purchase
Retrieves a one-time product purchase's status and details by token, including purchase and acknowledgement states. Use it to verify ownership before refunding, acknowledging, or consuming.
Instructions
Get the status of a one-time product purchase by its purchase token: productLineItem (productId and productOfferDetails), purchaseStateContext (PURCHASED, CANCELLED or PENDING), acknowledgementState, orderId, purchaseCompletionTime, regionCode, the app's obfuscated account/profile ids and testPurchaseContext for test purchases. Use it to check whether a customer really owns an item before refund_order, acknowledge_product_purchase or consume_product_purchase.
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": {
"token": "<token>"
},
"name": "get_product_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Purchase token of the purchase, as issued to the user's device by Google Play Billing. Also returned as purchaseToken by get_orders and list_voided_purchases. | |
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) |