Skip to main content

Check payment status

Checks the payment status. If a read timeout occurs during a payment request and no response is received, call this API to check the status.

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

Set the read timeout to at least 20 seconds.

Path

Name
LengthDescription
Required
orderId100

Order ID. Enter the ID generated by the merchant to manage orders. Apply URL encoding when entering the ID.

Query

None

Body

None

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

For more information, see Request header.

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