Method: partners.subscriptions.get
Stay organized with collections
Save and categorize content based on your preferences.
Gets a subscription by id. It should be called directly by the partner using service accounts.
HTTP request
GET https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the subscription resource to retrieve. It will have the format of "partners/{partner_id}/subscriptions/{subscriptionId}"
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Subscription
.
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 endpoint enables partners to retrieve a specific subscription by its ID.\u003c/p\u003e\n"],["\u003cp\u003ePartners must utilize service accounts for direct invocation.\u003c/p\u003e\n"],["\u003cp\u003eThe request necessitates using the \u003ccode\u003eGET\u003c/code\u003e method with a structured URL containing the partner and subscription IDs.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is mandatory, and the response delivers a \u003ccode\u003eSubscription\u003c/code\u003e object upon successful execution.\u003c/p\u003e\n"]]],["Partners use a GET request to retrieve a subscription by ID. The request URL is `https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}`, adhering to gRPC Transcoding. The `name` path parameter, formatted as \"partners/{partner_id}/subscriptions/{subscriptionId}\", is mandatory. The request body must be empty. A successful response will return a Subscription resource instance within the response body. The service accounts will call it directly.\n"],null,["# Method: partners.subscriptions.get\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\nGets a subscription by id. It should be called directly by the partner using service accounts.\n\n### HTTP request\n\n`GET https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}`\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 to retrieve. 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\nIf successful, the response body contains an instance of [Subscription](/payments/reseller/subscription/reference/rest/v1/partners.subscriptions#Subscription)."]]