Skip to main content

Pay-In Order Inquiry

TOPPAY TeamAbout 2 min

Request

Query Pay-In order status and details.

Crypto orders

Crypto pay-in orders use a different URL and response schema — see Crypto Order Inquiry.

Request URL

Template (if your country is not listed, use the domain and code provided by your account manager)

Sandbox: https://{country domain}/sandbox/{countryCode}/pay/query
Production: https://{country domain}/{countryCode}/pay/query

Prefer Host openapi.toppayment.com; legacy country domains remain available.

Full URLs by country

Country / regionCodeSandboxProduction
Philippinesphhttps://openapi.toppayment.com/sandbox/ph/pay/queryhttps://openapi.toppayment.com/ph/pay/query
Indonesiaidhttps://openapi.toppayment.com/sandbox/id/pay/queryhttps://openapi.toppayment.com/id/pay/query
Nigerianghttps://openapi.toppayment.com/sandbox/ng/pay/queryhttps://openapi.toppayment.com/ng/pay/query
Indiainhttps://openapi.toppayment.com/sandbox/in/pay/queryhttps://openapi.toppayment.com/in/pay/query
Thailandthhttps://openapi.toppayment.com/sandbox/th/pay/queryhttps://openapi.toppayment.com/th/pay/query
Vietnamvnhttps://openapi.toppayment.com/sandbox/vn/pay/queryhttps://openapi.toppayment.com/vn/pay/query
Perupehttps://openapi.toppayment.com/sandbox/pe/pay/queryhttps://openapi.toppayment.com/pe/pay/query
Brazilbrhttps://openapi.toppayment.com/sandbox/br/pay/queryhttps://openapi.toppayment.com/br/pay/query
Mexicomxhttps://openapi.toppayment.com/sandbox/mx/pay/queryhttps://openapi.toppayment.com/mx/pay/query
Colombiacohttps://openapi.toppayment.com/sandbox/co/pay/queryhttps://openapi.toppayment.com/co/pay/query
Boliviabohttps://openapi.toppayment.com/sandbox/bo/pay/queryhttps://openapi.toppayment.com/bo/pay/query
Pakistanpkhttps://openapi.toppayment.com/sandbox/pk/pay/queryhttps://openapi.toppayment.com/pk/pay/query
Bangladeshbdhttps://openapi.toppayment.com/sandbox/bd/pay/queryhttps://openapi.toppayment.com/bd/pay/query

Request Header

FieldRequiredTypeDescription
Content-TypeMStringFixed: application/json

Request Body

FieldRequiredTypeDescription
mchNoMString(32)Merchant number
orderNumCString(64)Merchant order number; provide with/without platOrderNum (at least one of the two)
platOrderNumCString(64)Platform order number; provide with/without orderNum (at least one of the two)
timestampMNumber(13)Millisecond timestamp, e.g. 1660927384903
signMStringSignature, see Signature

Important

Provide at least one of orderNum or platOrderNum.

Example

{
  "mchNo": "{{mchNo}}",
  "orderNum": "PH12345ad5627",
  "platOrderNum": "PRE2008115605537816576",
  "timestamp": 1660927384903,
  "sign": "Generate per signature rules and replace"
}

Response

Fields

FieldRequiredTypeDescription
successMBooleanSuccess flag
codeMString9999 success, others failure
msgOStringMessage
timeStampMNumberResponse timestamp (ms)
dataMObjectOrder details
orderNumMStringMerchant order number
platOrderNumMStringPlatform order number
amountMNumberAmount
feeMNumberFee
validTimeMNumberExpiry timestamp (ms)
productDetailMStringProduct detail
customerNameMStringCustomer name
customerEmailMStringCustomer email
customerPhoneMStringCustomer phone
statusMStringStatus, see Transaction Status Codes
payerNameOStringPayer name
payerAccountNoOStringPayer account number
payerAccountBankOStringPayer account bank

Example

{
  "success": true,
  "code": "9999",
  "msg": null,
  "timeStamp": 1767873183510,
  "data": {
    "orderNum": "PH12345ad5627",
    "platOrderNum": "PRE2008115605537816576",
    "amount": 200.00,
    "fee": 0.00,
    "validTime": 1767697044000,
    "productDetail": "azel",
    "customerName": "azel",
    "customerEmail": "[email protected]",
    "customerPhone": "18121153777",
    "status": "INIT_ORDER"
  }
}