json icon

Return Requested

Published when a customer has requested to return items from an order.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "ReturnRequested",
4  "description": "Published when a customer has requested a return",
5  "type": "object",
6  "properties": {
7    "returnId": { "type": "string", "format": "uuid" },
8    "orderId": { "type": "string", "format": "uuid" },
9    "customerId": { "type": "string", "format": "uuid" },
10    "items": {
11      "type": "array",
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" },
22    "requestedAt": { "type": "string", "format": "date-time" }
23  },
24  "required": ["returnId", "orderId", "customerId", "items", "requestedAt"]
25}
26