Skip to main content

Pay-In Sub-Order Inquiry

TOPPAY TeamAbout 1 min

Request

Query the sub-order list associated with a Pay-In parent order. This is mainly used for Mexico and Colombia where parent/sub-order splitting exists.

Request URL

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

https://{country domain}/{countryCode}/pay/querySubOrders

This API is production-only. There is no sandbox URL.

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

Full URLs by country

Country / regionCodeURL
Mexicomxhttps://openapi.toppayment.com/mx/pay/querySubOrders
Colombiacohttps://openapi.toppayment.com/co/pay/querySubOrders

Request Header

FieldRequiredTypeDescription
Content-TypeMStringFixed: application/json

Request Body

FieldRequiredTypeDescription
mchNoMString(32)Merchant number
orderNumCString(64)Parent merchant order number; provide with/without platOrderNum (at least one of the two)
platOrderNumCString(64)Parent 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}}",
  "platOrderNum": "PRE2008115605537816576",
  "timestamp": 1660927384903,
  "sign": "Generate per signature rules and replace"
}

Response

Fields

FieldRequiredTypeDescription
successMBooleanSuccess flag
codeMString9999 success, others failure
msgOStringMessage
timeStampMNumberResponse timestamp (ms)
dataMArraySub-order list
parentPlatOrderNumMStringParent platform order number
parentOrderNumOStringParent merchant order number
platOrderNumMStringSub-order platform order number
orderNumMStringSub-order merchant order number
amountMNumberSub-order amount
statusMStringStatus, see Transaction Status Codes

Example

{
  "success": true,
  "code": "9999",
  "msg": null,
  "timeStamp": 1767873183510,
  "data": [
    {
      "parentPlatOrderNum": "PRE2008115605537816576",
      "parentOrderNum": "MX_ORDER_001",
      "platOrderNum": "PRE2008115605537816576-1",
      "orderNum": "MX_ORDER_001_1",
      "amount": 100.00,
      "status": "NO_PAY"
    },
    {
      "parentPlatOrderNum": "PRE2008115605537816576",
      "parentOrderNum": "MX_ORDER_001",
      "platOrderNum": "PRE2008115605537816576-2",
      "orderNum": "MX_ORDER_001_2",
      "amount": 100.00,
      "status": "SUCCESS"
    }
  ]
}