order query

# url

  • POST https://ph-openapi.toppayment.com/ph/pay/query

# requestParameters

# NoteChineseIsProhibitedForRequestParameters

parameters required type describe example
mchNo string(32) Y mchNo,in`Merchant Platform - Personal Center - Personal Information PHOT000001
timestamp long Y timestamp 11749029774
sign string Y signature PHOT000001
orderNum string(64) Y merchantOrderNumber T1231511321515
platOrderNum string(64) Y platOrderNum PRE1234567890

# resposneParameters

parameters type describe example
orderNum String merchantOrderNumber 23645782
platOrderNum String platOrderNum 987654321
amount string amount 10000
fee string theAmountOfTheHandlingFee 5.32
productDetail String productDetail Macbook Pro
customerName String customerName Amot
customerEmail String customerEmail [email protected]
customerPhone String customerPhone 123456789
validTime Long validTime
status String status

# request example

  • requestBody
{
  "timestamp": "11749029774",
  "mchNo": "PHOT000001",
  "orderNum": "T1642593166888",
  "platOrderNum": "PRE1642593166888",
  "sign": "lGw1OJcuUL0MGaIq44U2u2bFM5dalJJuT/G6mQWbIBT9dmVAJaLwR125emPDXYYSdnOtNxja86A2VJJLf40BCg2HevHolebvt2ay3ukCQaUhwNkIGz4KF0Ud+XMUA36LoFTWZbDYv9y8vgCnWxwZFKj7ePrfLxc+TA7jpqv65lQ\u003d"
}
  • responseBody
{
  "success": true,
  "code": "9999",
  "timestamp": 1749029774,
  "message": "Success",
  "data": {
    "orderNum": "M123456789",
    "platOrderNum": "P987654321",
    "amount": 100.50,
    "fee": 2.50,
    "method": "credit_card",
    "productDetail": "Sample product description",
    "customerName": "John Doe",
    "customerEmail": "[email protected]",
    "customerPhone": "+1234567890",
    "validTime": 3600,
    "status": "SUCCESS"
  }
}