GET
/
api
/
external
/
v2
/
customers
{
  "has_more": true,
  "items": [
    {
      "billing_address": {
        "address": "dolore mollit commodo ea",
        "city": "non aliq",
        "country_alpha2": "commodo",
        "postal_code": "dolore"
      },
      "billing_iban": "FR1420041010050500013M02606",
      "billing_language": "fr_FR",
      "created_at": "2023-08-30T10:08:08.146343Z",
      "customer_type": "company",
      "delivery_address": {
        "address": "dolore eiusmod",
        "city": "quis aute fugiat exercitation",
        "country_alpha2": "tempor",
        "postal_code": "laborum sit ips"
      },
      "emails": [
        "hello@example.org"
      ],
      "external_reference": "0e67fc3c-c632-4feb-ad34-e18ed5fbf66a",
      "id": 42,
      "ledger_account": {
        "id": 13668327
      },
      "name": "My company",
      "notes": "Some notes",
      "payment_conditions": "45_days",
      "phone": "+33612345678",
      "recipient": "John Doe",
      "reference": "REF-1234",
      "reg_no": "123456789",
      "updated_at": "2023-08-30T10:08:08.146343Z",
      "vat_number": "FR12345678901"
    },
    {
      "billing_address": {
        "address": "in eiusmod",
        "city": "in cillum ut in",
        "country_alpha2": "ullamco pariatur est quis",
        "postal_code": "occaecat enim"
      },
      "billing_iban": "FR1420041010050500013M02606",
      "billing_language": "fr_FR",
      "created_at": "2023-08-30T10:08:08.146343Z",
      "customer_type": "company",
      "delivery_address": {
        "address": "sunt aliqua sed nisi aliquip",
        "city": "la",
        "country_alpha2": "dolore culpa deserunt anim pariatur",
        "postal_code": "adipisicing nostrud"
      },
      "emails": [
        "hello@example.org"
      ],
      "external_reference": "0e67fc3c-c632-4feb-ad34-e18ed5fbf66a",
      "id": 42,
      "ledger_account": {
        "id": -67013841
      },
      "name": "My company",
      "notes": "Some notes",
      "payment_conditions": "15_days",
      "phone": "+33612345678",
      "recipient": "John Doe",
      "reference": "REF-1234",
      "reg_no": "123456789",
      "updated_at": "2023-08-30T10:08:08.146343Z",
      "vat_number": "FR12345678901"
    }
  ],
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2"
}

Query Parameters

cursor
string

Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.

Example:

"dXBkYXRlZF9hdDoxNjc0MTIzNDU2"

limit
string

Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.

Example:

"20"

filter
string

You can choose to filter items on specific fields. Available fields and values:

  • id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
  • customer_type: eq, not_eq
  • ledger_account_id: eq, not_eq
  • name: start_with
  • external_reference: start_with, eq, not_eq, in, not_in
Example:

"[{\"field\": \"ledger_account_id\", \"operator\": \"eq\", \"value\": \"123\"}]"

sort
string

You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id

Example:

"-id"

Response

200
application/json

Returns a list of both company and individual customers

The response is of type object.