Skip to main content
GET
/
orders
/
{orderNo}
取得訂單詳情
curl --request GET \
  --url https://api.zangsho.com/v1/orders/{orderNo} \
  --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"
  }
}

Authorizations

Authorization
string
header
required

使用 Laravel Sanctum Token 進行認證。

Token 可在商家後台的「API 設定」頁面取得。

Path Parameters

orderNo
string
required

訂單編號

Response

訂單詳情

data
object