{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Country-agnostic Return Merchandise Authorization (RMA) issued by a supplier to a customer. B2C cross-border callers in the EU should cross-check the right-of-withdrawal rules of Dir. 2011/83/EU (Art. 9–16); B2B falls under negotiated contract terms.","required":["issuer","customer","rma_number","issue_date","original_order_reference","items","authorized_action","return_shipping_instructions","expiry_date"],"additionalProperties":false,"properties":{"issuer":{"type":"object","required":["name","address","contact_email"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"address":{"type":"string","minLength":1},"vat_id":{"type":"string"},"contact_email":{"type":"string","format":"email"}}},"customer":{"type":"object","required":["name","address"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"address":{"type":"string","minLength":1},"account_number":{"type":"string"},"contact_person":{"type":"string"}}},"rma_number":{"type":"string","minLength":1},"issue_date":{"type":"string","format":"date"},"original_order_reference":{"type":"string","minLength":1},"original_invoice_reference":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["sku","description","quantity","reason","condition"],"additionalProperties":false,"properties":{"sku":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"quantity":{"type":"number","exclusiveMinimum":0},"reason":{"type":"string","enum":["defective","wrong_item","not_as_described","damaged_in_transit","customer_preference","other"]},"condition":{"type":"string","enum":["new","used","damaged"]},"reason_detail":{"type":"string","description":"Optional free text expanding on the reason code."}}}},"authorized_action":{"type":"string","enum":["repair","replace","refund","credit_note","dispose"]},"return_shipping_instructions":{"type":"string","minLength":1},"expiry_date":{"type":"string","format":"date","description":"Date after which the RMA is void if goods have not been shipped back."},"signatory":{"type":"object","required":["name","role"],"additionalProperties":false,"properties":{"name":{"type":"string"},"role":{"type":"string"},"date":{"type":"string","format":"date"}}}}}