API ReferenceMarketplace
Discover active marketplace listings.
Returns only listings in active status whose paid term has not expired. Filter by listingType, city, truckType/category, price range, or search/q. Send an optional Bearer token to receive caller-specific isFavorite; guests always receive false. limit defaults to 20 (max 50).
Authorization
bearerAuth AuthorizationBearer <token>
AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).
In: header
Query Parameters
listingType?unknown
city?string
search?string
q?string
truckType?string
category?string
minPrice?number
maxPrice?number
limit?number
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/marketplace/listings"{ "data": { "items": [ { "id": "lst_01jq8zq1a3c5e7g9j1l3n5p7q9", "ownerId": "usr_01jq8z4f3g5h7j9k1l3m5n7o9p", "truckId": null, "listingType": "sale", "title": "2020 Mobile Food Cart — Fully Equipped", "description": "Custom 4m trailer with double griddle, fryer, drinks cooler, generator. KSA-registered, recent service.", "priceMinor": 6500000, "currencyCode": "SAR", "billingPeriod": null, "city": "Riyadh", "region": "Riyadh", "lat": 24.7136, "lng": 46.6753, "truckType": "trailer", "modelYear": 2020, "condition": "used_excellent", "size": "4m", "equipment": [ "double griddle", "deep fryer", "drinks cooler", "generator" ], "contactPreferences": [ "whatsapp", "phone" ], "status": "active", "paidActivationId": null, "viewsCount": 487, "contactsCount": 23, "images": [ { "id": "fil_01jq8zp1a3c5e7g9j1l3n5p7q9", "purpose": "marketplace", "urls": { "original": "https://cdn.trackme.sa/ml/cart-2020-original.jpg", "thumb": "https://cdn.trackme.sa/ml/cart-2020-thumb.jpg", "medium": "https://cdn.trackme.sa/ml/cart-2020-medium.jpg", "large": "https://cdn.trackme.sa/ml/cart-2020-large.jpg" } } ], "publishedAt": "2026-05-10T07:30:00.000Z", "expiresAt": "2026-06-10T07:30:00.000Z", "createdAt": "2026-05-09T20:14:08.000Z", "updatedAt": "2026-05-10T07:30:00.000Z" }, { "id": "lst_01jq8zq2b4d6f8h0k2m4o6q8s0", "ownerId": "usr_01jq8z4f3g5h7j9k1l3m5n7o9p", "truckId": null, "listingType": "rent", "title": "Compact Coffee Cart — Weekly Rental", "description": "Custom 4m trailer with double griddle, fryer, drinks cooler, generator. KSA-registered, recent service.", "priceMinor": 250000, "currencyCode": "SAR", "billingPeriod": "week", "city": "Riyadh", "region": "Riyadh", "lat": 24.7136, "lng": 46.6753, "truckType": "cart", "modelYear": 2023, "condition": "used_excellent", "size": "4m", "equipment": [ "espresso machine", "grinder", "mini fridge" ], "contactPreferences": [ "whatsapp", "phone" ], "status": "active", "paidActivationId": null, "viewsCount": 73, "contactsCount": 23, "images": [ { "id": "fil_01jq8zp1a3c5e7g9j1l3n5p7q9", "purpose": "marketplace", "urls": { "original": "https://cdn.trackme.sa/ml/cart-2020-original.jpg", "thumb": "https://cdn.trackme.sa/ml/cart-2020-thumb.jpg", "medium": "https://cdn.trackme.sa/ml/cart-2020-medium.jpg", "large": "https://cdn.trackme.sa/ml/cart-2020-large.jpg" } } ], "publishedAt": "2026-05-10T07:30:00.000Z", "expiresAt": "2026-06-10T07:30:00.000Z", "createdAt": "2026-05-09T20:14:08.000Z", "updatedAt": "2026-05-10T07:30:00.000Z" } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "VALIDATION_ERROR", "message": "One or more fields are invalid.", "fields": [ { "path": "email", "rule": "email", "message": "Must be a valid email address." } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}