{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Return authorisation — Autorisation de retour / Retourautorisatie (BE)","description":"Belgian return authorisation (RMA) of a seller to a business or consumer customer: the items authorised for return with reason and condition, the authorised action, who bears the return costs, the return address and an optional free note to the customer. About the consumer's rights the document prints only what the user types. Nothing is computed or defaulted.","type":"object","additionalProperties":false,"required":["company","customer","rma"],"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 return authorisation.","required":["name","enterprise_number","address","postal_code","commune","iban"]},"customer":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the customer."},"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."},"account_number":{"type":"string","description":"Customer account number."}},"description":"The customer who returns the goods.","required":["name"]},"rma":{"type":"object","additionalProperties":false,"properties":{"profile":{"type":"string","enum":["b2c","b2b"],"description":"b2c: the customer is a consumer; b2b: the customer is an enterprise."},"number":{"type":"string","description":"Number of the return authorisation (RMA)."},"date":{"type":"string","format":"date","description":"Date of issue."},"expiry_date":{"type":"string","format":"date","description":"Expiry date; required for a business customer; for a consumer printed as the desired period."},"original_order_reference":{"type":"string","description":"Reference of the original order."},"original_invoice_reference":{"type":"string","description":"Reference of the original invoice."},"items":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","description":"Item reference."},"description":{"type":"string","description":"Item description."},"quantity":{"type":["string","number"],"description":"Quantity authorised for return."},"reason":{"type":"string","enum":["defective","wrong_item","not_conforming","damaged_in_transit","customer_choice","other"],"description":"Reason: defective, wrong_item, not_conforming, damaged_in_transit, customer_choice, other."},"condition":{"type":"string","enum":["new","used","damaged"],"description":"Condition: new, used, damaged."},"detail":{"type":"string","description":"Detail on the item."}},"required":["description","quantity","reason","condition"]}},"authorised_action":{"type":"string","enum":["repair","replace","refund","credit_note","dispose"],"description":"Authorised action: repair, replace, refund, credit_note, dispose."},"return_costs_borne_by":{"type":"string","enum":["seller","customer","not_stated"],"description":"Who bears the return costs: seller, customer, not_stated (prints a dash)."},"return_address":{"type":"string","description":"Return address (street and number)."},"return_postal_code":{"type":"string","description":"Postal code of the return address."},"return_commune":{"type":"string","description":"Municipality of the return address."},"carrier_instructions":{"type":"string","description":"Carrier and packing instructions."},"customer_note":{"type":"string","description":"Free note to the customer, as the seller writes it; omitted when blank."}},"description":"The return authorisation.","allOf":[{"if":{"properties":{"profile":{"const":"b2b"}},"required":["profile"]},"then":{"required":["expiry_date"]}}],"required":["profile","number","date","authorised_action","return_costs_borne_by","items"]},"signatory":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the signatory."},"title":{"type":"string","description":"Function of the signatory."},"date":{"type":"string","format":"date","description":"Date of signature."}},"description":"Who signs for the issuer.","required":["name"]}}}