{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Purchase order — Bon de commande / Inkooporder (BE)","description":"Belgian purchase order of a buying enterprise to a supplier: the buyer's and the supplier's identification, the lines with supplier reference, quantity, unit, unit price excluding VAT, VAT rate and amount, the totals, the currency, the payment term, the delivery terms and an optional acceptance block. Every amount is given by the user; nothing is computed or defaulted.","type":"object","additionalProperties":false,"required":["company","supplier","order"],"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 places the order (the buyer).","required":["name","enterprise_number","address","postal_code","commune","iban"]},"supplier":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the supplier."},"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 supplier the order is addressed to.","required":["name"]},"order":{"type":"object","additionalProperties":false,"properties":{"number":{"type":"string","description":"Number of the purchase order."},"date":{"type":"string","format":"date","description":"Date of the order."},"supplier_offer_reference":{"type":"string","description":"Reference of the supplier's offer."},"requested_delivery_date":{"type":"string","format":"date","description":"Requested delivery date."},"delivery_address":{"type":"string","description":"Delivery address (street and number)."},"delivery_postal_code":{"type":"string","description":"Postal code of the delivery address."},"delivery_commune":{"type":"string","description":"Municipality of the delivery address."},"lines":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"description":{"type":"string","description":"Description."},"supplier_reference":{"type":"string","description":"Supplier's reference."},"quantity":{"type":["string","number"],"description":"Quantity."},"unit":{"type":"string","description":"Unit."},"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."}},"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 including VAT."},"currency":{"type":"string","description":"Currency of the amounts, as typed (no default)."},"payment_term_days":{"type":"integer","minimum":0,"description":"Payment term in days."},"payment_due_date":{"type":"string","format":"date","description":"Payment due date, when fixed by a date."},"delivery_terms":{"type":"string","description":"Delivery terms (an Incoterm only if typed here)."},"purchasing_conditions_reference":{"type":"string","description":"Reference of the buyer's purchasing conditions (document title and version)."},"notes":{"type":"string","description":"Free notes."}},"description":"The purchase order.","required":["number","date","total_excl_vat","total_vat","total_incl_vat","currency","lines"]},"ordered_by":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the person who orders."},"title":{"type":"string","description":"Function of that person."}},"description":"Who places the order."},"acceptance":{"type":"object","additionalProperties":false,"properties":{"supplier_name":{"type":"string","description":"Name of the person who accepts for the supplier."},"date":{"type":"string","format":"date","description":"Date of acceptance."}},"description":"Optional acceptance by the supplier."}}}