Commerce
List top selling
Products ranked by takings.
PAID orders by when they were paid, in the shop's currency.
period?stringValue 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?stringThe first day, in East Africa Time.
Format
dateto?stringThe last day, in East Africa Time.
Format
datestart_date?stringDeprecatedUse from. An instant; one with no zone is UTC.
end_date?stringDeprecatedUse to. An instant; one with no zone is UTC.
limit?integerRange
1 <= value <= 50Default
10X-Request-Id?stringYour 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" }]