Customers API

Get access to your customers data through Cloudbox's v1 API.

Retrieving Customers

Customer (B2B) accounts with contacts and ship/bill locations.

Use GET /api/v1/customers to page through every record in your organization, or GET /api/v1/customers/{id} to fetch a single record with its related data. The id is a UUID, and a 404 means it doesn't exist in your organization.

API Endpoint

GET
/api/v1/customers
GET
/api/v1/customers/{id}

Required Headers

Every request must include the following:

Header Key
Description
org-api-key
Your Organization API key. Contact Cloudbox Support For Access: support@cloudboxapp.com.
user-api-key
Your User API Key

Requests missing either header will return 401 Unauthorized

Example Request

bash curl -X GET "https://app.cloudboxapp.com/api/v1/customers?limit=100" \ -H "org-api-key: YOUR_ORG_API_KEY" \ -H "user-api-key: YOUR_USER_API_KEY" \ -H "Accept: application/json"

Response Schema

Column
Type
Description
id
string (uuid)
Unique ID
account_code
string, nullable
Filterable (exact)
name
string, nullable
Sortable
status
string, nullable
Filterable (exact)
customer_group_id
string (uuid), nullable
References CustomerGroups
payment_terms
string, nullable
default_ship_via
string, nullable
default_shipping_terms
string, nullable
tax_zone
string, nullable
description
string, nullable
integration_ref
string, nullable
created_at
string (ISO 8601), nullable
Creation timestamp (UTC). Sortable
updated_at
string (ISO 8601), nullable
Last update timestamp (UTC). Sortable
contacts
array of objects
Detail endpoint only. Related records: id, customer_account_id, contact_type, first_name, last_name, email, phone, title, is_primary, address, city, state, zip, created_at
locations
array of objects
Detail endpoint only. Related records: id, code, name, address_line_1, address_line_2, city, state, zip, country, attention, is_primary_ship, is_primary_bill

Filters

limitPage size (default 100, max 1000)
offsetNumber of records to skip (default 0)
sortOne of: name, created_at, updated_at
orderasc | desc
searchCase-insensitive partial match on name
statusCustomer status
account_codeExact account code match
updated_sinceOnly records updated at or after this ISO 8601 timestamp
default sortname ascending

Errors

Cloudbox uses standard HTTP status codes to indicate API success or failure:

  • 200–299 – Request succeeded
  • 400 – Bad request (missing parameters, invalid values)
  • 401 – Unauthorized (missing or invalid API keys)
  • 404 – Resource not found
  • 429 – Too many requests (rate limited)