Create a shipment on a fulfillment order (synchronous)
Changed onCreates a shipment (status SHIPMENT_CREATED — not yet dispatched by the carrier) linked to the fulfillment order and opens its tracking timeline with a matching event, in a single transaction. It does not change the fulfillment order status. Validates that the fulfillment order, the carrier and every package SKU exist. accountCode comes from the JWT.
Request
- Base URLhttps://oms-api.tenant.krzlabs.io
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Parent fulfillment order identifier (UUID).
Request body
Example request
{
"carrier_id": "9a29b0c5-faff-4149-b7dd-5eeca344d157",
"tracking_code": "BR123456789BR",
"packages": [
{
"weight_kg": 1.5,
"dimensions": {
"length_cm": 20,
"width_cm": 15,
"height_cm": 10
},
"items": [
{
"sku": "SKU-001",
"quantity": 2
}
]
}
]
}Response
Shipment created (status SHIPMENT_CREATED, awaiting dispatch). Fulfillment order status unchanged.
Changes
- breaking
the
request property's minItems was increased to1 - breaking
the
//request property's minItems was increased to1 - breaking
the
request property type changed fromobjecttostring - breaking
the
//request property type changed fromobjecttostring - breaking
the
//request property type changed fromobjecttonumber - breaking
the
request property type changed fromobjecttostring - warning
the
///////request property's min was set to1.00 - warning
the
///////request property's min was set to1.00 - warning
the
///////request property's min was set to1.00 - warning
the
////request property's min was set to1.00 - warning
the
//request property's min was set to1.00 - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info