Create partner
Add a customer, supplier or person to the register.
POST https://cotlet.dev/api/v1/procountor/partners
write Confirm
Adds a partner with name, type and optional business ID, email and address. Default products, accounts and dimensions are not set; add them in Registers when needed. It reaches no one, but the partner stays in the register until you edit it there. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Partner name. |
| type string required | string | customer, supplier or person. |
| business_id string | string | Business ID, for example 1234567-8. |
| email string | string | Contact email for invoices. |
Request
curl -X POST https://cotlet.dev/api/v1/procountor/partners \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe","type":"type"}' result = client.call("procountor", "create_partner", {"name":"Jane Doe","type":"type"}) const result = await cotlet.call('procountor', 'create_partner', {"name":"Jane Doe","type":"type"}); cotlet call procountor create_partner --data '{"name":"Jane Doe","type":"type"}' Example response
{
"partner_id": "bp_20418",
"name": "Studio Kivi",
"type": "customer",
"created": true
}