Skip to Content
APIAccountsGET

GET Accounts

Use this endpoint to retrieve accounts such as customers, vendors, and carriers.

User level: Advanced

Endpoint

GET /v1/{branchId}/accounts
PropertyValue
MethodGET
Scope IDBranch UUID
AuthenticationAuthorization: Bearer <access_token>
Required scoperoutix:accounts:read

Query parameters

ParameterTypeDefaultMaxDescription
limitinteger501000Number of records per page.
offsetinteger0-Pagination offset.
sortstring-Sort expression in the format field:asc or field:desc.
filterstring-Filter expression in the format field:operator:value. Repeat filter to combine multiple filters.

Filtering and sorting

Use this section when you need to jump directly to the supported query syntax for the accounts list call.

Syntax

sort=field:asc sort=field:desc filter=field:operator:value

You can repeat filter in the same request.

Supported operators

OperatorMeaning
eqExact match
neNot equal
inValue is part of a list
gtGreater than
gteGreater than or equal
ltLess than
lteLess than or equal
likeCase-sensitive text match
ilikeCase-insensitive text match
isnullNull check

Resource rules

  • Filtering and sorting are whitelisted per resource.
  • organization_id and branch_id are reserved for server-side scoping and cannot be filtered by clients.
  • Tenant scope remains server-controlled.
  • For accounts, filtering and sorting availability depends on the fields exposed by the resource whitelist.

Example filters for accounts

?filter=status:eq:active ?filter=account_type:in:customer,carrier ?filter=company_name:ilike:%transport% ?filter=created_at:gte:2026-01-01 ?filter=comment:isnull:true ?sort=company_name:asc ?sort=created_at:desc

Example request

curl -X GET "https://api.routix.com/v1/550e8400-e29b-41d4-a716-446655440000/accounts?limit=25&offset=0&sort=company_name:asc&filter=status:eq:active&filter=account_type:in:customer,carrier" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Example response for v1

{ "data": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "company_name": "Acme Transport B.V.", "email": "[email protected]", "phone": "+31 20 123 4567", "account_type": "customer", "status": "active" }, { "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "company_name": "FastFreight Logistics", "email": "[email protected]", "phone": "+31 30 987 6543", "account_type": "carrier", "status": "active" } ], "pagination": { "limit": 10, "offset": 0, "total": 2 }, "version": "v1" }

Fields per version

v1 fields for accounts

The v1 response contains a stable, immutable set of 6 fields:

FieldTypeDescription
iduuidUnique identifier.
company_namestringCompany name.
emailstringPrimary email address.
phonestringPhone number.
account_typestringcustomer, vendor, or carrier.
statusstringAccount status.

v2 fields for accounts

v2 returns all v1 fields plus additional detail fields:

Additional fieldTypeDescription
websitestringCompany website.
industrystringIndustry sector.
lead_sourcestringHow the account was acquired.
visit_address_streetstringVisit address street.
visit_address_numberstringVisit address number.
visit_address_additionstringVisit address addition.
visit_address_zipcodestringVisit address postal code.
visit_address_citystringVisit address city.
shipping_address_streetstringShipping address street.
shipping_address_numberstringShipping address number.
shipping_address_additionstringShipping address addition.
shipping_address_zipcodestringShipping address postal code.
shipping_address_citystringShipping address city.
billing_address_streetstringBilling address street.
billing_address_numberstringBilling address number.
billing_address_additionstringBilling address addition.
billing_address_zipcodestringBilling address postal code.
billing_address_citystringBilling address city.
invoice_emailstringSeparate invoicing email.
vat_numberstringVAT registration number.
chamber_of_commerce_numberstringChamber of commerce number.
ibanstringBank account number.
bicstringBank BIC or SWIFT code.
payment_termsstringPayment terms.
credit_limitnumberCredit limit.
commentstringInternal notes.
registration_datetimestampRegistration date.
created_attimestampRecord creation date.
last_updated_attimestampLast modification date.

Recommendation: use v1 for stable production integrations. Use v2 when you need more detail and can handle field additions.

Response format

Success: list response

{ "data": [], "pagination": { "limit": 50, "offset": 0, "total": 123 }, "version": "v1" }

Error response

{ "error": "insufficient_scope", "error_description": "Token does not contain the required scope: routix:accounts:read" }
  • API integration
  • API calls & examples
  • Setup guide
Last updated on