Admin list of marketplace listings.
Spans every listing status (draft, pending_payment, active, expired, suspended, archived, soft_deleted). Filter by `?status=`, `?ownerId=`, free-text `?q=` (title match), and `?expiringSoon=true` to surface listings within 7 days of expiry.
Authorization
bearerAuth 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
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/admin/marketplace/listings"{ "data": { "items": [ { "id": "lst_01jq8zq1a3c5e7g9j1l3n5p7q9", "title": "2020 Mobile Food Cart — Fully Equipped", "ownerId": "usr_01jq8z4f3g5h7j9k1l3m5n7o9p", "listingType": "sale", "status": "active", "city": "Riyadh", "priceMinor": 6500000, "currencyCode": "SAR", "publishedAt": "2026-05-10T07:30:00.000Z", "expiresAt": "2026-06-10T07:30:00.000Z", "deletedAt": null, "viewsCount": 487, "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" } } ] } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "FORBIDDEN", "message": "You are not allowed to perform this action." }, "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" }}Per-listing analytics — paid orders + revenue + average order value. GET
Views are not captured yet; the field returns null until the view-counter ships. Other fields are derived from `payment_orders` filtered to the listing.
Publish (activate) a listing. POST
Makes the listing visible to customers immediately (status `active`, published now, expiry cleared) and re-indexes it. Idempotent on an already-active listing; restore a soft-deleted listing first.