solarOSsolarOS Docs

List Customers

Lists Customers available to the calling organization with safe identity fields, organization-specific details, customFields, and External References. Supply externalSystem, externalObject, and externalId together to filter by a canonical External Reference. Required scope: customers:read.

GET
/customers

Lists Customers available to the calling organization with safe identity fields, organization-specific details, customFields, and External References. Supply externalSystem, externalObject, and externalId together to filter by a canonical External Reference. Required scope: customers:read.

Authorization

Authorization<token>

Organization API key. Format: Bearer sk_live_...

In: header

Query Parameters

limit?integer

Maximum records to return. Defaults to 50 and is capped at 100.

Range1 <= value <= 100
Default50
cursor?string

Opaque record cursor from the previous response meta.nextCursor value.

sortBy?string

Customer sort field. Defaults to createdAt.

Value in

  • "createdAt"
  • "updatedAt"
  • "displayName"
sortDir?string

Sort direction. Defaults to desc.

Default"desc"

Value in

  • "asc"
  • "desc"
ownerId?string

Filter by the Customer Relationship owner id.

externalSystem?string

External Reference system filter. Supply with externalObject and externalId for exact reconciliation lookup.

externalObject?string

External Reference object filter. Supply with externalSystem and externalId.

externalId?string

External Reference id filter. Supply with externalSystem and externalObject.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/customers"
{  "data": [    {}  ],  "meta": {    "nextCursor": "string",    "hasMore": true,    "requestId": "string",    "version": "v1",    "timestamp": "2019-08-24T14:15:22Z",    "rateLimit": {      "limit": 0,      "remaining": 0,      "reset": 0    }  }}