Skip to Content

Orders List

GET/api/v1/ordersAccessExpress

Returns a list of orders for a particular customer with filtering, sorting, and pagination options.

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

Headers

HeaderValue
AuthorizationBearer access-token

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination (starting at 1). Default: 1
page_sizeintegerNoNumber of orders per page. Must be between 1 and 100. Default: 20
statusarray of stringsNoComma-separated list of order statuses to filter by. Valid values: "draft", "submitted", "pending", "canceled", "completed"
requesterarray of stringsNoList of requesters to filter the results
start_datedatetimeNoFilter orders created on or after this date
searchstringNoSearch term applied to order_name, order_number, requester, customer_name, or billing address
sort_fieldstringNoField to sort the results by. Valid values: "order_number", "updated_at", "order_name", "requester", "customer_name". Default: "created_at"
sort_orderstringNoSort direction: "asc" or "desc". Default: "desc"
granted_tenant_macnumstringNoThe company macnum on whose behalf the action is performed

Response

If the request is successful, a 200 OK status code is returned.

Success Response (200 OK)

Response Fields

FieldTypeDescription
idUUIDUnique identifier for the order
order_numberintegerOrder number for reference
statusstringCurrent status of the order. Values: "draft", "submitted", "pending", "canceled", "completed"
total_amountnumberTotal amount for the order
locationsarrayArray of location objects with address and order items

Code Examples

Errors

HTTP StatusError DescriptionResolution
401Authentication FailedVerify your access token is valid and included in the Authorization header with the "Bearer " prefix.
403Permission DeniedYou do not have permissions to view orders. Check your API scope (urn:grt:accessexpress).
429Rate Limit ExceededYou have exceeded the rate limit of 60 requests per minute. Check the Retry-After header in the response.
Last updated on