Market API — /mobo/api/mkt/v1
The Grab-style marketplace lane: published services and the bookings a device user owns.
POST /mobo/api/mkt/v1/services
Public catalog of published services (no booking data). Body:
limit (1..100, default 40), offset.
Each row: id, name, category, price, currency,
duration_hours, vendor {id, name, rating}.
POST /mobo/api/mkt/v1/bookings
Create a booking. Body:
{
"service_id": 12,
"scheduled_on": "YYYY-MM-DD HH:MM:SS",
"notes": "optional, 2000 chars max"
}
Creates in confirmed state; answers 201
with the full booking JSON (state machine:
confirmed → in_progress → done, or cancelled).
GET /mobo/api/mkt/v1/bookings
List the token's own bookings, newest first.
Query: limit, offset.
POST /mobo/api/mkt/v1/bookings//cancel
Cancel your booking. Only pending states allow it;
otherwise invalid_state (409).
POST /mobo/api/mkt/v1/bookings//rate
Rate a completed booking, once. Body:
{ "rating": 5, "comment": "optional, 2000 chars max" }
rating must be 1–5. Errors:
invalid_payload (400) out of range,
invalid_state (409) not done,
already_rated (409) second review.
All endpoints require the device-token guard (see API Basics).