Create contact
Add a customer, supplier or lead to Holded.
POST https://cotlet.dev/api/v1/holded/contacts
write
Creates one contact. Type is the contact type Holded uses: customer, supplier, lead, debtor or creditor. The contact reaches no one and you can change it with update_contact, so it runs without asking first. Search with list_contacts first: this call does not check for a duplicate.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Contact name as it should appear on documents. |
| type enum | enum | customer, supplier, lead, debtor or creditor. |
| email string | string | Email address used for sending documents. |
| tax_id string | string | Tax ID as it should appear on documents. |
Request
curl -X POST https://cotlet.dev/api/v1/holded/contacts \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("holded", "create_contact", {"name":"Jane Doe"}) const result = await cotlet.call('holded', 'create_contact', {"name":"Jane Doe"}); cotlet call holded create_contact --data '{"name":"Jane Doe"}' Example response
{
"contact_id": "c_a7731e",
"name": "Fastcloud Hosting",
"type": "supplier",
"email": "billing@fastcloud.example"
}