Payments Reseller Subscription API

The Payments Reseller Subscription API enables a wholesale business-to-business platform for Google subscription products (such as Stadia, Nest, Google One), where third parties could resell these products to their customers. This API is used to activate and manage the Google subscriptions.

Service: paymentsresellersubscription.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://paymentsresellersubscription.googleapis.com

REST Resource: v1.partners.products

Methods
list GET /v1/{parent=partners/*}/products
To retrieve the products that can be resold by the partner.

REST Resource: v1.partners.promotions

Methods
findEligible POST /v1/{parent=partners/*}/promotions:findEligible
To find eligible promotions for the current user.
list GET /v1/{parent=partners/*}/promotions
Retrieves the promotions, such as free trial, that can be used by the partner.

REST Resource: v1.partners.purchaseorders

Methods
authorizeCharge POST /v1/{parent=partners/*}/purchaseorders:authorizeCharge
Used by Google to check with reseller whether a charge for purchase order is authorized.

REST Resource: v1.partners.subscriptions

Methods
authorizeAddon POST /v1/{name=partners/*/subscriptions/*}:authorizeAddon
Used by Google to check with reseller whether an add-on to the subscription is authorized.

Note: The domain name should be replaced with the partner domain name with same path as here.
authorizeSignup POST /v1/{parent=partners/*}/subscriptions:authorizeSignup
Used by Google to check with reseller whether the subscription signup is authorized.

Note: The domain name should be replaced with the partner domain name with same path as here.
cancel POST /v1/{name=partners/*/subscriptions/*}:cancel
Used by partners to cancel a subscription service either immediately or by the end of the current billing cycle for their customers.
create POST /v1/{parent=partners/*}/subscriptions
Used by partners to create a subscription for their customers.
entitle POST /v1/{name=partners/*/subscriptions/*}:entitle
Used by partners to entitle a previously provisioned subscription to the current end user.
extend POST /v1/{name=partners/*/subscriptions/*}:extend
[Opt-in only] Most partners should be on auto-extend by default.
get GET /v1/{name=partners/*/subscriptions/*}
Used by partners to get a subscription by id.
provision POST /v1/{parent=partners/*}/subscriptions:provision
Used by partners to provision a subscription for their customers.
undoCancel POST /v1/{name=partners/*/subscriptions/*}:undoCancel
Revokes the pending cancellation of a subscription, which is currently in STATE_CANCEL_AT_END_OF_CYCLE state.

REST Resource: v1.partners.userSessions

Methods
generate POST /v1/{parent=partners/*}/userSessions:generate
This API replaces user authorized OAuth consnet based APIs (Create, Entitle).