List customers

Query Parameters
  • page
    Type: integer
    min:  
    -9007199254740991
    max:  
    9007199254740991

    Page number

  • limit
    Type: integer
    min:  
    -9007199254740991
    max:  
    9007199254740991

    Items per page

  • search
    Type: string

    Free-text search

  • dateFrom
    Type: string Pattern: ^(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4}$

    Filter from date (MM-DD-YYYY)

  • dateTo
    Type: string Pattern: ^(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4}$

    Filter to date (MM-DD-YYYY)

  • orderBy
    Type: string

    Field used for sorting

  • orderDirection
    enum

    Sort direction

    values
    • asc
    • desc
  • id
    Type: stringFormat: uuid

    Customer UUID

  • externalId
    Type: string

    Partner-defined customer identifier

  • type
    enum

    Customer type filter

    values
    • BUSINESS
    • PERSON
Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/customers
curl 'https://api-sandbox.tryslatehq.com/customers?page=1&limit=50&search=&dateFrom=01-30-2025&dateTo=01-30-2025&orderBy=createdAt&id=123e4567-e89b-12d3-a456-426614174000&externalId=cus_123' \
  --header 'x-api-key: YOUR_SECRET_TOKEN'
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "externalId": "cus_123",
      "type": "BUSINESS",
      "business": {
        "legalName": "Acme Corp",
        "dba": "Acme",
        "type": "PARTNERSHIP",
        "website": "https://acme.com",
        "address": {
          "address1": "123 Main St",
          "address2": null,
          "city": "San Francisco",
          "postalCode": "94105",
          "country": "US",
          "state": "CA"
        },
        "contact": {
          "fullName": "John Doe",
          "email": "john@acme.com",
          "phone": "+15551234567"
        }
      }
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "totalPages": 1
}