Create a customer
merit_create_customerWRITE: creates ONE new customer record in the Merit company (name must be unique; an existing customer is never overwritten, Merit answers with an error). Nothing is invoiced, sent or paid. In Estonia not_td_customer must be true for private persons and foreign companies; city is required in Estonia for a non-EE country. Returns the new customer id. POST /api/v2/sendcustomer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City. | |
| name | Yes | Customer name (unique in the company). | |
| No | E-mail address (stored only; Merit sends nothing). | ||
| county | No | County. | |
| reg_no | No | Registry or personal id code. | |
| address | No | Street address. | |
| contact | No | Contact person. | |
| phone_no | No | Phone number. | |
| home_page | No | Web page. | |
| vat_reg_no | No | VAT number. | |
| postal_code | No | Postal code. | |
| bank_account | No | Customer bank account (IBAN). | |
| country_code | Yes | 2-letter ISO country code, e.g. EE, PL. | |
| currency_code | No | Default currency, e.g. EUR. | |
| not_td_customer | Yes | true for private persons and foreign companies (Estonia), true for private persons (Poland); false for a local company. | |
| payment_deadline_days | No | Payment term in days (default from company settings). | |
| sales_invoice_language | No | Invoice language for this customer (Estonia: ET, EN, RU, FI; Poland: PL, EN, RU). |