{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Accord d'autofacturation (BE)","description":"Prior agreement under which a customer issues the invoices of its VAT-registered supplier in the supplier's name and on its behalf (self-billing). Every fact is the parties': no acceptance mode, period, rate or retention period is defaulted.","type":"object","additionalProperties":false,"required":["supplier","customer","agreement","scope","issuer","invoice","acceptance","law","signatories"],"properties":{"supplier":{"type":"object","additionalProperties":false,"required":["name","enterprise_number","vat_number","address","domiciliation","payment_account"],"properties":{"name":{"type":"string","description":"Name of the supplier."},"legal_form":{"type":"string","description":"Legal form of the supplier, as it writes it."},"enterprise_number":{"type":"string","pattern":"^[0-9]{4}\\.[0-9]{3}\\.[0-9]{3}$","description":"Enterprise number of the supplier, 0000.000.000 (Code of economic law art. III.25, al. 1)."},"vat_number":{"type":"string","pattern":"^BE[01][0-9]{9}$","description":"Belgian VAT number of the supplier, written BE0123456789."},"address":{"type":"string","description":"Address of the registered office of the supplier."},"domiciliation":{"type":"string","description":"Domiciliation of the supplier (Code of economic law art. III.25, al. 2)."},"payment_account":{"type":"string","description":"Number (IBAN) of at least one payment account the supplier holds (Code of economic law art. III.25, al. 2)."},"rpm_court":{"type":"string","description":"Town of the enterprise court of the registered office of the supplier, as it writes it."},"in_liquidation":{"type":"boolean","description":"Whether the supplier is in liquidation (prints 'en liquidation', CSA art. 2:76 al. 2)."},"seat_region":{"type":"string","enum":["nl_region","fr_region","brussels","de_region"],"description":"Language region of the operating seat of the supplier (information: no language is compared with the region)."}}},"customer":{"type":"object","additionalProperties":false,"required":["name","enterprise_number","vat_number","address","domiciliation","payment_account"],"properties":{"name":{"type":"string","description":"Name of the customer."},"legal_form":{"type":"string","description":"Legal form of the customer, as it writes it."},"enterprise_number":{"type":"string","pattern":"^[0-9]{4}\\.[0-9]{3}\\.[0-9]{3}$","description":"Enterprise number of the customer, 0000.000.000 (Code of economic law art. III.25, al. 1)."},"vat_number":{"type":"string","pattern":"^BE[01][0-9]{9}$","description":"Belgian VAT number of the customer, written BE0123456789."},"address":{"type":"string","description":"Address of the registered office of the customer."},"domiciliation":{"type":"string","description":"Domiciliation of the customer (Code of economic law art. III.25, al. 2)."},"payment_account":{"type":"string","description":"Number (IBAN) of at least one payment account the customer holds (Code of economic law art. III.25, al. 2)."},"rpm_court":{"type":"string","description":"Town of the enterprise court of the registered office of the customer, as it writes it."},"in_liquidation":{"type":"boolean","description":"Whether the customer is in liquidation (prints 'en liquidation', CSA art. 2:76 al. 2)."},"seat_region":{"type":"string","enum":["nl_region","fr_region","brussels","de_region"],"description":"Language region of the operating seat of the customer (information: no language is compared with the region)."}}},"agreement":{"type":"object","additionalProperties":false,"required":["date","start_date","duration_kind"],"properties":{"date":{"type":"string","format":"date","description":"Date of the agreement (it precedes the first self-billed invoice)."},"place":{"type":"string","description":"Place where the agreement is signed."},"start_date":{"type":"string","format":"date","description":"Date from which the customer issues the invoices."},"duration_kind":{"type":"string","enum":["indefinite","fixed_term"],"description":"indefinite or fixed_term."},"end_date":{"type":"string","format":"date","description":"End date of a fixed-term agreement."},"termination_notice":{"type":"string","description":"Termination and its notice, as the parties write it."}},"allOf":[{"if":{"properties":{"duration_kind":{"const":"fixed_term"}},"required":["duration_kind"]},"then":{"required":["end_date"]}}]},"scope":{"type":"object","additionalProperties":false,"required":["supplies"],"properties":{"supplies":{"type":"string","description":"The supplies of goods or services the self-billed invoices cover."},"exclusions":{"type":"string","description":"Supplies the agreement does not cover."}}},"issuer":{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["customer","third_party_on_behalf_of_customer"],"description":"Who issues the invoices: the customer or a third party acting on its behalf."},"third_party_name":{"type":"string","description":"Name of the third party that issues the invoices on behalf of the customer."},"third_party_enterprise_number":{"type":"string","pattern":"^[0-9]{4}\\.[0-9]{3}\\.[0-9]{3}$","description":"Enterprise number of that third party, 0000.000.000."}},"allOf":[{"if":{"properties":{"kind":{"const":"third_party_on_behalf_of_customer"}},"required":["kind"]},"then":{"required":["third_party_name"]}}]},"invoice":{"type":"object","additionalProperties":false,"required":["numbering","mention_self_billing","format","vat_treatment"],"properties":{"numbering":{"type":"string","description":"How the invoices are numbered (a sequence per supplier), as the parties write it."},"mention_self_billing":{"type":"boolean","description":"Whether each invoice carries the mention required by royal decree no. 1 art. 5 par. 1, 9° ter (« Autofacturation » / « factuur uitgereikt door afnemer »)."},"format":{"type":"string","enum":["structured_einvoice_peppol","other"],"description":"Format and channel: a structured e-invoice sent via Peppol, or another format."},"format_other":{"type":"string","description":"Description of the other format and channel."},"vat_treatment":{"type":"string","enum":["standard_rates","reverse_charge","exempt","mixed_per_supply"],"description":"VAT treatment the parties state: standard rates, reverse charge (« Autoliquidation »), exemption, or mixed per supply; no rate is printed."}}},"acceptance":{"type":"object","additionalProperties":false,"required":["procedure","mode","rejection_procedure"],"properties":{"procedure":{"type":"string","description":"The procedure by which the supplier accepts each invoice."},"mode":{"type":"string","enum":["explicit","tacit_after_days"],"description":"explicit acceptance, or tacit acceptance after a number of days the parties state."},"days":{"type":"integer","minimum":1,"description":"Number of days within which acceptance or refusal must be notified."},"rejection_procedure":{"type":"string","description":"The procedure by which the supplier rejects an invoice."}},"allOf":[{"if":{"properties":{"mode":{"const":"tacit_after_days"}},"required":["mode"]},"then":{"required":["days"]}}]},"corrections":{"type":"object","additionalProperties":false,"properties":{"procedure":{"type":"string","description":"Corrections and credit notes: who issues them and how."}}},"supplier_data":{"type":"object","additionalProperties":false,"properties":{"obligations":{"type":"string","description":"The data the supplier must provide and keep up to date (VAT number, regime, rates, exemptions) and its declarations."}}},"retention":{"type":"object","additionalProperties":false,"properties":{"statement":{"type":"string","description":"The parties' statement on the retention of copies by both parties."}}},"liability":{"type":"object","additionalProperties":false,"properties":{"clause":{"type":"string","description":"The parties' clause on liability for errors."}}},"law":{"type":"object","additionalProperties":false,"required":["governing","courts"],"properties":{"governing":{"type":"string","description":"Governing law."},"courts":{"type":"string","description":"Competent courts."}}},"signatories":{"type":"array","description":"Signatories of the two parties.","items":{"type":"object","additionalProperties":false,"required":["party","name","role"],"properties":{"party":{"type":"string","enum":["supplier","customer"],"description":"supplier or customer."},"name":{"type":"string","description":"Name of the signatory."},"role":{"type":"string","description":"Capacity of the signatory."},"place":{"type":"string","description":"Place of signature."},"date":{"type":"string","format":"date","description":"Date of signature."}}},"minItems":1}}}