GET
/
clients
List all clients
curl --request GET \
  --url https://api.contazen.ro/v1/clients \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "object": "list",
    "has_more": true,
    "total": 123,
    "page": 123,
    "per_page": 123,
    "total_pages": 123,
    "data": [
      {
        "id": "cli_1a2b3c4d5e",
        "object": "client",
        "name": "<string>",
        "type": "company",
        "email": "jsmith@example.com",
        "phone": "<string>",
        "cui": "<string>",
        "cui_prefix": "RO",
        "rc": "<string>",
        "address": "<string>",
        "city": "<string>",
        "county": "<string>",
        "country": "RO",
        "postal_code": "<string>",
        "iban": "<string>",
        "bank_name": "<string>",
        "contact_person": "<string>",
        "notes": "<string>",
        "is_active": true,
        "is_firm": true,
        "created_at": "2023-11-07T05:31:56Z",
        "modified_at": "2023-11-07T05:31:56Z"
      }
    ]
  },
  "meta": {
    "version": "v1",
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "response_time": "23.45ms"
  }
}

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Query Parameters

page
integer
default:1

Page number (1-indexed)

Required range: x >= 1
per_page
integer
default:50

Number of items per page

Required range: 1 <= x <= 100

Search term for name, email, or CUI

is_active
enum<integer>

Filter by active status (0=inactive, 1=active)

Available options:
0,
1
type
enum<string>

Filter by client type

Available options:
person,
company
sort
enum<string>
default:name

Sort field

Available options:
name,
created_at,
modified_at
order
enum<string>
default:asc

Sort order

Available options:
asc,
desc

Response

List of clients

success
boolean
data
object
meta
object