Method: partners.subscriptions.create
Stay organized with collections
Save and categorize content based on your preferences.
Used by partners to create a subscription for their customers. The created subscription is associated with the end user inferred from the end user credentials. This API must be authorized by the end user using OAuth.
HTTP request
POST https://paymentsresellersubscription.googleapis.com/v1/{parent=partners/*}/subscriptions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent resource name, which is the identifier of the partner. It will have the format of "partners/{partner_id}".
|
Query parameters
Parameters |
subscriptionId |
string
Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscriptionId, we will directly return that one.
|
Request body
The request body contains an instance of Subscription
.
Response body
If successful, the response body contains a newly created 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-12 UTC."],[[["This API allows partners to create subscriptions for their customers, associating them with the end user authenticated through OAuth."],["The API uses a POST request to `https://paymentsresellersubscription.googleapis.com/v1/{parent=partners/*}/subscriptions` with path and query parameters for specifying the partner and subscription details."],["The request body should contain a `Subscription` object providing the subscription information, and a successful response will return the newly created `Subscription` object."]]],["Partners use a POST request to `https://paymentsresellersubscription.googleapis.com/v1/{parent=partners/*}/subscriptions` to create customer subscriptions. The `parent` path parameter, formatted as \"partners/{partner_id}\", identifies the partner. The `subscriptionId` query parameter uniquely identifies the subscription. The request body includes a `Subscription` instance, and a successful response returns a new `Subscription` instance. The API requires OAuth authorization from the end user, associating the subscription with the user's credentials. The subscriptionId must be no longer than 63 characters.\n"]]