Example request
GET https://api.jupiter-erp.com/api/account/contacts
Code
curl -X GET 'https://api.jupiter-erp.com/api/account/contacts' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json'Parameters
| Name | In | Required | Description |
|---|---|---|---|
| status | query | no | Filter by contact lifecycle status. Defaults to active contacts when omitted. |
| parent_id | query | no | Filter by parent contact ID |
| type | query | no | Filter by contact type (organisation or person) |
| gender | query | no | Filter by gender |
| name | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| first_name | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| last_name | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| address_line_1 | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| zip | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| city | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| state | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| country_code | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| phones | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| emails | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| websites | query | no | Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| reference_key | query | no | Search by reference key. Supports SQL-like syntax: - `test*`: begins with `test` - `*test`: ends with `test` - `*test*`: contains `test` - `test`: exact match. |
| contact_number | query | no | Search by contact number. Supports SQL-like syntax: - `123*`: begins with `123` - `*123`: ends with `123` - `*123*`: contains `123` - `123`: exact match. |
| debtor_number | query | no | Search by debtor number. Supports SQL-like syntax: - `123*`: begins with `123` - `*123`: ends with `123` - `*123*`: contains `123` - `123`: exact match. |
| creditor_number | query | no | Search by creditor number. Supports SQL-like syntax: - `123*`: begins with `123` - `*123`: ends with `123` - `*123*`: contains `123` - `123`: exact match. |
| bank_iban | query | no | Search by bank IBAN. Supports SQL-like syntax: - `DE89*`: begins with `DE89` - `*DE89`: ends with `DE89` - `*DE89*`: contains `DE89` - `DE89`: exact match. |
| vat_id | query | no | Search by VAT ID. Supports SQL-like syntax: - `DE123*`: begins with `DE123` - `*DE123`: ends with `DE123` - `*DE123*`: contains `DE123` - `DE123`: exact match. |
| tax_id | query | no | Search by tax ID. Supports SQL-like syntax: - `12345*`: begins with `12345` - `*12345`: ends with `12345` - `*12345*`: contains `12345` - `12345`: exact match. |
| group_ids[] | query | no | Filter by group IDs |
| created_at_from | query | no | Filter contacts created on or after this date (YYYY-MM-DD) |
| created_at_to | query | no | Filter contacts created on or before this date (YYYY-MM-DD) |
| updated_at_from | query | no | Filter contacts updated on or after this date (YYYY-MM-DD) |
| updated_at_to | query | no | Filter contacts updated on or before this date (YYYY-MM-DD) |
| order_by | query | no | Sort by a specific field |
| #/components/parameters/OrderDirParameter | |||
| #/components/parameters/PerPageParameter | |||
| #/components/parameters/PageParameter | |||
Responses
200OK
| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| data* | object[] | array Elements
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| meta* | object |
|
Example response
{
"data": [
{
"id": 0,
"parent_id": 0,
"parent": {
"id": 0,
"parent_id": 0,
"type": "organisation",
"is_organisation": true,
"name": "string",
"company_name": "string"
},
"type": "organisation",
"is_organisation": true,
"name": "string",
"status": "active"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 1,
"items_from": 1,
"items_to": 1
}
}Contacts