Archive Subscription
archive_subscriptionArchive subscriptions with purchase history to preserve records for existing subscribers when deletion is not possible.
Instructions
Archive a subscription.
Play recommends archiving rather than deleting any subscription that has ever been purchased: deletion is rejected once purchases exist, and archiving preserves the record for existing subscribers.
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>",
"product_id": "<product_id>"
},
"name": "archive_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | Subscription product ID | |
| package_name | Yes | App package name (e.g., com.example.myapp) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||