Skip to main content
List customers
curl --request GET \
  --url https://api.salesbricks.com/api/v2/customers \
  --header 'X-SALESBRICKS-KEY: <api-key>'
{
  "count": 123,
  "results": [
    {
      "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "subscriptions": [
        {
          "subscription_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "status": "ACTIVE",
          "name": "<string>",
          "starts_at": "2023-12-25",
          "ends_at": "2023-12-25"
        }
      ],
      "external_id": "<string>",
      "address": {
        "line_1": "<string>",
        "city": "<string>",
        "region": "<string>",
        "zip": "<string>",
        "country": "<string>",
        "line_2": "<string>"
      },
      "stripe_customer_id": "<string>"
    }
  ],
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100"
}

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Query Parameters

limit
integer

Maximum number of results to return (default: 100, max: 1000)

offset
integer

Number of results to skip (default: 0)

Response

200 - application/json
count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?offset=400&limit=100"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?offset=200&limit=100"