Raw schema
{
"type": "object",
"properties": {
"numbers": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": "string",
"pattern": "^[A-Za-z0-9-]{5,50}$",
"description": "Tracking number (5-50 letters, digits or hyphens)."
},
"carrier": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9999999,
"description": "17TRACK numeric carrier code (for example 3011 = China Post, 100003 = FedEx). Full list: https://res.17track.net/asset/carrier/info/apicarrier.all.json"
},
"tag": {
"description": "Your own label for the shipment (max 100 characters), for example an order id.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"order_no": {
"description": "Order number (5-50 characters).",
"type": "string",
"minLength": 5,
"maxLength": 50
},
"remark": {
"description": "Free note (max 1000 characters).",
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"lang": {
"description": "Translation language code, for example en.",
"type": "string",
"pattern": "^[A-Za-z]{2,3}(-[A-Za-z]{2,4})?$"
},
"origin_country": {
"description": "Origin country, ISO 3166-1 alpha-2 (for example CN).",
"type": "string",
"pattern": "^[A-Za-z]{2}$"
},
"destination_country": {
"description": "Destination country, ISO 3166-1 alpha-2.",
"type": "string",
"pattern": "^[A-Za-z]{2}$"
},
"destination_postal_code": {
"description": "Recipient postal code, required by some carriers.",
"type": "string",
"minLength": 1,
"maxLength": 20
},
"phone_number_last_4": {
"description": "Last 4 digits of the recipient phone, required by some carriers.",
"type": "string",
"pattern": "^\\d{4}$"
},
"ship_date": {
"description": "A date, yyyy-mm-dd.",
"type": "string",
"pattern": "^\\d{4}[-/]\\d{2}[-/]\\d{2}$"
}
},
"required": [
"number"
]
},
"description": "1-10 numbers to register."
}
},
"required": [
"numbers"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}