Raw schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 150,
"description": "Customer name (unique in the company)."
},
"country_code": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "2-letter ISO country code, e.g. EE, PL."
},
"not_td_customer": {
"type": "boolean",
"description": "true for private persons and foreign companies (Estonia), true for private persons (Poland); false for a local company."
},
"reg_no": {
"description": "Registry or personal id code.",
"type": "string",
"maxLength": 30
},
"vat_reg_no": {
"description": "VAT number.",
"type": "string",
"maxLength": 30
},
"currency_code": {
"description": "Default currency, e.g. EUR.",
"type": "string",
"minLength": 3,
"maxLength": 4
},
"payment_deadline_days": {
"description": "Payment term in days (default from company settings).",
"type": "integer",
"minimum": 0,
"maximum": 365
},
"address": {
"description": "Street address.",
"type": "string",
"maxLength": 100
},
"city": {
"description": "City.",
"type": "string",
"maxLength": 30
},
"county": {
"description": "County.",
"type": "string",
"maxLength": 100
},
"postal_code": {
"description": "Postal code.",
"type": "string",
"maxLength": 15
},
"phone_no": {
"description": "Phone number.",
"type": "string",
"maxLength": 50
},
"email": {
"description": "E-mail address (stored only; Merit sends nothing).",
"type": "string",
"maxLength": 80,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"home_page": {
"description": "Web page.",
"type": "string",
"maxLength": 80
},
"sales_invoice_language": {
"description": "Invoice language for this customer (Estonia: ET, EN, RU, FI; Poland: PL, EN, RU).",
"type": "string",
"enum": [
"ET",
"EN",
"RU",
"FI",
"PL"
]
},
"contact": {
"description": "Contact person.",
"type": "string",
"maxLength": 35
},
"bank_account": {
"description": "Customer bank account (IBAN).",
"type": "string",
"maxLength": 50
}
},
"required": [
"name",
"country_code",
"not_td_customer"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}