Skip to Content
G360InventoryAccounts List

Accounts List

GET/api/v1/inventory/accountsInventory

Returns the list of available accounts.

Auth Scope
urn:grt:inventory
Content-Type
application/json
Rate Limit
60 req/min

Headers

HeaderValue
AuthorizationBearer access-token

Query Parameters

ParameterTypeRequiredDescription
service_typesstringNoParameter to filter by service type
service_categoriesstringNoParameter to filter by one or more service categories. Multiple items should be passed separated by "," (comma)
billing_typestringNoParameter to filter by billing type
statestringNoParameter to filter accounts by their state or province
parent_numberstringNoParameter to filter accounts by their parent company number
pageintegerNoPage number for pagination (starting at 1). Default: 1
page_sizeintegerNoNumber of accounts per page. Must be between 1 and 100. Default: 20
searchstringNoSearch parameter
sort_fieldstringNoField to sort the results by
sort_orderstringNoSort direction: "ASC" or "DESC". Default: "DESC"
granted_tenant_macnumstringNoThe company macnum on whose behalf the action is performed

Note

To get filtering options for service_types, service_categories, billing_type, state, sort_field use the static endpoint.

Response

Success Response (200 OK)

Response Fields

FieldTypeDescription
resultsarrayA list containing objects, where each object represents a summary for a specific account
infoobjectAn object containing pagination details for the entire dataset

Account Object Fields

FieldTypeDescription
parent_namestringThe name of the parent company or entity
parent_numberstringThe identifier number for the parent company
account_numberstringThe identifier number for the specific account or site
account_namestringThe descriptive name of the account, which may include location details
addressstringThe street address for the account site
statestringThe state or province of the account's address
citystringThe city of the account's address
zipstringThe postal or ZIP code for the account's address
service_typesstringA comma-separated string listing the types of services associated with the account
services_countintegerThe total number of services for this account
billing_typestringThe method by which the account is billed (e.g., "Bill to Parent")
service_categoriesarray of stringsA list of the specific service categories associated with the account

Info Object Fields

FieldTypeDescription
total_pagesintegerThe total number of pages available
total_recordsintegerThe total number of records across all pages
page_sizeintegerThe number of records displayed per page
pageintegerThe current page number
next_pageintegerThe number of the next page in the sequence

Code Examples

Errors

HTTP StatusError DescriptionResolution
401Authentication FailedVerify your access token is valid and included in the Authorization header with the "Bearer " prefix.
403Permission DeniedYour access token does not have the required scope (urn:grt:inventory). Contact your administrator to request the appropriate permissions.
Last updated on