partners
POST /v1/partners/{partnersId}/subscriptions:provision
Used by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account. EntitleSubscription 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.
Request
- Base URLhttps://paymentsresellersubscription.googleapis.com
- AuthOAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/sdm.serviceAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/sdm.service
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
partnersIdstring required
Query parameters
cycleOptions.initialCycleDuration.countinteger
number of duration units to be included.
cycleOptions.initialCycleDuration.unit'UNIT_UNSPECIFIED' | 'MONTH' | 'DAY' | 'HOUR'
The unit used for the duration
subscriptionIdstring
Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription with the same ID already exists, the creation fails with an ALREADY_EXISTS error.
Request body
Response
Successful response
Changes
No recorded changes to this operation across all 4 revisions of this API.