Skip to main content
POST
Create a shipment order from the specified origin location. You name the destination laboratory with destination_lab. The shipment goes to that laboratory’s registered shipping address. Requires the shipments_manage scope. You name the carrier product with carrier_product. You can book a product only when your rate card has a shipping price for it in the country of the location. List Shipment Options gives these products with their price. Get Rate Card shows all shipping prices of your rate card. Each shipment bills one line at that price on your monthly invoice. A pickup, a Saturday delivery and a Saturday pickup that you book each bill one more line. Your prices cover a parcel up to 2 kg and 30 × 20 × 15 cm. A larger parcel returns 400. Ask Aniva for a price for larger parcels. Send an optional Idempotency-Key header to make this create safe to retry — a repeat of the same key returns the original response instead of creating a second one. See Idempotency.

Request

Body parameters

string
required
Origin test location UUID. The location must be active and within your API key’s access context. Use List Locations to find available location IDs.
string
required
The carrier product to book, for example ups.express_saver, dhl_express.worldwide_1200 or go.national. Use a carrier_product from List Shipment Options. An unknown product returns 400. A product that your rate card does not price returns 403.A UPS or DHL Express product books a label. Download it with Get Shipment Label, print it and put it on the parcel. For a DHL pickup (dhl_parcel.retoure_pickup), the driver brings the label.
boolean
default:"false"
UPS and DHL Express: true also books the pickup of the parcel in the pickup window. Your rate card must have a pickup price for the product, else the call returns 403. Without a pickup, you take the parcel to the carrier. GO! and the DHL pickup always include the pickup. For them, true returns 400.
boolean
default:"false"
GO!, UPS Express and DHL Express: with true, a parcel that leaves on a Friday arrives on Saturday, not on Monday. The parcel leaves on the pickup date, or today without a pickup. Your rate card must have a Saturday delivery price for the product, else the call returns 403. Another product, or a parcel that does not leave on a Friday, returns 400.
string
required
Destination laboratory. One of zotzklimas, labclinic, nordicgroup, biomes, imd or quade. The shipment goes to the shipping address registered for this laboratory. A laboratory without a registered shipping address returns 400.
string
Optional appointment UUID to link this shipment to at creation time. The appointment must be within your API key’s access context. The link surfaces inline as an entry in the shipment’s appointments array, and conversely as an entry in the appointment’s shipments array. To link additional appointments after creation, or remove the initial link, use Attach Appointments to Shipment and Detach Appointments from Shipment.
string
Pickup date in YYYY-MM-DD format (e.g., 2026-04-15), interpreted in the origin location’s timezone. Required with a pickup. Must be a weekday (Monday–Friday), today or in the future. Same-day pickups are not available after 16:00 Europe/Berlin. A GO! product also takes a Saturday when your rate card has a Saturday pickup price for it. Without that price, a Saturday returns 403.
string
Earliest pickup time in HH:MM format (e.g., 09:00), interpreted as wall-clock time in the origin location’s timezone. Required with a pickup. Must be between 09:00 and 19:00.
string
Latest pickup time in HH:MM format (e.g., 12:00), interpreted as wall-clock time in the origin location’s timezone. Required with a pickup. Must be between 09:00 and 19:00. The window (pickup_time_till - pickup_time_from) must be at least 2 hours.
integer
default:"1"
Number of packages. Defaults to 1.
number
default:"0.5"
Weight in kg. Defaults to 0.5. Your prices cover up to 2.
number
Box length in cm. Send length_cm, width_cm and height_cm together, or none of them. UPS and DHL Express then book the box at its real size. Your prices cover up to 30 × 20 × 15 cm, in any order.
number
Box width in cm.
number
Box height in cm.
string
Instructions for the carrier at pickup (consignor remarks). When omitted, the pickup address’s stored remarks are used (or none if the address has none). Maximum 128 characters.
string
Free-text description of what is in the parcel, shown to the carrier and echoed back as contents. Maximum 40 characters (e.g. Medizinisch freigestellte Probe). Without it, a UPS or DHL Express parcel to a laboratory says Exempt human specimen. See Samples to a laboratory.
string
Optional internal notes. Maximum 128 characters.

Response

On success, the API returns 201 Created with the new shipment.
string
required
Shipment reference identifier (e.g., P260415RMQD).
string
required
Shipment lifecycle status. One of pending, in_transit, delivered, fault, or cancelled.
string
required
The company that carries the parcel. One of go, dhl (DHL Paket and Warenpost), dhl_express, ups, rotrunner or rapido. Carriers lists them with their products.
string
deprecated
Deprecated: use carrier. The old values stay until then: dhl_parcel and dhl_warenpost are dhl in carrier. It goes away on December 14, 2026. Until then, each answer with this field has a Warning header.
string
External tracking number from the carrier. May be null.
string
Free-text description of what is in the parcel, as given at creation. A UPS or DHL Express parcel to a laboratory without contents has Exempt human specimen. May be null.
string
required
Who printed the label: aniva or external. A shipment you create is aniva.
string
Reference of the other parcel of a two-parcel consignment. null for a one-way parcel.
object
Pickup address. May be null.
object
Delivery address. Same structure as origin. May be null.
object
Scheduled pickup window. May be null.
string
Optional notes. May be null.
object[]
required
Chronological lifecycle events from the carrier (oldest first). Each entry has a state, code, detail_code, status, description, location and time. See Get Shipment for each field. For GO!, an empty array immediately after creation. For UPS, DHL Express and the DHL pickup, one entry with state null records the label or the pickup order. The background sync adds events as the provider reports them.
ShipmentAppointmentLink[]
required
Appointments linked to this shipment, oldest-link first. Each entry is { id, added_at }; cross-reference each id against Get Appointment. Contains the appointment passed via appointment_id (if any) immediately after creation.
ShipmentHomeKitOrderLink[]
required
Home-kit orders linked to this shipment, in the same { id, added_at } shape. Empty array for a shipment you create.
string
When the shipment was last reconciled with its carrier, as a UTC instant. null until the first sync.
string
required
Creation timestamp (ISO 8601).
string
Last update timestamp (ISO 8601). May be null.

Error responses