cURL
curl --request GET \ --url https://api.zangsho.com/v1/orders/stats \ --header 'Authorization: Bearer <token>'
{ "data": { "today_revenue": "12500.00", "monthly_revenue": "298000.00", "today_count": 15, "today_success_rate": 95.5 } }
取得今日營收、本月營收、交易筆數、成功率等統計資訊。
使用 Laravel Sanctum Token 進行認證。
Token 可在商家後台的「API 設定」頁面取得。
訂單統計
Show child attributes