Skip to content

Deliveries

Returns a flat list of delivery records across all orders for your account. Each record represents a single SKU line received in a stock arrival.

Lines belonging to the same shipment (same order_id, recorded on the same created_at calendar day) share a common shipment_id, so you can group them client-side to reconstruct the full shipment.

GET/api/v1/orders/delivery
ParameterTypeDefaultDescription
created_afterdatetime-Only include deliveries created on or after this ISO 8601 datetime (e.g., 2026-04-29T16:00:00Z). A date-only value is parsed as midnight UTC.
created_beforedatetime-Only include deliveries created strictly before this ISO 8601 datetime. A date-only value is parsed as midnight UTC, so to include a full calendar day pass the next day at 00:00:00Z (e.g., 2026-04-30T00:00:00Z to include 29 Apr).
Terminal window
# Datetime range (recommended)
curl -X GET "https://api.prediko.io/api/v1/orders/delivery?created_after=2026-04-29T00:00:00Z&created_before=2026-04-30T00:00:00Z" \
-H "Authorization: Bearer YOUR_API_KEY"
# Date-only values are accepted too (parsed as midnight UTC)
curl -X GET "https://api.prediko.io/api/v1/orders/delivery?created_after=2026-04-29" \
-H "Authorization: Bearer YOUR_API_KEY"

Returns an array of delivery objects.

[
{
"order_id": "8b964899-442f-4e69-9ddb-9e9dba1e8929",
"order_name": "PO-20260218190713",
"sku_name": "CONVERSE | CHUCK TAYLOR ALL STAR II HI - white / 11",
"warehouse_name": "19 Avenue Duquesne",
"quantity_received": 100,
"shipment_id": "4688555ff8",
"delivery_date": "2026-04-29T16:57:35.185983",
"created_at": "2026-04-29T16:57:35.185980"
},
{
"order_id": "5fa1b3c2-9d04-4c2e-b8a1-77d9ef02aa12",
"order_name": "TCON115768_90",
"sku_name": "10077580",
"warehouse_name": "WAREHOUSE",
"quantity_received": -7,
"shipment_id": "23c3a1a074",
"delivery_date": "2026-04-23T19:08:43.128656",
"created_at": "2026-04-23T19:08:43.121002"
},
{
"order_id": "5fa1b3c2-9d04-4c2e-b8a1-77d9ef02aa12",
"order_name": "TCON115768_90",
"sku_name": "10077579",
"warehouse_name": "WAREHOUSE",
"quantity_received": -3,
"shipment_id": "23c3a1a074",
"delivery_date": "2026-04-23T19:08:43.128656",
"created_at": "2026-04-23T19:08:43.121002"
}
]

The last two records share the same shipment_id because they belong to the same order_id and were received on the same day.

FieldTypeDescription
order_idstring (uuid)Internal identifier of the purchase order
order_namestringReference name of the purchase order (e.g., PO-0083)
sku_namestringName of the SKU that was delivered
warehouse_namestringName of the warehouse receiving the delivery
quantity_receivedintegerNumber of units received in this delivery
shipment_idstringStable 10-character identifier of the shipment the line belongs to. Computed as the first 10 hex chars of `sha256(order_id + "
delivery_datedatetimeTimestamp of when the delivery occurred (ISO 8601)
created_atdatetimeTimestamp at which the arrival record was created — this is the field the created_after / created_before filters compare against (ISO 8601)