{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Payment plan agreed between a creditor and a debtor on an acknowledged overdue debt (Belgium): the debt itemised (principal, interest, indemnity), the instalments, the allocation and default rules and the signature mode. Two profiles: a business debtor (law of 2 August 2002) and a consumer debtor (Code of economic law, Book XIX). Nothing is computed or defaulted; no amount in words is generated.","additionalProperties":false,"required":["company","debtor","debt","plan","signatures"],"properties":{"company":{"type":"object","additionalProperties":false,"description":"The creditor (company block; IBAN required: art. III.25, al. 2).","required":["name","enterprise_number","address","postal_code","commune","iban"],"properties":{"name":{"type":"string","description":"Name or company name of the enterprise."},"legal_form":{"type":"string","description":"Legal form (for example SRL, SA, BV), as the enterprise writes it; a sole trader leaves it blank."},"enterprise_number":{"type":"string","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$","description":"Belgian enterprise number (KBO/BCE), written 0123.456.789."},"vat_number":{"type":"string","pattern":"^BE[01][0-9]{9}$","description":"Belgian VAT number, written BE0123456789 (leave out if the enterprise has none)."},"address":{"type":"string","description":"Street and number of the registered office or domicile (Code of economic law art. III.25, al. 2)."},"postal_code":{"type":"string","description":"Postal code."},"commune":{"type":"string","description":"Municipality."},"rpm_court":{"type":"string","description":"Seat of the enterprise court named after the words RPM / RPR (legal persons only; CSA art. 2:20, 5°)."},"email":{"type":"string","description":"E-mail address."},"website":{"type":"string","description":"Website."},"phone":{"type":"string","description":"Telephone number."},"iban":{"type":"string","description":"IBAN of a payment account the enterprise holds (Code of economic law art. III.25, al. 2)."},"bic":{"type":"string","description":"BIC of that account."},"in_liquidation":{"type":"boolean","description":"true when the legal person is in liquidation (CSA art. 2:20, 7°); printed only when true."}}},"debtor":{"type":"object","additionalProperties":false,"required":["profile","name","address","postal_code","commune"],"properties":{"profile":{"type":"string","enum":["b2b","b2c"],"description":"b2b: the debtor is an enterprise; b2c: a consumer."},"name":{"type":"string","description":"Name of the debtor."},"address":{"type":"string","description":"Street and number."},"postal_code":{"type":"string","description":"Postal code."},"commune":{"type":"string","description":"Municipality."},"enterprise_number":{"type":"string","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$","description":"Belgian enterprise number of a business debtor (0123.456.789)."}}},"debt":{"type":"object","additionalProperties":false,"required":["currency","documents","principal_outstanding","total_due"],"properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency code of the amounts (for example EUR)."},"documents":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["reference","date","description","due_date","amount"],"properties":{"reference":{"type":"string","description":"Reference of the invoice or document."},"date":{"type":"string","format":"date","description":"Date of the document."},"description":{"type":"string","description":"Product or service that gave rise to the debt (Code of economic law art. XIX.2, § 3, 3°)."},"due_date":{"type":"string","format":"date","description":"Due date of the debt."},"amount":{"type":"number","minimum":0,"description":"Amount of the document."}}},"minItems":1,"description":"The documents the debt arises from, one per item."},"principal_outstanding":{"type":"number","minimum":0,"description":"Principal still due."},"interest_amount":{"type":"number","minimum":0,"description":"Interest claimed."},"interest_basis":{"type":"string","description":"Basis of the interest, as the creditor writes it."},"indemnity_amount":{"type":"number","minimum":0,"description":"Flat-rate indemnity claimed."},"indemnity_clause_reference":{"type":"string","description":"Reference of the contract clause that expressly provides the indemnity."},"first_reminder_date":{"type":"string","format":"date","description":"Date the first free reminder was sent to the consumer."},"total_due":{"type":"number","minimum":0,"description":"Total due, as the creditor states it."},"amount_in_words":{"type":"string","description":"Total in words as typed by the creditor (no probative effect: the debtor writes it by hand where Civil Code art. 8.21 applies)."}}},"plan":{"type":"object","additionalProperties":false,"required":["instalments","payment_method","allocation","default_rule","creditor_waives_further_costs"],"properties":{"instalments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["number","due_date","amount"],"properties":{"number":{"type":"string","description":"Number of the instalment."},"due_date":{"type":"string","format":"date","description":"Due date of the instalment."},"amount":{"type":"number","minimum":0,"description":"Amount of the instalment."}}},"minItems":1,"description":"The instalments, one per item."},"payment_method":{"type":"string","enum":["bank_transfer","direct_debit","cash","other"],"description":"How the instalments are paid."},"structured_communication":{"type":"string","description":"Structured communication of the payments."},"allocation":{"type":"string","enum":["principal_first","interest_first","not_stated"],"description":"How a payment is allocated."},"default_rule":{"type":"string","enum":["lapse_after_notice","lapse_immediately","not_stated"],"description":"What happens when an instalment is missed."},"default_notice_days":{"type":"integer","minimum":1,"description":"Days of notice before the plan lapses."},"creditor_waives_further_costs":{"type":"boolean","description":"true: the creditor waives further costs while the plan is honoured."}},"allOf":[{"if":{"properties":{"default_rule":{"const":"lapse_after_notice"}},"required":["default_rule"]},"then":{"required":["default_notice_days"]}}]},"signatures":{"type":"object","additionalProperties":false,"required":["mode","originals","creditor_signatory_name","creditor_signatory_title","debtor_signatory_name"],"properties":{"mode":{"type":"string","enum":["both_parties","debtor_alone","acknowledgment_of_debt"],"description":"Who signs and what the document is."},"place":{"type":"string","description":"Place of signature."},"date":{"type":"string","format":"date","description":"Date of signature."},"originals":{"type":"integer","minimum":1,"description":"Number of originals signed (Civil Code art. 8.20)."},"creditor_signatory_name":{"type":"string","description":"Name of the creditor's signatory."},"creditor_signatory_title":{"type":"string","description":"Capacity of the creditor's signatory."},"debtor_signatory_name":{"type":"string","description":"Name of the debtor's signatory."}}}}}