Create a relation
eboekhouden_create_relationCreate a new relation (customer or supplier) in the administration. Only name is required; the code is generated when omitted. Returns the new id and code. POST /v1/relation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bic | No | ||
| city | No | ||
| code | No | Relation code (max 15; generated when empty on create). | |
| iban | No | ||
| name | Yes | The (company) name (max 100). | |
| note | No | ||
| type | No | Business (B, default) or Private (P). | |
| gender | No | m = male, v = female, a = department. | |
| address | No | ||
| contact | No | Contact person. | |
| country | No | ||
| website | No | ||
| ledger_id | No | Ledger id of this relation (from eboekhouden_list_ledgers). | |
| salutation | No | ||
| vat_number | No | ||
| postal_code | No | ||
| phone_number | No | ||
| email_address | No | ||
| term_of_payment | No | Default payment term in days. | |
| mobile_phone_number | No | ||
| email_address_invoice | No | Address invoices are sent to. | |
| email_address_reminder | No | Address payment reminders are sent to. | |
| company_registration_number | No | Chamber of Commerce (KvK) number; digits only. |