The logistics client API at /client/logistics/* serves two audiences with the same URL prefix: end-customers tracking their deliveries, and gig-economy delivery workers (drivers, couriers) receiving and completing jobs. The endpoints are differentiated by the customer's role — a regular customer sees their orders, a registered driver sees the job feed.
Init and registration
/client/logistics/initJWT/client/logistics/registerJWT/client/logistics/meJWTinit returns config the customer-side app needs (driver vs. customer detection, payment options, region settings). register is for becoming a delivery driver — accepts vehicle info, licence, insurance docs. me returns the current driver profile if the customer is registered as one.
Driver-side: jobs
/client/logistics/jobs/availableJWT/client/logistics/jobsJWT/client/logistics/jobs/:jobIdJWT/client/logistics/jobsJWTavailable is the open-job feed (jobs needing a driver). jobs is the driver's accepted jobs. The POST creates a logistics job (used by merchant-side flows or by drivers offering to take a custom delivery).
Accept and reject
/client/logistics/jobs/:jobId/acceptJWT/client/logistics/jobs/:jobId/rejectJWTDriver picks up or passes on a job. Auto-routing in the logistics module re-offers rejected jobs to the next driver.
Pickup and dropoff lifecycle
/client/logistics/jobs/:jobId/start-pickupJWT/client/logistics/jobs/:jobId/arrive-pickupJWT/client/logistics/jobs/:jobId/complete-pickupJWT/client/logistics/jobs/:jobId/start-dropoffJWT/client/logistics/jobs/:jobId/arrive-dropoffJWT/client/logistics/jobs/:jobId/complete-dropoffJWT/client/logistics/jobs/:jobId/completeJWTThe full state machine. Each transition writes a timestamp and (with tracking) a GPS location, which feeds the customer's order-tracking view.
Tracking and proof
/client/logistics/jobs/:jobId/trackingJWT/client/logistics/jobs/:jobId/imagesJWT/client/logistics/jobs/:jobId/imagesJWT/client/logistics/uploadJWTtracking posts the driver's current location periodically. images is for proof-of-delivery photos.
Issues and messages
/client/logistics/jobs/:jobId/issuesJWT/client/logistics/jobs/:jobId/issuesJWT/client/logistics/jobs/:jobId/messagesJWT/client/logistics/jobs/:jobId/messagesJWT/client/logistics/jobs/:jobId/messages/readJWT/client/logistics/jobs/:jobId/contactsJWTIssues are problems flagged on a job (item missing, address wrong). Messages are the chat thread between driver and customer. Contacts returns the relevant phone numbers for both parties.
Customer-side: orders and tracking
/client/logistics/ordersJWT/client/logistics/ordersJWT/client/logistics/orders/:jobId/trackJWT/client/logistics/orders/:jobId/cancelJWT/client/logistics/orders/:jobIdJWTThe customer side: book a delivery, list orders, track progress, cancel or modify. track returns current status, ETA, and the driver's last reported location.
Quotes
/client/logistics/quoteJWT/client/logistics/quote/validatedJWTPre-book quote: customer enters pickup, dropoff, and item details, gets a price. validated runs a stricter address verification pass before confirming.
Payment
/client/logistics/stripe/configJWT/client/logistics/stripe/intentJWT/client/logistics/stripe/verifyJWT/client/logistics/paypal/createJWT/client/logistics/paypal/captureJWT/client/logistics/orders/:jobId/payment-intentJWT/client/logistics/orders/:jobId/complete-paymentJWTStandard Stripe / PayPal payment surfaces, scoped to a logistics job.
Tipping and rating
/client/logistics/orders/:jobId/rateJWT/client/logistics/orders/:jobId/tipJWT/client/logistics/orders/:jobId/tip/completeJWTPost-delivery rating goes 1-5 stars on the driver. Tips are a separate payment after-the-fact; the driver's wallet receives the tip via the finance module.
Driver presence
/client/logistics/availabilityJWT/client/logistics/locationJWTDrivers report online/offline and current location. Used by the dispatch service to pick the closest driver for a new job.
Driver payouts
/client/logistics/payout-methodsJWT/client/logistics/payout-methodsJWT/client/logistics/payout-methods/:methodIdJWT/client/logistics/payout-methods/:methodIdJWT/client/logistics/payout-methods/:methodId/defaultJWT/client/logistics/payoutsJWT/client/logistics/payouts/requestJWTDriver-side payout management — same shape as the finance customer wallet but scoped to logistics earnings.
Payment history
/client/logistics/payments/:jobIdJWT/client/logistics/paymentsJWTPer-job and aggregate payment history for the driver — what they've earned and when.