Create customer
collmex_create_customerWRITE: create a NEW customer in Collmex (record CMXKND without a customer number, so Collmex assigns the next number; an existing customer is never overwritten). Each call creates another customer: check collmex_list_customers first to avoid duplicates. Nothing is sent to the customer. Give at least a company or a last name. Returns the new customer number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fax | No | Fax. | |
| city | No | City. | |
| No | E-mail address. | ||
| phone | No | Phone. | |
| title | No | Title (for example Dr.). | |
| remark | No | Internal remark. | |
| street | No | Street and house number. | |
| vat_id | No | EU VAT id. | |
| company | No | Company name. | |
| country | No | 2-letter ISO country code (DE, AT, CH ...). | |
| currency | No | 3-letter currency code, for example EUR. | |
| last_name | No | Last name. | |
| company_no | No | Collmex company number (Verwaltung → Firma anzeigen und ändern). Default 1. | |
| department | No | Department. | |
| first_name | No | First name. | |
| salutation | No | Salutation (for example Herr, Frau). | |
| postal_code | No | Postal code. | |
| payment_terms | No | Payment terms number (see collmex_list_payment_terms); empty = Collmex default. |