Add a cargo lot
post
/caravans/{caravanId}/manifest/lotsAdds a new cargo lot to the caravan manifest.
Path Parameters
caravanIdstringrequiredThe unique caravan identifier
Request Body
requiredapplication/json
commoditystringrequiredcategorystring ("spice" | "textile" | "pottery" | "gemstone" | "artifact" | "provision" | "other")descriptionstringweight_kgnumber (float)declared_valuenumber (float)Responses
201Created
application/json
idstringrequiredcommoditystringrequiredcategorystring ("spice" | "textile" | "pottery" | "gemstone" | "artifact" | "provision" | "other")Cargo category
descriptionstringHandling guidance for this cargo lot
statusstring ("pending" | "weighed" | "sealed" | "loaded")requiredquantityintegerCount of packages, crates, bolts, jars, or bundles in the lot
unitstring ("crate" | "jar" | "bolt" | "sack" | "bundle" | "chest")Unit used to count this cargo lot
weight_kgnumber (float)Total lot weight in kilograms
declared_valuenumber (float)Declared value in trading dinars
origin_stallstringStall or warehouse where the cargo lot originated
inspection_statusstring ("not_required" | "pending" | "passed" | "held")Current inspection result for the lot
Errors
Request
curl -X POST 'https://api.cameltrading.example/v1/caravans/car_sahara_001/manifest/lots' \
-H 'Authorization: Bearer <your-token>' \
-H 'Content-Type: application/json' \
-d '{
"commodity": "Saffron",
"category": "spice",
"description": "Keep sealed in waxed linen and away from direct sun",
"weight_kg": 38.5,
"declared_value": 1240.75
}'Response
{
"id": "lot_spice_042",
"commodity": "Saffron",
"category": "spice",
"description": "Keep sealed in waxed linen and away from direct sun",
"status": "weighed",
"quantity": 12,
"unit": "jar",
"weight_kg": 38.5,
"declared_value": 1240.75,
"origin_stall": "Spice Vault 3",
"inspection_status": "passed"
}