Method: partners.subscriptions.undoCancel
Stay organized with collections
Save and categorize content based on your preferences.
Currently, it is used by Google One, Play Pass partners.
Revokes the pending cancellation of a subscription, which is currently in STATE_CANCEL_AT_END_OF_CYCLE
state. If the subscription is already cancelled, the request will fail.
It should be called directly by the partner using service accounts.
HTTP request
POST https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}:undoCancel
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the subscription resource whose pending cancellation needs to be undone. It will have the format of "partners/{partner_id}/subscriptions/{subscriptionId}"
|
Request body
The request body must be empty.
Response body
Response that contains the updated subscription resource.
If successful, the response body contains data with the following structure:
JSON representation |
{
"subscription": {
object (Subscription )
}
} |
Fields |
subscription |
object (Subscription )
The updated subscription resource.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-12 UTC.
[null,null,["Last updated 2025-03-12 UTC."],[[["\u003cp\u003eThis API revokes a subscription's pending cancellation, applicable only to subscriptions in the \u003ccode\u003eSTATE_CANCEL_AT_END_OF_CYCLE\u003c/code\u003e state and excluding YouTube subscriptions.\u003c/p\u003e\n"],["\u003cp\u003eIt must be called directly by the partner using service accounts and requires an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eThe API utilizes a \u003ccode\u003ePOST\u003c/code\u003e request to a specific endpoint with the subscription's name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns the updated subscription resource in JSON format.\u003c/p\u003e\n"]]],["This API revokes a pending subscription cancellation in the `STATE_CANCEL_AT_END_OF_CYCLE` state, excluding YouTube subscriptions. Partners use service accounts to call this API directly. The `POST` request, with the subscription's `name` in the URL, is sent to `https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}:undoCancel`. The request body must be empty. A successful response returns an updated subscription resource in JSON format. If the subscription is already canceled, the request will fail.\n"],null,["# Method: partners.subscriptions.undoCancel\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.UndoCancelSubscriptionResponse.SCHEMA_REPRESENTATION)\n\nCurrently, it is used by **Google One, Play Pass** partners.\n\nRevokes the pending cancellation of a subscription, which is currently in `STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription is already cancelled, the request will fail.\n\nIt should be called directly by the partner using service accounts.\n\n### HTTP request\n\n`POST https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}:undoCancel`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the subscription resource whose pending cancellation needs to be undone. It will have the format of \"partners/{partner_id}/subscriptions/{subscriptionId}\" |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse that contains the updated subscription resource.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"subscription\": { object (/payments/reseller/subscription/reference/rest/v1/partners.subscriptions#Subscription) } } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `subscription` | `object (`[Subscription](/payments/reseller/subscription/reference/rest/v1/partners.subscriptions#Subscription)`)` The updated subscription resource. |"]]