跳轉至主體

查詢付款狀態

查看付款狀態訊息。如果在付款請求過程中因Read逾時而沒有收到回應,可以透過呼叫該API查看支付狀態訊息。

GET /v2/payments/orders/{orderId}/check

請將Read逾時設定為至少20秒以上。

Path

Name
LengthDescription
Required
orderId100

訂單號碼。輸入商家生成的用於管理訂單的ID。輸入時套用URL編碼

Query

None

Body

None

Headers
  • Content-Type
  • X-LINE-ChannelId
  • X-LINE-ChannelSecret
  • X-LINE-MerchantDeviceProfileId
  • X-LINE-MerchantDeviceType

詳細內容請參閱請求標頭

Request examples

curl -X GET \
-H "Content-Type: application/json" \
-H "X-LINE-ChannelId: YOUR_CHANNEL_ID" \
-H "X-LINE-ChannelSecret: YOUR_CHANNEL_SECRET" \
-H "X-LINE-MerchantDeviceProfileId: YOUR_DEVICE_PROFILE_ID" \
https://sandbox-api-pay.line.me/v2/payments/orders/merchant_test_order_1/check