Prerequisites
You need a publishable API key and an allowlisted checkout origin. Do not use a secret key.Embed the widget
Add the container and script near your checkout controls.data-urbnbox-checkout attribute.
Configuration
Booking flow
The widget:- Calls
GET /api/public/locker-bookings/options. - Renders active locker spaces.
- Collects the locker, date window, name, and phone number.
- Calls
POST /api/public/locker-bookings. - Links the customer to
/b/{token}.
The widget books a locker. Use the partner shipment API when you need
locker-to-locker parcel movement and shipment tracking.