ShopEazydevelopers
API referenceMerchant API BetaReports

Best-selling listings by revenue

Beta
Credentials
  • OAuth access token
Scopes
store:read
Role
Owners and admins only. Staff get 403 forbidden.
Add-on
Analytics plus
GET
/v1/merchant/stores/{storeId}/reports/top-sellers

Plan: Analytics Plus (included with Growth and Scale), else 403 plan_limit. The console shows the same figures on its Sales, Products, Customers and Traffic pages only with it.

Access: OAuth scope store:read; owner or admin; not write-gated.

Paged: { items, nextCursor }, limit (default 5, at most 20) and an opaque cursor. It pages through the top 20.

Authorization

merchantOAuth store:read
headerAuthorizationBearer <token>

OAuth 2.1 (authorization code + PKCE S256, public clients, dynamic registration) for connected AI apps. Effective power is scopes granted AND the person's role today AND the plan. orders:refund, billing:write and team:write are opt-in on the consent screen. Write implies read for marketing:read and messages:read, so a grant holding marketing:write passes a marketing:read check, and messages:send passes messages:read.

Scope: store:read

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

Query Parameters

days?integer

How many days back, up to now.

Range1 <= value <= 730
Default30
cursor?string

The nextCursor of the previous page, unchanged. A cursor that is not one we gave you is 400 bad_request.

limit?integer

Page size: default 5, at most 20 (more is 20; a missing or unusable value is 5).

Range1 <= value <= 20
Default5

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/reports/top-sellers' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "items": [      {        "title": "Monstera deliciosa, 20 cm pot",        "units": 1,        "revenue": {          "amount": 32900,          "currency": "ZAR"        }      }    ],    "nextCursor": null,    "days": 30  }}