Create a logistics shipment order with specified origin and destination
curl --request POST \
--url https://anivahealth.com/api/v1/shipments \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"pickup_date": "2026-04-15",
"pickup_time_from": "09:00",
"pickup_time_till": "12:00",
"notes": "Handle with care — temperature-sensitive samples"
}'
{
"id": "P-260415-4821",
"status": "pending",
"logistics_provider": "go_express",
"tracking_number": null,
"origin": {
"name": "Aniva Berlin Mitte",
"street": "Unter den Linden",
"house_number": "42",
"postal_code": "10117",
"city": "Berlin",
"country": "DE",
"phone": "+4930987654321",
"email": "berlin-mitte@anivahealth.com"
},
"destination": {
"name": "LabClinic GmbH",
"street": "Laborstraße",
"house_number": "10",
"postal_code": "80331",
"city": "München",
"country": "DE",
"phone": null,
"email": null
},
"notes": "Handle with care — temperature-sensitive samples",
"shipped_at": null,
"arrived_at": null
}
SHIPMENTS_MANAGE scope. Requests made with a key that lacks this scope return 403 Forbidden.YYYY-MM-DD format (e.g., 2026-04-15). Must be a weekday (Monday–Friday), today or in the future. Same-day pickups are not available after 16:00 Europe/Berlin.HH:MM format (e.g., 09:00). Must be between 09:00 and 17:00.HH:MM format (e.g., 12:00). Must be between 09:00 and 17:00. The window (pickup_time_till - pickup_time_from) must be at least 2 hours.1.1."ON".201 Created with the new shipment.
P-260415-1234).pending, shipped, in_transit, delivered, fault, or cancelled.go_express, dhl, or tof.null.null.Show address object
null.null.origin. May be null.null.null.null.| Status | Description |
|---|---|
400 | Validation error — e.g., invalid date format, weekend date, pickup window too narrow, same-day cutoff exceeded. |
403 | Forbidden — missing SHIPMENTS_MANAGE scope or location outside access context. |
404 | Location not found or inactive. |
500 | Internal server error. |
curl --request POST \
--url https://anivahealth.com/api/v1/shipments \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"pickup_date": "2026-04-15",
"pickup_time_from": "09:00",
"pickup_time_till": "12:00",
"notes": "Handle with care — temperature-sensitive samples"
}'
{
"id": "P-260415-4821",
"status": "pending",
"logistics_provider": "go_express",
"tracking_number": null,
"origin": {
"name": "Aniva Berlin Mitte",
"street": "Unter den Linden",
"house_number": "42",
"postal_code": "10117",
"city": "Berlin",
"country": "DE",
"phone": "+4930987654321",
"email": "berlin-mitte@anivahealth.com"
},
"destination": {
"name": "LabClinic GmbH",
"street": "Laborstraße",
"house_number": "10",
"postal_code": "80331",
"city": "München",
"country": "DE",
"phone": null,
"email": null
},
"notes": "Handle with care — temperature-sensitive samples",
"shipped_at": null,
"arrived_at": null
}
curl --request POST \
--url https://anivahealth.com/api/v1/shipments \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"pickup_date": "2026-04-15",
"pickup_time_from": "09:00",
"pickup_time_till": "12:00",
"notes": "Handle with care — temperature-sensitive samples"
}'
{
"id": "P-260415-4821",
"status": "pending",
"logistics_provider": "go_express",
"tracking_number": null,
"origin": {
"name": "Aniva Berlin Mitte",
"street": "Unter den Linden",
"house_number": "42",
"postal_code": "10117",
"city": "Berlin",
"country": "DE",
"phone": "+4930987654321",
"email": "berlin-mitte@anivahealth.com"
},
"destination": {
"name": "LabClinic GmbH",
"street": "Laborstraße",
"house_number": "10",
"postal_code": "80331",
"city": "München",
"country": "DE",
"phone": null,
"email": null
},
"notes": "Handle with care — temperature-sensitive samples",
"shipped_at": null,
"arrived_at": null
}