iBOX API

Shipping

Choosing a locker

Offer your customer the lockers that can take their parcel, at checkout.

GET/v1/stations lists every locker station that can receive parcels now: active, and with a cabinet installed. Every id it returns is one POST /v1/shipments will accept.

QueryMeaning
qSearch name, city, address or station code. Accents are ignored: prishtine finds Prishtinë.
sizeS, M, L or XL: only stations with a compartment that size or bigger.
limit1 to 100, default 50.
bash
curl "https://api.iboxdelivery.com/v1/stations?q=prishtina&size=M" \
  -H "Authorization: Bearer $IBOX_API_KEY"
json
{
  "data": [
    {
      "id": "ffb1cc4c-f43f-4e9a-a149-af7606aa9626",
      "code": "PRN-02",
      "name": "Prishtina Demo Box",
      "city": "Prishtina",
      "address": "Bulevardi Nëna Terezë 1",
      "latitude": 42.6629,
      "longitude": 21.1655,
      "opening_hours": "24/7",
      "available_sizes": ["S", "M", "L", "XL"],
      "expected_wait": { "S": null, "M": { "min_days": 1, "max_days": 3 }, "L": null, "XL": null }
    }
  ],
  "limit": 50
}

Showing lockers at checkout

  • Work out the compartment size first (see Parcel sizing) and pass it as size, so you only offer lockers the parcel fits.
  • available_sizes is what the locker can be offered for, not what is free right now. A booked parcel queues for its locker and goes in on the first run with a door for it, so a busy locker can still be offered. A size whose queue is already more than about two days long is left out until it clears, so a customer is never sent to a locker that is far behind.
  • expected_wait gives, for each offered size, the number of days a parcel booked now is expected to take to reach the locker. It is null while the locker has too little history to say; show nothing rather than a guess.
  • The compartment is allocated when the courier deposits the parcel, not at booking.