json icon

Return Received

Published when returned items have arrived at the warehouse and been inspected.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "ReturnReceived",
4  "description": "Published when returned items have arrived at the warehouse",
5  "type": "object",
6  "properties": {
7    "returnId": { "type": "string", "format": "uuid" },
8    "orderId": { "type": "string", "format": "uuid" },
9    "items": {
10      "type": "array",
11      "items": {
12        "type": "object",
13        "properties": {
14          "sku": { "type": "string" },
15          "quantity": { "type": "integer", "minimum": 1 },
16          "condition": { "type": "string", "enum": ["resellable", "damaged"] }
17        },
18        "required": ["sku", "quantity", "condition"]
19      }
20    },
21    "refundAmount": { "type": "number", "minimum": 0 },
22    "currency": { "type": "string", "minLength": 3, "maxLength": 3 },
23    "receivedAt": { "type": "string", "format": "date-time" }
24  },
25  "required": ["returnId", "orderId", "items", "refundAmount", "currency", "receivedAt"]
26}
27