Create client

Add a client to your Fakturownia client list.

POST https://cotlet.dev/api/v1/fakturownia/clients

write

Creates a client record. Only name is required. A private person needs company set to false and a last name. Nothing is sent to anyone and the client can be edited or deleted in the app, so create_client runs without asking first.

Parameters

Parameters: create_client
NameTypeDescription
name string required string Client name.
tax_no string string Tax number (NIP).
email string string Email address for sending invoices.
street string string Street and number.
post_code string string Postal code.
city string string City.
country string string Country code.
company boolean boolean false for a private person. Default: true.
last_name string string Needed when company is false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/fakturownia/clients \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Jane Doe"}'
Python
result = client.call("fakturownia", "create_client", {"name":"Jane Doe"})
Node.js
const result = await cotlet.call('fakturownia', 'create_client', {"name":"Jane Doe"});
CLI
cotlet call fakturownia create_client --data '{"name":"Jane Doe"}'

Example response

JSON

{
  "id": 4832,
  "name": "Harbor Print Ltd",
  "tax_no": "7654321098",
  "email": "office@harborprint.example",
  "company": 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.