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

Parameters: create_contact
NameTypeDescription
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
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"}'
Python
result = client.call("holded", "create_contact", {"name":"Jane Doe"})
Node.js
const result = await cotlet.call('holded', 'create_contact', {"name":"Jane Doe"});
CLI
cotlet call holded create_contact --data '{"name":"Jane Doe"}'

Example response

JSON

{
  "contact_id": "c_a7731e",
  "name": "Fastcloud Hosting",
  "type": "supplier",
  "email": "billing@fastcloud.example"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.