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

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

Example response

JSON

{
  "partner_id": "bp_20418",
  "name": "Studio Kivi",
  "type": "customer",
  "created": true
}

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.