Create customer
create_customerCreate a customer for shipping marks and sales orders. Name is required. Optional default_shipping_mark_profile_id must be a shipping_mark profile in this org. Optional idempotency_key. Omit this field when it is not used. Null, an empty string, or only spaces are also treated as omitted. Use a unique value such as a UUID. The same key and the same arguments return the stored result for 24 hours and set idempotent_replay to true. A key still in progress is rejected until the lease expires (15 minutes by default). The same key can also stay reserved until the lease expires (15 minutes by default) after a call failed after writing rows, so check whether those rows were saved before trying again. The same key with different arguments is rejected. A stored result over 200 KB is replaced by a short summary of ids and counts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| name | Yes | ||
| No | |||
| notes | No | ||
| phone | No | ||
| region | No | ||
| country | No | ||
| org_number | No | ||
| vat_number | No | ||
| postal_code | No | ||
| account_code | No | ||
| billing_city | No | ||
| contact_name | No | ||
| address_line1 | No | ||
| address_line2 | No | ||
| payment_terms | No | ||
| billing_region | No | ||
| extra_contacts | No | ||
| billing_country | No | ||
| idempotency_key | No | Optional. Omit this field when it is not used. An empty string is also treated as omitted. Use a unique value such as a UUID when you send one. Same key and same arguments return the stored result for 24 hours in this organization, with idempotent_replay true. A different payload is rejected. | |
| billing_postal_code | No | ||
| billing_address_line1 | No | ||
| billing_address_line2 | No | ||
| default_shipping_mark_profile_id | No |