Payments Reseller Subscription API
Payments Reseller Subscription API endpoints from Google
Payments#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Payments Reseller Subscription API endpoints from Google
Endpoints 14
partners.products
- GETCurrently, it doesn't support **YouTube** products
/v1/:parent/products?filter=string&pageSize=0&pageToken=stringCurrently, it doesn't support YouTube products. Retrieves the products that can be resold by the partner. It should be authenticated with a service account.
partners.promotions
- POSTCurrently, it is only enabled for **YouTube**
/v1/:parent/promotions:findEligibleCurrently, it is only enabled for YouTube. Finds eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum… - GETCurrently, it doesn't support **YouTube** promotions
/v1/:parent/promotions?filter=string&pageSize=0&pageToken=stringCurrently, it doesn't support YouTube promotions. Retrieves the promotions, such as free trial, that can be used by the partner. It should be authenticated…
partners.subscriptions
- POSTCancels a subscription service either immediately or by the end of the current billing cycle for their customers
/v1/:name:cancelCancels a subscription service either immediately or by the end of the current billing cycle for their customers. It should be called directly by the partner… - POSTUsed by partners to create a subscription for their customers
/v1/:parent/subscriptions?subscriptionId=stringUsed by partners to create a subscription for their customers. The created subscription is associated with the end user inferred from the end user… - POSTEntitles a previously provisioned subscription to the current end user
/v1/:name:entitleEntitles a previously provisioned subscription to the current end user. The end user identity is inferred from the authorized credential of the request. This… - POST[Opt-in only] Most partners should be on auto-extend by default
/v1/:name:extend[Opt-in only] Most partners should be on auto-extend by default. Extends a subscription service for their customers on an ongoing basis for the subscription… - GETGets a subscription by id
/v1/:nameGets a subscription by id. It should be called directly by the partner using service accounts. - POSTUsed by partners to provision a subscription for their customers
/v1/:parent/subscriptions:provision?cycleOptions.initialCycleDuration.count=0&cycleOptions.initialCycleDuration.unit=UNIT_UNSPECIFIED&subscriptionId=stringUsed by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account.… - POSTResumes a suspended subscription
/v1/:name:resumeResumes a suspended subscription. The new billing cycle will start at the time of the request. It should be called directly by the partner using service… - POSTSuspends a subscription
/v1/:name:suspendSuspends a subscription. Contract terms may dictate if a prorated refund will be issued upon suspension. It should be called directly by the partner using… - POSTCurrently, it is used by **Google One, Play Pass** partners
/v1/:name:undoCancelCurrently, it is used by Google One, Play Pass partners. Revokes the pending cancellation of a subscription, which is currently in…
partners.subscriptions.lineItems
- PATCHUpdates a line item of a subscription
/v1/:name?requestId=string&updateMask=stringUpdates a line item of a subscription. It should be authenticated with a service account.
partners.userSessions
- POSTThis API replaces user authorized OAuth consent based APIs (Create, Entitle)
/v1/:parent/userSessions:generateThis API replaces user authorized OAuth consent based APIs (Create, Entitle). Issues a timed session token for the given user intent. You can use the session…
API details
- Base URL
https://paymentsresellersubscription.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter - Operations
- 14 operations on 13 pathsPOST 10GET 3PATCH 1
- Main resources
- partners.subscriptions 9partners.promotions 2partners.products 1partners.subscriptions.lineItems 1partners.userSessions 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Payments Reseller Subscription API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Payments Reseller Subscription API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Currently, it doesn't support **YouTube** products” (GET /v1/:parent/products?filter=string&pageSize=0&pageToken=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Payments Reseller Subscription API?
Payments Reseller Subscription API endpoints from Google It is listed under Payments and has 14 endpoints.
Who publishes the Payments Reseller Subscription API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Payments Reseller Subscription API?
Requests go to https://paymentsresellersubscription.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Payments Reseller Subscription API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.
How many endpoints does the Payments Reseller Subscription API have?
14 operations on 13 paths (10 POST, 3 GET, 1 PATCH). The largest groups are partners.subscriptions, partners.promotions, partners.products, partners.subscriptions.lineItems.
Is forking the Payments Reseller Subscription API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.