Method: 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.

HTTP request

POST https://paymentsresellersubscription.googleapis.com/v1/{name=partners/*/subscriptions/*}:authorizeAddon

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the subscription resource for which addon is being requested. It will have the format of "partners/{partner_id}/subscriptions/{subscriptionId}"

Request body

The request body contains data with the following structure:

JSON representation
{
  "requestId": string,
  "subscription": {
    object (Subscription)
  },
  "newLineItems": [
    {
      object (LineItem)
    }
  ]
}
Fields
requestId

string

Required. A UUID to uniquely identify the request. The idempotency key for the request. So in case of retries, requestId will be same as previous one.

subscription

object (Subscription)

Required. Details of the subscription for add-on request.

newLineItems[]

object (LineItem)

Required. Details of the new line items that are being added to the subscription.

Response body

The reseller's determination as to whether an add-on to the subscription should be approved.

If successful, the response body contains data with the following structure:

JSON representation
{
  "authorizationResult": enum (AuthorizationResult)
}
Fields
authorizationResult

enum (AuthorizationResult)

Required. The reseller's authorization result for subscription add-on request.