Prerequisites
Before you begin, you need:- An active UrbnBox vendor account.
- A vendor API key. Create one under Integrations in the vendor dashboard.
Vendor keys begin with
ubx_. - At least one active product in your UrbnBox catalogue with stock available.
- The customer’s name, WhatsApp number and delivery address.
Create a delivery order
1
Find the product IDs
Every order lists the items it carries. Each item references a product in
your UrbnBox catalogue.Note the
ID of each product you want to send.2
Create the order
Send the customer and delivery details from your backend.UrbnBox geocodes the address when you do not send
client_lat and
client_lng, and calculates the delivery fee. Save the returned ID.3
Read the order status
Use the order ID to follow the order from
draft to delivered.Your integration works when the order comes back with the same
ID, your
items, and a DeliveryFeeKES value.What happens next
New orders start asdraft. The customer confirms the order on its public
page, UrbnBox assigns a rider, and the order moves through assigned,
packing and dispatched to delivered. See Orders
for every field, fulfilment type and status.
All money fields ending in KES are whole Kenya shilling amounts. For example,
850 represents KES 850.
Next steps
Orders reference
Fulfilment types, statuses, bulk creation and CSV upload.
Authentication
Choose and secure the correct API key.