Method: partners.customers.list

  • This endpoint retrieves a list of customers associated with a specific reseller partner, identified by the partnerId.

  • The request is a GET operation using a predefined URL structure and does not require a request body.

  • Pagination is supported through the pageSize and pageToken query parameters, allowing for the retrieval of a subset of customers and the navigation through large datasets.

  • The response body, when successful, contains an array of customer objects, along with pagination details such as nextPageToken and totalSize.

  • The access to this API requires the https://www.googleapis.com/auth/androidworkprovisioning authorization scope.

Lists the customers that are enrolled to the reseller identified by the partnerId argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.

HTTP request

GET https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/customers

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
partnerId

string (int64 format)

Required. The ID of the reseller partner.

Query parameters

Parameters
pageSize

integer

The maximum number of results to be returned. If not specified or 0, all the records are returned.

pageToken

string

A token identifying a page of results returned by the server.

Request body

The request body must be empty.

Response body

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

Response message of all customers related to this partner.

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

object (Company)

List of customers related to this reseller partner.

nextPageToken

string

A token to retrieve the next page of results. Omitted if no further results are available.

totalSize

integer

The total count of items in the list irrespective of pagination.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidworkprovisioning

For more information, see the OAuth 2.0 Overview.