Catalog›Match the booking form
Match the booking form
How the partner screen must look: Pickup and Drop-off, each one list, address optional.
Key points
- Two cards — Pickup (from_) and Drop-off (to_). Labels come from GET /locations data.ui.
- Same list — Governorate, area, then optional address / Maps URL. Not three tabs. Not a map.
- Skip the list — If the user types an address or pastes a Maps URL only, still quote and create.
- Extra stops — Drop-off may add to_points up to max_delivery_stops.
Pickup and drop-off are two cards. Each card is one stacked list: Governorate, Area, then an optional typed address or pasted Google Maps URL. The list is not required if an address or Maps URL is sent. Do not show a map.
Pickup
Governorate
▾
Area
▾
Address or Google Maps link
Optional
Drop-off
Governorate
▾
Area
▾
Address or Google Maps link
Optional
| Field | Required | What you send |
|---|---|---|
| Governorate | One of the two | from_governorate / to_governorate — catalog name |
| Area | With governorate | from_area / to_area from that governorate’s regions |
| Address or Google Maps link | One of the two | from_address / to_address — typed text or a pasted Maps URL. Enough without the list |
Put the address field on the same card as Governorate / Area. If the user types an address or pastes a Maps URL and skips the list, still send it and call
POST /quote — the fare is calculated the same way. Do not add a map.Rules
- Use labels from
data.ui(label_ar/label_en) according toAccept-Language. - Send catalog
namevalues, not the display label. Names are Arabic strings:القاهرة(Cairo),مدينة نصر(Nasr City). - If
regionsis empty, allow “whole governorate” and send the governorate name only. - Either governorate + area or a typed address / Google Maps URL is enough to quote and create. Both may be sent together.
- If the user types an address or pastes a Google Maps URL without choosing from the list, send only that field. Call
GET /locations/search?q=if you want matches. Do not open a map. - Drop-off may add extra stops up to
max_delivery_stopsviato_points. - After any place or vehicle change, call
POST /quoteand show the returned integer EGP amount. Do not compute the fare yourself. - TrustCold assigns the truck and driver. Do not send a plate, driver id, or a price.
Recommended go-live checklist
GET /connectionwith the client key.GET /vehicle-types— hide types whereavailableis false.GET /locations— two cards; each list is governorate, area, optional address.- Quote with governorate + area only, then with address / Maps URL only (no list), then with both.
POST /tripswithIdempotency-Key. Ifpayment_urlis set, open it; never collect cards.PUT /webhookand verifyX-TrustCold-Signature.- Read
GET /trips/{id}/trackingafter the trip is on the road.