cURL
curl --request GET \ --url https://api.zangsho.com/v1/orders \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": 123, "order_no": "<string>", "amount": "<string>", "currency": "TWD", "status": "pending", "payment_method": "credit_card", "source": "api", "billing_cycle": "<string>", "paid_at": "2023-11-07T05:31:56Z", "refunded_at": "2023-11-07T05:31:56Z", "failed_at": "2023-11-07T05:31:56Z", "metadata": {}, "customer_email": "<string>", "customer_name": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ], "meta": { "current_page": 123, "from": 123, "last_page": 123, "per_page": 123, "to": 123, "total": 123 } }
取得訂單列表,支援分頁與篩選。
使用 Laravel Sanctum Token 進行認證。
Token 可在商家後台的「API 設定」頁面取得。
頁碼
x >= 1
每頁筆數(最大 100)
1 <= x <= 100
篩選訂單狀態
pending
paid
failed
refunded
cancelled
篩選特定客戶的訂單
起始日期(含)
結束日期(含)
訂單列表
Show child attributes