Prerequisites
Before you begin, you need:- An active UrbnBox partner account.
- A secret test or live API key.
- The origin and destination city.
- The recipient’s name and phone number.
Create a shipment
1
Request a quote
Confirm that lockers are available and retrieve the fee in whole KES.Continue only when the response contains
"available": true.2
Create the shipment
Send the order and recipient details from your backend.Save the returned
id, tracking_url, and deposit_pin.3
Retrieve the shipment
Use the shipment ID to read its current status.
Your integration works when the API returns the same shipment ID and a
tracking URL.
Handle the creation response
Thedeposit_pin appears in the creation response. Store it securely at that
time. It is not returned by the retrieve endpoint.
You can send deposit_whatsapp_link to the person who deposits the parcel. Send
collection_whatsapp_link to the recipient when your fulfillment flow requires
it.
All fee values ending in _kes are whole KES amounts. For example, 850
represents KES 850.
Next steps
Authentication
Choose and secure the correct API key.
Endpoint reference
Review every integration-facing endpoint.