{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Statement of account — Relevé de compte client / Klantenrekeningoverzicht (BE)","description":"Belgian customer statement of account of an enterprise: the issuer's identification, the customer, the period, the opening balance, the movements with the balance as given, the closing balance, an ageing of the balance and the total due as the user states them. Nothing is computed or defaulted.","type":"object","additionalProperties":false,"required":["company","customer","statement","period"],"properties":{"company":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name or company name of the enterprise."},"legal_form":{"type":"string","description":"Legal form (for example SRL, SA), as the enterprise writes it."},"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 (Code of economic law art. III.25, al. 1)."},"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 (domiciliation, 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":"Enterprise court of the registered seat (legal persons: CSA art. 2:20, 5°)."},"email":{"type":"string","description":"E-mail address."},"website":{"type":"string","description":"Website of the enterprise."},"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":"Whether the company is in liquidation (CSA art. 2:20, 7°); printed only when true."},"logo_base64":{"type":"string","description":"Logo of the issuer as a base64-encoded PNG or JPEG (validated by the renderer)."}},"description":"The enterprise that issues the statement.","required":["name","enterprise_number","address","postal_code","commune","iban"]},"customer":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the customer."},"contact_person":{"type":"string","description":"Contact person."},"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":"Enterprise number of a business counterparty, written 0123.456.789."},"vat_number":{"type":"string","description":"VAT number of a business counterparty."},"email":{"type":"string","description":"E-mail address."},"account_number":{"type":"string","description":"Customer account number in the enterprise's books."}},"description":"The customer the statement is addressed to.","required":["name"]},"statement":{"type":"object","additionalProperties":false,"properties":{"profile":{"type":"string","enum":["b2b","b2c"],"description":"b2b: the customer is an enterprise; b2c: the customer is a consumer. The late-payment rules differ."},"number":{"type":"string","description":"Number of the statement."},"date":{"type":"string","format":"date","description":"Date of the statement."},"opening_balance":{"type":["string","number"],"description":"Opening balance of the period (may be 0)."},"lines":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"date":{"type":"string","format":"date","description":"Date of the movement."},"type":{"type":"string","enum":["invoice","credit_note","payment","adjustment"],"description":"Kind of movement: invoice, credit_note, payment, adjustment."},"reference":{"type":"string","description":"Reference (invoice number, payment reference)."},"description":{"type":"string","description":"Description."},"amount":{"type":["string","number"],"description":"Signed amount of the movement."},"balance":{"type":["string","number"],"description":"Running balance after the movement, as given; never computed."}},"required":["date","type","amount"]}},"closing_balance":{"type":["string","number"],"description":"Closing balance, as the user states it."},"currency":{"type":"string","description":"Currency of the amounts, as typed (no default)."},"notes":{"type":"string","description":"Free notes."}},"description":"The statement.","required":["profile","date","opening_balance","closing_balance","currency","lines"]},"period":{"type":"object","additionalProperties":false,"properties":{"from":{"type":"string","format":"date","description":"First day of the period."},"to":{"type":"string","format":"date","description":"Last day of the period."}},"description":"The period the statement covers.","required":["from","to"]},"aged":{"type":"object","additionalProperties":false,"properties":{"current":{"type":["string","number"],"description":"Ageing bucket: current."},"days_1_30":{"type":["string","number"],"description":"Ageing bucket: 1 to 30 days."},"days_31_60":{"type":["string","number"],"description":"Ageing bucket: 31 to 60 days."},"days_61_90":{"type":["string","number"],"description":"Ageing bucket: 61 to 90 days."},"over_90":{"type":["string","number"],"description":"Ageing bucket: over 90 days."},"total_due":{"type":["string","number"],"description":"Total due, as the user states it."}},"description":"Ageing of the balance, as the user gives it."},"signatory":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the signatory."},"title":{"type":"string","description":"Function of the signatory."}},"description":"Who signs the statement."}}}