{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Variation order (avenant) to a construction works contract or subcontract (Belgium): the amended contract and its original signature date (which selects the legal regime), the origin and description of the added, modified and omitted works, the price and schedule impact as the user gives them, insurance mentions, consumer information and withdrawal when the amendment is signed with a consumer, signatures. Nothing is computed: omitted amounts are typed negative, the new total and the new end date are the user's.","additionalProperties":false,"required":["amendment","contract","contractor","client","insurance","price","payment","signatures","contract_kind","origin","description"],"properties":{"contract_kind":{"type":"string","enum":["works_contract","subcontract"],"description":"Kind of the amended contract: works contract or subcontract."},"amendment":{"type":"object","additionalProperties":false,"required":["number","date"],"properties":{"number":{"type":"integer","minimum":1,"description":"Number of the amendment."},"date":{"type":"string","format":"date","description":"Date of the amendment itself (not the date of the original contract)."},"place":{"type":"string","description":"Place where the amendment is concluded."}},"description":"The amendment: number, date, place."},"contract":{"type":"object","additionalProperties":false,"required":["reference","signed_on","breyne_applies"],"properties":{"reference":{"type":"string","description":"Reference of the amended contract."},"signed_on":{"type":"string","format":"date","description":"Date the ORIGINAL contract was signed: it selects the legal regime (old Civil Code before 1 September 2027, Book 7 from that date), never the date of the amendment."},"breyne_applies":{"type":"string","enum":["yes","no","unknown"],"description":"Whether the Breyne law (law of 9 July 1971) applies to the contract: the user's answer, never derived."},"conclusion_context":{"type":"string","enum":["premises","off_premises","distance"],"description":"Where the contract is concluded (consumer): in the premises, off premises or at a distance."},"main_contract_date":{"type":"string","format":"date","description":"Date of the main contract (subcontract): with the subcontract date it selects the regime."}},"description":"The amended contract: reference, ORIGINAL signature date (selects the regime), Breyne answer."},"contractor":{"type":"object","additionalProperties":false,"required":["name","enterprise_number","address","postal_code","commune","iban"],"properties":{"name":{"type":"string","description":"Name or company name of the contractor."},"legal_form":{"type":"string","description":"Legal form, as written by the enterprise; a sole trader leaves it blank."},"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."},"vat_number":{"type":"string","pattern":"^BE[01][0-9]{9}$","description":"Belgian VAT number, written BE0123456789."},"address":{"type":"string","description":"Street and number of the seat (domiciliation)."},"postal_code":{"type":"string","description":"Postal code of the seat."},"commune":{"type":"string","description":"Municipality of the seat."},"rpm_court":{"type":"string","description":"Seat of the enterprise court named after RPM / RPR (legal persons only)."},"in_liquidation":{"type":"boolean","description":"True when the legal person is in liquidation; printed only when true."},"iban":{"type":"string","description":"IBAN of a payment account the contractor holds (CDE art. III.25, al. 2)."},"bic":{"type":"string","description":"BIC of that account."},"email":{"type":"string","description":"E-mail address of the contractor."},"phone":{"type":"string","description":"Telephone number of the contractor."},"signatory":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","description":"Name of the person who signs for the contractor."},"title":{"type":"string","description":"Capacity of the signatory."}},"description":"The person who signs for the contractor."}},"description":"The contractor (company block; IBAN required: CDE art. III.25, al. 2)."},"client":{"type":"object","additionalProperties":false,"required":["kind","name","address"],"properties":{"kind":{"type":"string","enum":["enterprise","public_body","consumer"],"description":"Kind of client: enterprise, public body or consumer (asked first; the template selects its presentation from it)."},"name":{"type":"string","description":"Name of the client (company name, public body or consumer)."},"legal_form":{"type":"string","description":"Legal form of an enterprise client."},"enterprise_number":{"type":"string","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$","description":"Belgian enterprise number of an enterprise or public-body client."},"vat_number":{"type":"string","pattern":"^BE[01][0-9]{9}$","description":"Belgian VAT number of the client."},"address":{"type":"string","description":"Street and number of the client."},"postal_code":{"type":"string","description":"Postal code of the client."},"commune":{"type":"string","description":"Municipality of the client."},"email":{"type":"string","description":"E-mail address of the client."},"signatory":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","description":"Name of the person who signs for the client."},"title":{"type":"string","description":"Capacity of the signatory."}},"description":"The person who signs for the client."}},"description":"The client: an enterprise, a public body or a consumer."},"insurance":{"type":"object","additionalProperties":false,"required":["law_2017_applies"],"properties":{"law_2017_applies":{"type":"string","enum":["yes","no","unknown"],"description":"Whether the works concern a dwelling in Belgium for which an architect is compulsory (law of 31 May 2017, arts 2, 1° and 5): the user's answer, never derived."},"insurer_name":{"type":"string","description":"Name of the insurance undertaking."},"insurer_enterprise_number":{"type":"string","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$","description":"Enterprise number of the insurance undertaking."},"policy_number":{"type":"string","description":"Number of the insurance contract."}},"description":"Ten-year liability insurance mentions (law of 31 May 2017, art. 12, § 1/1)."},"origin":{"type":"string","enum":["client_request","unforeseen_condition","architect_design_change","regulatory","contractor_proposal"],"description":"Origin of the change."},"description":{"type":"string","description":"Description of the change."},"added_lines":{"type":"array","description":"Added works (lines as in the bill of quantities; omitted amounts typed as negative numbers).","items":{"type":"object","additionalProperties":false,"required":["item","description","amount"],"properties":{"item":{"type":"string","description":"Item number or code of the line."},"description":{"type":"string","description":"Description of the line."},"quantity":{"type":"number","description":"Quantity of the line."},"unit":{"type":"string","description":"Unit of the line."},"unit_price":{"type":"number","description":"Unit price of the line."},"amount":{"type":"number","description":"Amount of the line excluding VAT."}},"description":"Added works (lines as in the bill of quantities; omitted amounts typed as negative numbers)."}},"modified_lines":{"type":"array","description":"Modified works (lines as in the bill of quantities; omitted amounts typed as negative numbers).","items":{"type":"object","additionalProperties":false,"required":["item","description","amount"],"properties":{"item":{"type":"string","description":"Item number or code of the line."},"description":{"type":"string","description":"Description of the line."},"quantity":{"type":"number","description":"Quantity of the line."},"unit":{"type":"string","description":"Unit of the line."},"unit_price":{"type":"number","description":"Unit price of the line."},"amount":{"type":"number","description":"Amount of the line excluding VAT."}},"description":"Modified works (lines as in the bill of quantities; omitted amounts typed as negative numbers)."}},"omitted_lines":{"type":"array","description":"Omitted works (lines as in the bill of quantities; omitted amounts typed as negative numbers).","items":{"type":"object","additionalProperties":false,"required":["item","description","amount"],"properties":{"item":{"type":"string","description":"Item number or code of the line."},"description":{"type":"string","description":"Description of the line."},"quantity":{"type":"number","description":"Quantity of the line."},"unit":{"type":"string","description":"Unit of the line."},"unit_price":{"type":"number","description":"Unit price of the line."},"amount":{"type":"number","description":"Amount of the line excluding VAT (typed negative for omitted works)."}},"description":"Omitted works (lines as in the bill of quantities; omitted amounts typed as negative numbers)."}},"price":{"type":"object","additionalProperties":false,"required":["delta_excl_vat","vat_regime"],"properties":{"delta_excl_vat":{"type":"number","description":"Change of the price excluding VAT (signed: the sum of the added, modified and omitted lines)."},"vat_regime":{"type":"string","enum":["standard","reverse_charge_art20","exempt","small_business_franchise","unknown"],"description":"VAT regime of the price (user's answer)."},"vat_lines":{"type":"array","description":"VAT lines of the variation: base, rate and amount.","items":{"type":"object","additionalProperties":false,"required":["base","rate","amount"],"properties":{"base":{"type":"number","description":"Taxable base of the line (signed)."},"rate":{"type":"number","minimum":0,"description":"VAT rate of the line, in percent."},"amount":{"type":"number","description":"VAT amount of the line (signed)."}},"description":"VAT lines of the variation: base, rate and amount."}},"delta_incl_vat":{"type":"number","description":"Change of the price including VAT (signed; compulsory for a consumer, CDE art. VI.4)."},"previous_total_excl_vat":{"type":"number","description":"Contract total excluding VAT before the amendment."},"new_total_excl_vat":{"type":"number","description":"New contract total excluding VAT, as the parties give it."}},"description":"Price impact of the amendment."},"schedule":{"type":"object","additionalProperties":false,"properties":{"delta_days":{"type":"integer","description":"Change of the execution period in days (signed)."},"new_end_date":{"type":"string","format":"date","description":"New end date of the works, as the parties give it."}},"description":"Schedule impact of the amendment."},"payment":{"type":"object","additionalProperties":false,"required":["when"],"properties":{"when":{"type":"string","enum":["next_progress_statement","separate_invoice","with_final_statement"],"description":"When the extra is paid."}},"description":"Payment of the extra."},"architect":{"type":"object","additionalProperties":false,"properties":{"opinion":{"type":"string","enum":["yes","no","not_applicable"],"description":"Whether the architect gave an opinion on the change."},"opinion_text":{"type":"string","description":"The architect's opinion, as given."}},"description":"The architect's opinion (optional)."},"urgent":{"type":"boolean","description":"Whether the change is urgent."},"urgent_reason":{"type":"string","description":"Reason of the urgency, as given."},"urgent_repair_requested":{"type":"boolean","description":"Whether the consumer expressly asked the enterprise to visit to carry out urgent maintenance or repair works (CDE art. VI.73, 8°): a fact the user states."},"information_received_before":{"type":"boolean","description":"Whether the consumer received the information of CDE art. VI.64, § 1 before being bound."},"withdrawal_applies":{"type":"boolean","description":"Whether the consumer has a right of withdrawal for this contract (true) or not (false: the case of art. VI.73 is then given in no_withdrawal_reason)."},"no_withdrawal_reason":{"type":"string","enum":["service_fully_performed","financial_market_price","made_to_specification","perishable","sealed_hygiene","mixed_after_delivery","alcoholic_beverages","urgent_repairs","sealed_media","newspapers","public_auction","dated_leisure_services","digital_content_started","new_buildings"],"description":"The case of CDE art. VI.73 without a withdrawal right that applies (printed in the words of the law)."},"withdrawal":{"type":"object","additionalProperties":false,"required":["start"],"properties":{"start":{"type":"string","enum":["service_conclusion","sale_possession","multiple_goods_last","lots_last","regular_delivery_first"],"description":"Event from which the 14-day withdrawal period runs (Annex 1, instruction 1)."},"goods_return":{"type":"string","enum":["seller_collects","consumer_returns"],"description":"For a contract with goods: whether the seller collects the goods or the consumer returns them (Annex 1, instruction 5 a)."},"return_recipient":{"type":"string","description":"Name and geographical address of a person authorised by the seller to receive the returned goods, if any."},"return_costs":{"type":"string","enum":["seller","consumer_direct_costs","consumer_fixed_amount","consumer_estimated_maximum","seller_collects_own_expense"],"description":"Who bears the cost of returning the goods (Annex 1, instruction 5 b); seller_collects_own_expense: in an off-premises contract, goods that by their nature cannot normally be returned by post and were delivered to the consumer's home when the contract was concluded."},"return_cost_eur":{"type":"number","minimum":0,"description":"Amount of the return cost (fixed amount, or estimated maximum)."},"online_interface":{"type":"boolean","description":"For a distance contract: whether it is concluded by means of an online interface (web shop, app); then art. VI.61/2 requires a withdrawal function."},"online_withdrawal_function":{"type":"string","description":"Web address or other reference where the online withdrawal function (art. VI.61/2) is found, if the seller provides one."},"online_form_address":{"type":"string","description":"Web address where the model form or another unambiguous statement can be filled in and sent online, if the seller offers it."},"exceptions":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["service_fully_performed","financial_market_price","made_to_specification","perishable","sealed_hygiene","mixed_after_delivery","alcoholic_beverages","urgent_repairs","sealed_media","newspapers","public_auction","dated_leisure_services","digital_content_started","betting_lotteries","new_buildings"]},"description":"Cases without a withdrawal right, chosen by the seller as applicable to its offer: art. VI.53 for a distance contract, art. VI.73 for an off-premises contract (new_buildings is art. VI.73, 14° only; betting_lotteries is art. VI.53, 14° only)."}},"allOf":[{"if":{"properties":{"start":{"enum":["sale_possession","multiple_goods_last","lots_last","regular_delivery_first"]}},"required":["start"]},"then":{"required":["goods_return","return_costs"]}},{"if":{"properties":{"return_costs":{"enum":["consumer_fixed_amount","consumer_estimated_maximum"]}},"required":["return_costs"]},"then":{"required":["return_cost_eur"]}},{"if":{"properties":{"online_interface":{"const":true}},"required":["online_interface"]},"then":{"required":["online_withdrawal_function"]}}]},"signatures":{"type":"object","additionalProperties":false,"required":["contractor_date","client_date"],"properties":{"contractor_date":{"type":"string","format":"date","description":"Date the contractor signs."},"client_date":{"type":"string","format":"date","description":"Date the client signs."}},"description":"Signatures of the amendment."}},"allOf":[{"if":{"properties":{"withdrawal_applies":{"const":true}},"required":["withdrawal_applies"]},"then":{"required":["withdrawal"]}},{"if":{"properties":{"withdrawal_applies":{"const":false}},"required":["withdrawal_applies"]},"then":{"required":["no_withdrawal_reason"]}}]}