TrustColdDevelopers
Catalog›Match the booking form

Match the booking form

How the partner screen must look: Pickup and Drop-off, each one list, address optional.

Run this from your browser — add your free test keys.

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

FieldRequiredWhat you send
GovernorateOne of the twofrom_governorate / to_governorate — catalog name
AreaWith governoratefrom_area / to_area from that governorate’s regions
Address or Google Maps linkOne of the twofrom_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 to Accept-Language.
  • Send catalog name values, not the display label. Names are Arabic strings: القاهرة (Cairo), مدينة نصر (Nasr City).
  • If regions is 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_stops via to_points.
  • After any place or vehicle change, call POST /quote and 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.
  1. GET /connection with the client key.
  2. GET /vehicle-types — hide types where available is false.
  3. GET /locations — two cards; each list is governorate, area, optional address.
  4. Quote with governorate + area only, then with address / Maps URL only (no list), then with both.
  5. POST /trips with Idempotency-Key. If payment_url is set, open it; never collect cards.
  6. PUT /webhook and verify X-TrustCold-Signature.
  7. Read GET /trips/{id}/tracking after the trip is on the road.