Skip to main content

Query Payment Checkout

Query the status of a previously created payment checkout session using its checkoutId. Returns checkout-level status, amount, and the linked transactionId.

When to Use

Use this endpoint when:

  • Polling for payment status during a direct checkout flow
  • Confirming a checkout session is complete before redirecting the customer
caution

Payment checkout is not the same as payment transaction info. Checkout only returns status, amount, and redirectUrl. For full transaction details, use Query By Transaction ID with the transactionId from the checkout response.

note

Direct Payment Checkout requires polling this endpoint to keep payment status updated. Suggested polling interval is 3–5 seconds.

How to Use

Endpoint
GET/v3/payment/online?checkoutId={checkoutId}

Step 1: Get the Checkout ID

Capture checkoutId from the Hosted Payment Checkout response.

Step 2: Send the Query

GET /v3/payment/online?checkoutId=<id>.

Step 3: Poll Until Complete

Repeat every 3-5 seconds until status reaches a terminal state.


Request Parameters

checkoutIdPARAMrequired

Payment checkout ID (query parameter)

Response Parameters

codeSTRING

"SUCCESS" if the request succeeded.

errorOBJECT

Error details

codeSTRING

Error code.

messageSTRING

Error message.

debugSTRING

Debug message (sandbox only).

itemOBJECT

Response item

idSTRING

Payment checkout ID.

typeSTRING

Payment checkout type.

transactionIdSTRING

Payment transaction ID. Use this to query the transaction via Query Transaction.

orderOBJECT

Order details

idSTRING

Order ID.

titleSTRING

Order title.

currencyTypeSTRING

Order currency type.

amountINTEGER

Order amount.

detailSTRING

Order detail.

additionalDataSTRING

Order additional data.

platformSTRING

Payment checkout platform.

methodSTRING

Payment checkout available methods.

redirectUrlSTRING

Payment redirect URL.

notifyUrlSTRING

Payment notify URL.

startAtSTRING

Payment checkout start date time.

statusSTRING

Payment checkout status.

createdAtSTRING

Payment checkout created date time.

updatedAtSTRING

Payment checkout last updated date time.