{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Pro forma invoice — Facture pro forma / Pro-formafactuur (BE)","description":"Belgian pro forma document of an enterprise to a consumer (b2c) or to another enterprise (b2b): the issuer's identification, the lines, the totals, the VAT regime the user chooses and the payment instructions. It is not an invoice. Every amount is given by the user; nothing is computed or defaulted.","type":"object","additionalProperties":false,"required":["company","client","proforma"],"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 pro forma.","required":["name","enterprise_number","address","postal_code","commune","iban"]},"client":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the client."},"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."}},"description":"The person or enterprise the pro forma is addressed to.","required":["name"]},"proforma":{"type":"object","additionalProperties":false,"properties":{"profile":{"type":"string","enum":["b2c","b2b"],"description":"b2c: the client is a consumer; b2b: the client is an enterprise."},"price_display":{"type":"string","enum":["incl_vat","excl_vat"],"description":"How the line prices are shown to a consumer: incl_vat or excl_vat. Required when profile is b2c; the total including VAT is always printed."},"number":{"type":"string","description":"Number of the pro forma, in the enterprise's own series, distinct from the invoices."},"date":{"type":"string","format":"date","description":"Date of the pro forma."},"valid_until":{"type":"string","format":"date","description":"Last day on which the pro forma is valid."},"reference":{"type":"string","description":"The client's reference."},"supply_date":{"type":"string","format":"date","description":"Expected date of the supply."},"vat_regime":{"type":"string","enum":["standard","franchise_art56bis","reverse_charge","exempt","unknown"],"description":"VAT regime of the document: standard, franchise_art56bis (small-business tax franchise, arts 56bis to 56undecies of the VAT Code), reverse_charge, exempt, unknown. The template prints a mention only for the regime chosen."},"lines":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"description":{"type":"string","description":"Nature and detail of the service or supply."},"quantity":{"type":["string","number"],"description":"Quantity."},"unit":{"type":"string","description":"Unit of the quantity (for example: h, m², piece)."},"unit_price":{"type":["string","number"],"description":"Unit price excluding VAT."},"vat_rate":{"type":["string","number"],"description":"VAT rate of the line, in percent."},"amount":{"type":["string","number"],"description":"Amount of the line excluding VAT."},"unit_price_incl_vat":{"type":["string","number"],"description":"Unit price including VAT; printed instead of the unit price excluding VAT when price_display is incl_vat."},"amount_incl_vat":{"type":["string","number"],"description":"Amount of the line including VAT; printed instead of the amount excluding VAT when price_display is incl_vat."}},"required":["description","amount"]}},"total_excl_vat":{"type":["string","number"],"description":"Total excluding VAT."},"total_vat":{"type":["string","number"],"description":"Total VAT."},"total_incl_vat":{"type":["string","number"],"description":"Total price including VAT."},"currency":{"type":"string","description":"Currency of the amounts, as typed (no default)."},"payment_terms":{"type":"string","description":"Payment instructions or terms, as the enterprise states them."},"structured_communication":{"type":"string","description":"Structured communication (+++000/0000/00000+++), left blank in the examples (no checksum validator exists).","pattern":"^\\+\\+\\+[0-9]{3}/[0-9]{4}/[0-9]{5}\\+\\+\\+$"},"notes":{"type":"string","description":"Free notes."}},"description":"The pro forma.","allOf":[{"if":{"properties":{"profile":{"const":"b2c"}},"required":["profile"]},"then":{"required":["price_display"]}}],"required":["profile","number","date","vat_regime","total_excl_vat","total_vat","total_incl_vat","currency","lines"]},"legal_guarantee":{"type":"object","additionalProperties":false,"properties":{"harmonised_notice":{"type":"string","description":"Where the seller provides the harmonised legal-guarantee notice (consumer sale of goods); the notice itself is never reproduced."}},"description":"Legal guarantee of conformity."}}}