Method: partners.opportunities.query

Query Opportunitys for a Partner.

Possible error codes:

  • PERMISSION_DENIED: The user making the request is not allowed to update the Opportunity.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid.

Return value: Opportunitys the user has access to, or an empty list if there are no opportunities.

HTTP request

GET https://cloudchannel.googleapis.com/v1alpha1/{partner=partners/*}/opportunities:query

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
partner

string

Required. Provide the Partner Id for which the Opportunities are being queried. Format: partner = partners/{id}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of opportunities to return. The service may return fewer than this value. If unspecified, at most 50 opportunities will be returned. The maximum value is 100; values above 100 will be coerced to 100.

pageToken

string

Optional. A page token, received from a previous opportunities.query call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to opportunities.query must match the call that provided the page token.

filter

string

Optional. Filters on the Opportunity. Currently supports filtering on Opportunity.state, Opportunity.stage, SalesCycle.close_date, PartnerInfo.rebate_expiration_date, PartnerInfo.incentive_eligibility. See https://google.aip.dev/160 for information on the filter format.

Request body

The request body must be empty.

Response body

Response message for CloudChannelService.QueryOpportunities

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

JSON representation
{
  "opportunities": [
    {
      object (Opportunity)
    }
  ],
  "nextPageToken": string,
  "totalSize": integer
}
Fields
opportunities[]

object (Opportunity)

The opportunities for the specified partner.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

totalSize

integer

Total Number of Opportunties for the given filter.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/apps.order

For more information, see the Authentication Overview.