Skip to main content
POST
/
php
/
collect
/
query
PHP Collection Query
curl --request POST \
  --url https://uat-interface.haipay.asia/php/collect/query \
  --header 'Content-Type: application/json' \
  --data '
{
  "appId": 123,
  "orderId": "<string>",
  "sign": "<string>",
  "orderNo": "<string>"
}
'
{
  "status": "1",
  "error": "00000000",
  "msg": "",
  "data": {
    "orderId": "<string>",
    "orderNo": "<string>",
    "amount": "<string>",
    "actualAmount": "<string>",
    "fee": "<string>",
    "status": 0,
    "payTime": "<string>",
    "errorMsg": "<string>",
    "sign": "<string>"
  }
}

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer
required

Business ID (obtain from backend, must match the business ID according to the currency in the URL).

orderId
string
required

Merchant order number.

sign
string
required

Signature.

orderNo
string

Platform order number (faster response).

Response

200 - application/json
status
string
default:1

1: Normal, 0: Exception

error
string
default:00000000

Error code

msg
string
default:""

Error description

data
object
Last modified on April 10, 2026