{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Invoice dispute - Contestation de facture / Betwisting van factuur (BE)","description":"Belgian letter by which an enterprise, as buyer, contests all or part of a supplier's invoice: the contested lines with their reasons, the undisputed part, the request and a reply deadline. Business to business. Nothing is defaulted or computed: no interest figure is printed.","type":"object","additionalProperties":false,"required":["sender","recipient","letter","invoice","disputed_lines","settlement","signature"],"properties":{"sender":{"type":"object","description":"the buyer: the enterprise (CSA art. 2:20 for a legal person, Code of economic law art. III.25).","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name or company name."},"legal_form":{"type":"string","description":"Legal form: SRL, SA, SC, SComm, SNC, ASBL, AISBL, foundation, or EI (sole trader).","enum":["SRL","SA","SC","SComm","SNC","ASBL","AISBL","foundation","EI"]},"enterprise_number":{"type":"string","description":"Belgian enterprise number (KBO/BCE), written 0123.456.789 (Code of economic law art. III.25, al. 1).","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$"},"vat_number":{"type":"string","description":"Belgian VAT number, written BE0123456789 (leave out if none).","pattern":"^BE[01][0-9]{9}$"},"address":{"type":"string","description":"Street and number of the seat."},"postal_code":{"type":"string","description":"Postal code of the seat."},"commune":{"type":"string","description":"Municipality of the seat."},"domiciliation":{"type":"string","description":"Domiciliation (Code of economic law art. III.25, al. 2), when it differs from the seat."},"rpm_court":{"type":"string","description":"Court of the seat for the mention 'RPM' (CSA art. 2:20, 5°), as the enterprise writes it."},"in_liquidation":{"type":"boolean","description":"True if the legal person is in liquidation (CSA art. 2:20, 7°)."},"iban":{"type":"string","description":"IBAN of a payment account the enterprise holds (Code of economic law art. III.25, al. 2)."},"email":{"type":"string","description":"E-mail address (CSA art. 2:20, 6°)."},"website":{"type":"string","description":"Website (CSA art. 2:20, 6°)."}},"required":["name","legal_form","enterprise_number","address","postal_code","commune","iban"],"allOf":[{"if":{"properties":{"legal_form":{"enum":["SRL","SA","SC","SComm","SNC","ASBL","AISBL","foundation"]}},"required":["legal_form"]},"then":{"required":["rpm_court"]}}]},"recipient":{"type":"object","description":"The supplier that issued the invoice.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the supplier."},"enterprise_number":{"type":"string","description":"Enterprise number of the supplier, written 0123.456.789.","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$"},"address":{"type":"string","description":"Street and number."},"postal_code":{"type":"string","description":"Postal code."},"commune":{"type":"string","description":"Municipality."},"attention":{"type":"string","description":"Person the letter is addressed to."}},"required":["name","address","postal_code","commune"]},"letter":{"type":"object","description":"The letter itself.","additionalProperties":false,"properties":{"date":{"type":"string","description":"Date of the letter.","format":"date"},"place":{"type":"string","description":"Place of the letter."}},"required":["date"]},"invoice":{"type":"object","description":"The contested invoice.","additionalProperties":false,"properties":{"number":{"type":"string","description":"Number of the invoice."},"date":{"type":"string","description":"Date of the invoice.","format":"date"},"total_incl_vat":{"type":["string","number"],"description":"Total of the invoice including VAT."},"due_date":{"type":"string","description":"Due date of the invoice.","format":"date"},"reference":{"type":"string","description":"Order or contract reference."}},"required":["number","date","total_incl_vat","due_date"]},"disputed_lines":{"type":"array","description":"The contested lines of the invoice.","items":{"type":"object","additionalProperties":false,"properties":{"description":{"type":"string","description":"Description of the line."},"invoiced_amount":{"type":["string","number"],"description":"Amount invoiced for the line."},"contested_amount":{"type":["string","number"],"description":"Amount contested on the line."},"reason":{"type":"string","description":"Reason of the dispute.","enum":["not_ordered","not_delivered","wrong_quantity","wrong_price","defective","already_paid","vat_rate","other"]},"explanation":{"type":"string","description":"Free explanation of the line."}},"required":["description","invoiced_amount","contested_amount","reason"]},"minItems":1},"settlement":{"type":"object","description":"Totals, the undisputed part, the request and the reply deadline.","additionalProperties":false,"properties":{"disputed_total":{"type":["string","number"],"description":"Total of the contested amounts."},"undisputed_total":{"type":["string","number"],"description":"Amount of the undisputed part."},"undisputed_action":{"type":"string","description":"What is done with the undisputed part: paid, will be paid, or withheld.","enum":["paid","will_pay","withheld"]},"paid_on":{"type":"string","description":"Date on which the undisputed part was paid.","format":"date"},"pay_by":{"type":"string","description":"Date by which the undisputed part will be paid.","format":"date"},"request":{"type":"string","description":"What the supplier is asked to do.","enum":["credit_note","corrected_invoice","explanation"]},"reply_by":{"type":"string","description":"Date by which a reply is asked.","format":"date"}},"required":["disputed_total","undisputed_total","request","reply_by"],"allOf":[{"if":{"properties":{"undisputed_action":{"const":"paid"}},"required":["undisputed_action"]},"then":{"required":["paid_on"]}},{"if":{"properties":{"undisputed_action":{"const":"will_pay"}},"required":["undisputed_action"]},"then":{"required":["pay_by"]}}]},"evidence":{"type":"array","description":"Evidence enclosed, one per item.","items":{"type":"string"}},"dispatch":{"type":"object","description":"How and when the letter is sent.","additionalProperties":false,"properties":{"mode":{"type":"string","description":"Means of dispatch.","enum":["registered_letter","registered_email","email","hand_delivery_with_receipt","other"]},"date":{"type":"string","description":"Date of dispatch.","format":"date"}}},"signature":{"type":"object","description":"Signatory.","additionalProperties":false,"properties":{"signatory_name":{"type":"string","description":"Name of the signatory."},"signatory_capacity":{"type":"string","description":"Capacity of the signatory."}},"required":["signatory_name","signatory_capacity"]}}}