Create customer
create_customerCreate a new customer in the user's contix account. Only contact_name is required: NIF, email and address are optional (e.g. private individuals without NIF are fine). Returns the new customer's id, name, NIF and email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nif | No | ||
| city | No | ||
| No | |||
| notes | No | internal notes about the customer | |
| phone | No | ||
| country | No | ISO-2, e.g. ES, DE, FR | ES |
| email_cc | No | Additional recipients. Invoices, reminders, payment confirmations and quotes for this customer go to `email` AND to every address listed here, all visible in the To header. Max 5. | |
| province | No | ||
| no_email_cc | No | True for a collective customer whose contact addresses belong to DIFFERENT end customers (e.g. one account used for all PayPal payers). Keeps the additional-recipient list empty and stops the Zoho sync from refilling it, so no stranger's address ever shows up in the To header. | |
| postal_code | No | ||
| company_name | No | ||
| contact_name | Yes | ||
| address_line1 | No | ||
| address_line2 | No | ||
| recipient_type | No | kind of recipient, as the user states it; drives the Veri*factu recipient block and Modelo 347/349 assignment | |
| is_public_admin | No | True if the customer is a Spanish public administration (school, ayuntamiento, university). Enables Facturae/B2G invoicing. Requires the three DIR3 codes below. | |
| dir3_organo_gestor | No | DIR3 code of the Órgano Gestor. Provided by the administration. | |
| default_product_group | No | Product group new invoices of this customer get when create_invoice is called without one. Must be a name from get_product_groups; empty string clears it. | |
| dir3_oficina_contable | No | DIR3 code of the Oficina Contable, e.g. L01410950. Provided by the administration. | |
| dir3_unidad_tramitadora | No | DIR3 code of the Unidad Tramitadora. Provided by the administration. |