API ReferenceOwner: Marketplace
Per-listing analytics — paid orders + revenue + average order value.
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.
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
Path Parameters
id*string
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/owner/marketplace/listings/string/analytics"{ "data": { "ordersLast30Days": 8, "revenueLast30DaysMinor": 248000, "viewsLast30Days": null, "averageOrderValueMinor": 31000 }, "meta": { "requestId": "req_01jq8z9m1n2p3q4r5s6t7u8v9w" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}Renew an active publication. POST
Previous Page
Admin list of marketplace listings. GET
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.