Cancel Subscription Purchase
cancel_subscription_purchaseCancel an active subscription purchase by providing the app package name and purchase token, with optional cancellation type to stop renewals or payments.
Instructions
Cancel a subscription 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": {
"package_name": "<package_name>",
"purchase_token": "<purchase_token>"
},
"name": "cancel_subscription_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | App package name | |
| purchase_token | Yes | The purchase token from the client app | |
| cancellation_type | No | USER_REQUESTED_STOP_RENEWALS (default), DEVELOPER_REQUESTED_STOP_PAYMENTS, or CANCELLATION_TYPE_UNSPECIFIED | USER_REQUESTED_STOP_RENEWALS |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||