iBOX API

Shipping

Parcel sizing

Send the parcel's dimensions and weight. We choose the smallest compartment it fits.

json
{
  "parcel_size": { "length": 30, "width": 20, "height": 15 },
  "parcel_weight": 1.2
}
  • Centimetres and kilograms, measured outside, packaging included. Decimals are fine: 32.5, 1.25.
  • Any side can be the length. The parcel is placed whichever way it fits, so a flat box stood on its end still goes in a small compartment.
  • The booking returns compartment_size: the size we chose, and the size the parcel is billed as.

Compartment sizes

SizeInside (cm)Up to
S55 × 35 × 825 kg
M55 × 35 × 1825 kg
L55 × 35 × 3725 kg
XL55 × 35 × 6025 kg

Provisional sizes

These are the sizes we size against today. They will be updated to the cabinet manufacturer's exact measurements; the change will be in the changelog.

How the size is chosen

We compare the parcel's sides, longest first, with each compartment's inside dimensions, longest first, from the smallest compartment up. The first one it fits, and whose weight limit it is within, is chosen.

When nothing fits

A parcel bigger than every compartment, or heavier than any will take, is refused with 422 and code: "parcel_does_not_fit", naming the field to change:

json
{
  "type": "https://api.iboxdelivery.com/docs/errors#parcel_does_not_fit",
  "title": "Too big for any compartment, whichever way up. The largest is 55 × 35 × 60 cm, up to 25 kg.",
  "status": 422,
  "code": "parcel_does_not_fit",
  "errors": [
    { "field": "parcel_size", "code": "too_large", "message": "Too big for any compartment, whichever way up. The largest is 55 × 35 × 60 cm, up to 25 kg." }
  ],
  "correlation_id": "c7e1d0a4-…"
}