List contractors
Contractors from your list, searchable by name or tax number.
GET https://cotlet.dev/api/v1/ifirma/contractors
read
Returns contractors saved under Firma, Kontrahenci. Search by NIP or name to find a buyer or supplier before you invoice or book a cost. Without a filter it returns the first page.
Parameters
| Name | Type | Description |
|---|---|---|
| name string | string | Contractor name or part of it. |
| nip string | string | Tax number (NIP). |
| page integer | integer | Page number. Default: 1. |
Request
curl https://cotlet.dev/api/v1/ifirma/contractors \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("ifirma", "list_contractors") const result = await cotlet.call('ifirma', 'list_contractors'); cotlet call ifirma list_contractors Example response
{
"contractors": [
{
"id": "c_4817",
"name": "Blue Fern Studio",
"nip": "1234563218",
"email": "billing@bluefern.example",
"city": "Gdansk",
"postal_code": "80-001",
"country_code": "PL"
}
],
"page": 1
}