Skip to Content
AccountingAccounts ReceivableCustomers

List customers for a business

GET
/v0/business/{business_id}/customers

Scopes: customer:read

Authorization

OAuth2ClientCredentialsBearer customer:read
headerAuthorizationBearer <token>

Scope: customer:read

Path Parameters

business_id*Business Id

The id of the business

Formatbiz_string

Query Parameters

search?|

Case-insensitive substring match against the customer's name. (value)

is_disabled?Is Disabled

If true, only disabled customers are returned. Defaults to false (only active).

Defaultfalse
page_token?|null
page_size?Page Size
Range1 <= value <= 100
Default100

Response Body

Successful Response

application/json
  1. response
data*array<>

List of customers

pagination*

Pagination information

Example Request
curl -X GET 'https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/customers'
Example Response
{  "data": [    {      "external_id": "string",      "name": "string",      "email": "string",      "billing_address": {        "street_1": "string",        "street_2": "string",        "city": "string",        "state": "string",        "postal_code": "string",        "country": "string"      },      "shipping_address": {        "street_1": "string",        "street_2": "string",        "city": "string",        "state": "string",        "postal_code": "string",        "country": "string"      },      "phone_number": "string",      "id": "string",      "is_disabled": true    }  ],  "pagination": {    "next_page_token": "string",    "previous_page_token": "string"  }}