Request Return
Command sent by a customer to return one or more items from a delivered order.
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "RequestReturn",
4 "description": "Request to return items from a delivered order",
5 "type": "object",
6 "properties": {
7 "orderId": { "type": "string", "format": "uuid" },
8 "customerId": { "type": "string", "format": "uuid" },
9 "items": {
10 "type": "array",
11 "minItems": 1,
12 "items": {
13 "type": "object",
14 "properties": {
15 "sku": { "type": "string" },
16 "quantity": { "type": "integer", "minimum": 1 }
17 },
18 "required": ["sku", "quantity"]
19 }
20 },
21 "reason": { "type": "string", "enum": ["damaged", "wrong_item", "not_as_described", "no_longer_needed", "other"] },
22 "comment": { "type": "string" }
23 },
24 "required": ["orderId", "customerId", "items", "reason"]
25}
26