Download OpenAPI specification:Download
Welcome to the Karlia API documentation !
Karlia is a powerful CRM platform that brings together everything you need to better optimize your productivity in one easy-to-use tool.
The Karlia API is built around a RESTful architecture and allows you to customize, modify and integrate your Karlia organization and external services.
In order to log in, you need to generate an API key via the Karlia website:
The API use Bearer Authorization in request header.
Security Scheme Type | HTTP |
---|---|
HTTP Authorization Scheme | bearer |
Bearer format | "xxxxxx-xxxxxx-xxxx-xxxxxx-xxxxxx" |
Get a list of all customers.
quick_search | string <= 127 characters Quick search field |
name | integer <= 127 characters Search by name |
prospect | integer Search by status
|
individual | integer Search by type
|
client_number | string <= 30 characters Search by client number |
phone | string <= 30 characters Search by phone number |
mobile | string <= 30 characters Search by mobile number |
string <email> <= 127 characters Search by email | |
id_client_manager | string Search by user with group Id associated with the customer |
langId | integer Search by language
|
siret | string <= 30 characters Search by SIRET |
siren | string <= 30 characters Search by SIREN |
vat_number | string <= 30 characters Search by VAT number |
fields | string List of fields to be returned. By default, all fields are returned. |
order | string <= 64 characters Name of the field to sort on |
direction | string <= 4 characters Direction for sorting
|
limit | integer Default: 100 Number of objects to be returned for paging |
offset | integer Default: 0 Offset for paging |
{- "status": "success",
- "pagination": {
- "total": 14,
- "limit": 100,
- "offset": 0
}, - "data": [
- {
- "id": "28496",
- "title": "Society X",
- "individual": "0",
- "prospect": "0",
- "id_client_manager": [
- "u213"
], - "phone": "+33512345678",
- "mobile": "07 98 76 54 32",
- "email": "contact@example.com",
- "langId": "1",
- "siret": "123 568 941 00056",
- "siren": "123 568 941",
- "legal_form": "SARL",
- "main_activity": "4616C",
- "vat_number": "FR 32 123456789",
- "id_parent": "0",
- "id_products_prices_category": "0",
- "id_payment_condition": "0",
- "id_vat": "-1",
- "description": "A description or note about this customer",
- "client_number": "123",
- "address_list": [
- {
- "id": "17894",
- "type": "main",
- "title": "",
- "address": "55 Av. Louis Breguet",
- "zip_code": "31400",
- "city": "Toulouse",
- "country": "France",
- "is_defaut": true
}, - {
- "id": "17895",
- "type": "delivery",
- "title": "My delivery address",
- "address": "1 place du Capitole",
- "zip_code": "31000",
- "city": "Toulouse",
- "country": "France",
- "is_defaut": false
}, - {
- "id": "17896",
- "type": "invoice",
- "title": "My invoice address",
- "address": "55 Rue du Faubourg Saint-Honoré",
- "zip_code": "75000",
- "city": "Paris",
- "country": "France",
- "is_defaut": false
}
], - "contacts_list": [
- {
- "id": "4700",
- "civility": "Mr",
- "lastname": "Dupont",
- "firstname": "Jean",
- "position_title": "CEO",
- "email": "jeandupont@example.com",
- "phone": "02 45 68 37 98",
- "mobile": "06 94 31 81 31",
- "description": "A description or note about this contact"
}
], - "custom_fields_list": [
- {
- "id": "3345",
- "title": "Source d'acquisition",
- "value": "5900",
- "value_text": "Facebook"
}
], - "opportunities_list": [
- {
- "id": "1947",
- "pipeline": "1924",
- "title": "Opportunity #1",
- "archived": "0"
}
], - "creation_date": "2022-03-25 12:04:24",
- "created_by": "213",
- "update_date": "2022-03-25 12:04:24",
- "updated_by": "213"
}
]
}
Create a customer.
name required | string <= 127 characters Name for professional customer or lastname for individual customer |
individual | integer Customer type
|
id_civility | integer Customer civility - Only for individual customer
|
firstname | string <= 127 characters Customer firstname - Only for individual customer |
prospect | integer Customer status
|
phone | string <= 30 characters Customer phone number |
mobile | string <= 30 characters Customer mobile number |
string <email> <= 127 characters Customer email address | |
id_client_manager | Array of strings <= 30 characters Users with group Id associated with the customer |
langId | integer Customer language
|
siret | string <= 30 characters Customer SIRET |
siren | integer <= 30 characters Customer SIREN |
legal_form | string <= 255 characters Customer status |
main_activity | string <= 255 characters APE/NAF code |
vat_number | string <= 30 characters VAT number |
default_discount_percent | number <double> Default discount |
id_document_template | integer |
id_payment_condition | integer Id of payment condition
|
id_vat | integer VAT Id
|
description | string <= 255 characters Customer description |
client_number | string <= 30 characters Internal number |
Array of objects[ items ] Custom fields | |
main_address | string <= 255 characters Main address |
main_zip_code | string <= 64 characters ZIP code of main address |
main_city | string <= 127 characters City of main address |
main_country | string <= 64 characters Country of main address |
delivery_title | string <= 127 characters Name or company name of delivery address |
delivery_address | string <= 255 characters Delivery address |
delivery_zip_code | string <= 64 characters ZIP code of delivery address |
delivery_city | string <= 127 characters City of delivery address |
delivery_country | string <= 64 characters Country of delivery address |
invoice_title | string <= 127 characters Name or company name of invoice address |
invoice_address | string <= 255 characters Invoice address |
invoice_zip_code | string <= 64 characters ZIP code of invoice address |
invoice_city | string <= 127 characters City of invoice address |
invoice_country | string <= 64 characters Country of invoice address |
{- "name": "Society X",
- "individual": 0,
- "id_civility": "",
- "firstname": "",
- "prospect": 0,
- "phone": "+33512345678",
- "mobile": "07 98 76 54 32",
- "email": "contact@example.com",
- "id_client_manager": [
- "u213"
], - "langId": 1,
- "siret": "123 568 941 00056",
- "siren": "123 568 941",
- "legal_form": "SARL",
- "main_activity": "4616C",
- "vat_number": "FR 32 123456789",
- "default_discount_percent": 10.5,
- "id_document_template": "",
- "id_payment_condition": "0",
- "id_vat": "-1",
- "description": "A description or note about this customer",
- "client_number": 123,
- "custom_fields": [
- {
- "id": 3345,
- "value": 5900
}
], - "main_address": "55 Av. Louis Breguet",
- "main_zip_code": 31400,
- "main_city": "Toulouse",
- "main_country": "France",
- "delivery_title": "My delivery address",
- "delivery_address": "1 place du Capitole",
- "delivery_zip_code": 31000,
- "delivery_city": "Toulouse",
- "delivery_country": "France",
- "invoice_title": "My invoice address",
- "invoice_address": "55 Rue du Faubourg Saint-Honoré",
- "invoice_zip_code": 75000,
- "invoice_city": "Paris",
- "invoice_country": "France"
}
{- "id": "28496",
- "title": "Society X",
- "individual": "0",
- "prospect": "0",
- "id_client_manager": [
- "u213"
], - "phone": "+33512345678",
- "mobile": "07 98 76 54 32",
- "email": "contact@example.com",
- "langId": "1",
- "siret": "123 568 941 00056",
- "siren": "123 568 941",
- "legal_form": "SARL",
- "main_activity": "4616C",
- "vat_number": "FR 32 123456789",
- "id_parent": "0",
- "id_products_prices_category": "0",
- "id_payment_condition": "0",
- "id_vat": "-1",
- "description": "A description or note about this customer",
- "client_number": "123",
- "address_list": [
- {
- "id": "17894",
- "type": "main",
- "title": "",
- "address": "55 Av. Louis Breguet",
- "zip_code": "31400",
- "city": "Toulouse",
- "country": "France",
- "is_defaut": true
},