List clients
Find clients by name, VAT number or tax code.
GET https://cotlet.dev/api/v1/fatture-in-cloud/clients
read
Returns clients with name, VAT number, tax code and e-invoice code where set. Use it to match a client before create_invoice and to avoid creating duplicates.
Parameters
| Name | Type | Description |
|---|---|---|
| company_id integer | integer | Company ID. Optional when your account has one company. |
| query string | string | Part of the name, VAT number or tax code. |
| page integer | integer | Page number, starting at 1. Default: 1. |
| per_page integer | integer | Results per page. Default: 50. |
Request
curl https://cotlet.dev/api/v1/fatture-in-cloud/clients \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fatture-in-cloud", "list_clients") const result = await cotlet.call('fatture-in-cloud', 'list_clients'); cotlet call fatture-in-cloud list_clients Example response
{
"clients": [
{
"id": 5107,
"name": "Rossi Consulting SRL",
"vat_number": "01234567890",
"tax_code": "01234567890",
"e_invoice_code": "KRRH6B9"
}
],
"page": 1
}