AI-generated Key Takeaways
-
Used by partners to create subscriptions for their customers without initial end-user association, requiring a separate
subscriptions.entitle
call for user linking. -
The API endpoint for provisioning is
POST https://paymentsresellersubscription.googleapis.com/v1/{parent=partners/*}/subscriptions:provision
and should be accessed directly by partners using service accounts. -
The request requires the partner ID as a path parameter and a unique subscription ID as a query parameter.
-
Both request and response bodies utilize the
Subscription
object, detailed in the provided link, for data transfer.
Used by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account. subscriptions.entitle must be called separately using OAuth in order for the end user account to be associated with the subscription. It should be called directly by the partner using service accounts.
HTTP request
POST https://paymentsresellersubscription.googleapis.com/v1/{parent=partners/*}/subscriptions:provision
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
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 |
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. |
cycleOptions |
Optional. The cycle options for the subscription. |
Request body
The request body contains an instance of Subscription
.
Response body
If successful, the response body contains an instance of Subscription
.