Commerce

List top selling

Products ranked by takings.

PAID orders by when they were paid, in the shop's currency.

Query Parameters

period?string
Value in"today""yesterday""this_week""last_week""last_7_days""last_30_days""last_90_days""this_month""last_month""this_year""all_time"
from?string

The first day, in East Africa Time.

Formatdate
to?string

The last day, in East Africa Time.

Formatdate
start_date?stringDeprecated

Use from. An instant; one with no zone is UTC.

end_date?stringDeprecated

Use to. An instant; one with no zone is UTC.

limit?integer
Range1 <= value <= 50
Default10

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

curl -X GET 'https://v3.ghala.io/v1/commerce/shop/products/top-selling'
[  {    "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",    "name": "string",    "image": "string",    "status": "DRAFT",    "stock": 0,    "total_quantity": 0,    "total_amount": "1500.00"  }]