Create or Update Articles
Before orders can be processed, the articles to be packed must be known to the system. This is done via the POST /articles endpoint. Multiple articles can be submitted in a single call.
An article requires a unique SKU, dimensions (in mm), and weight (in g).
Example Call (cURL)
curl -X POST 'https://api.xlog.info/api/v1/articles' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: 18948856fdf2b63e09545ff3b07b03b207047ce82d40ab732b436cc905bcd915' \
-d '[
{
"sku": "ART-001",
"company": "Company ABC",
"length_mm": 200,
"width_mm": 150,
"height_mm": 100,
"weight_g": 500
},
{
"sku": "ART-002",
"company": "Company ABC",
"length_mm": 300,
"width_mm": 250,
"height_mm": 120,
"weight_g": 1250
}
]'
Expected Response
On success, the API returns HTTP status code 201 Created with no body.