Create delivery
Overview
Shipments
Deliveries
Handling units
Materials
Temperature ranges
Delivery items
Create delivery
POST
/
deliveries
curl --request POST \
--url https://api.truecold.io/v1/deliveries \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"id": "2381029e-7566-4ba4-b842-1c03dd13010a",
"shipment_id": "103888",
"code": "103888",
"receiver_code": "103888",
"receiver_name": "PharmaX Barcelona",
"destinaton": "Barcelona",
"carrier_code": "291",
"carrier_name": "PharmaX",
"route_code": "25-BCN-XA43N",
"route_name": "Barcelona - Madrid",
"transport_mode": "ROAD"
}'
{
"error": false,
"data": {
"id": "<string>",
"created_at": "<string>",
"code": "<string>",
"shipment_id": "<string>",
"receiver_code": "<string>",
"receiver_name": "<string>",
"destination": "<string>",
"carrier_code": "<string>",
"carrier_name": "<string>",
"route_code": "<string>",
"route_name": "<string>",
"account_id": "<string>",
"transport_mode": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z"
}
}
Authorizations
Body
application/json
Response
200
application/json
The response is of type object
.
curl --request POST \
--url https://api.truecold.io/v1/deliveries \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"id": "2381029e-7566-4ba4-b842-1c03dd13010a",
"shipment_id": "103888",
"code": "103888",
"receiver_code": "103888",
"receiver_name": "PharmaX Barcelona",
"destinaton": "Barcelona",
"carrier_code": "291",
"carrier_name": "PharmaX",
"route_code": "25-BCN-XA43N",
"route_name": "Barcelona - Madrid",
"transport_mode": "ROAD"
}'
{
"error": false,
"data": {
"id": "<string>",
"created_at": "<string>",
"code": "<string>",
"shipment_id": "<string>",
"receiver_code": "<string>",
"receiver_name": "<string>",
"destination": "<string>",
"carrier_code": "<string>",
"carrier_name": "<string>",
"route_code": "<string>",
"route_name": "<string>",
"account_id": "<string>",
"transport_mode": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z"
}
}