# 3、Query Orders
- Query Order Status
# Query Collecting Orders
Request Method
- POST
Request URL
/api/v3/ph/query/collectingOrder
Request Type
"Content-Type": "application/json; charset=utf-8"
Request Header Parameters
| Param | Type | Description | Sample |
|---|---|---|---|
| access_key | String | Merchant's backend access key | pFqV75X3 |
| timestamp | String | 13-digit Unix timestamp in milliseconds | 1679724896223 |
| nonce | String | UUID v4 random string | 794c26b0-d33c-4394-b2bb-c485eca16d9e |
| sign | String | Signature generated using the secret_key | kAXyh+eerqrefyaF8dyFB0M4FVo= |
Request Example
{
"externalOrderId": "241534072867503522",
"orderId": "OCARDDEP0202306090256051686279365706DOCKER020000000200001399"
}
Request Parameters Description
| Param | Type | Required | Description |
|---|---|---|---|
| externalOrderId | String | Optional | Merchant Order ID |
| orderId | String | Optional | System Order ID |
Response Header
Header: { "Content-Type": "application/json; charset=utf-8" }
Response Example
{
"code": "200",
"success": true,
"msg": "成功",
"msgEn": "SUCCESS",
"data": [
{
"bankOrderId": "",
"accountName": "",
"accountNo": "",
"accountType": "",
"channelOrderId": "6236250815000028",
"currencyType": "PHP",
"errorMsg": null,
"externalOrderId": "YURITEST20250815101418363756",
"markStatus": 0,
"notifyUrl": "https://tofficeapi.co/api/v1/-api/test/testNotifySuccess",
"orderActualAmount": "112.23",
"orderAmount": "112.23",
"orderCompleteTime": 1755224828000,
"orderEntryAmount": "107.74",
"orderFee": "4.49",
"orderId": "OCURRPAID202508150214171755224057943-U0000000400002501",
"orderPayTime": 1755224828000,
"orderResourceType": 2,
"orderStatus": 2,
"orderTime": 1755224058000,
"orderType": 1,
"payType": 129,
"tradeNote": "wsxtest",
"userId": "1785945811976196097",
"userInfoName": "",
"userInfoNo": "",
"businessId": "1755224057964xwpw7kx011m9aqz7ix5",
"payTypeCode": "",
"orderStatusCode": "Payment success",
"orderTypeCode": "Pay"
}]
}
Response Parameter Description
| Parameter Name | Type | Description |
|---|---|---|
| bankOrderId | String | Bank order number |
| accountName | String | Account name |
| orderActualAmount | String | Actual order amount. The amount actually paid by the consumer, which may differ from the order amount at creation; the actual payment by the consumer is the correct value. |
| orderEntryAmount | String | Merchant received amount. The amount the merchant actually receives, which equals orderActualAmount - orderFee. |
| orderAmount | String | Original order amount. The amount initiated when the order was created. |
| orderFee | String | Order fee. Calculated based on the actual order amount (orderActualAmount). |
| orderPayTime | int64 | Order payment time (Unix timestamp in milliseconds) |
| orderCompleteTime | int64 | Order completion time (Unix timestamp in milliseconds) |
| errorMsg | String | Error message (in Chinese) |
| errorMsgEn | String | Error message (in English) |
| accountNo | String | Account number |
| accountType | String | Account type |
| cashierId | String | Cashier ID |
| channelOrderId | String | Associated channel order number |
| currencyType | String | Fiat currency type code, enumeration |
| externalOrderId | String | Merchant order number |
| notifyUrl | String | Callback URL after payment completion |
| orderId | String | System-generated order number |
| orderResourceType | int64 | Business type of the order, enumeration value: 2 (Fiat order) |
| orderStatus | int64 | Order status, enumeration values: 1, 2 (1 - Pending Payment, 2 - Payment Successful (Final State)) |
| orderTime | int64 | Order creation time (Unix timestamp in milliseconds) |
| orderType | int64 | Order type, enumeration values: (1 - Collection, 2 - Payout) |
| payType | int64 | Payment method type code |
| tradeNote | String | Merchant note information |
| userId | String | User ID |
| payTypeCode | String | Description of payType |
| orderStatusCode | String | Description of orderStatus, enumeration values: Wait pay, Payment Successful |
| orderTypeCode | String | Description of orderType, enumeration values: Collection, Payout |
| userInfoName | String | User's name |
| userInfoNo | String | User's identification number |
| businessId | String | Merchant business ID |
# Query Payout Orders
Request Method
- POST
Request URL
/api/v3/ph/query/transferOrder
Request Type
Content-Type: application/json;charset=utf-8
Request Header Parameters
| Param | Type | Description | Sample |
|---|---|---|---|
| access_key | String | Obtained from merchant backend | pFqV75X3 |
| timestamp | int64 | Unix timestamp (13 digits) | 1679724896223 |
| nonce | String | UUID V4 | 794c26b0-d33c-4394-b2bb-c485eca16d9e |
| sign | String | Calculated signature | kAXyh+eerqrefyaF8dyFB0M4FVo= |
Request Example
{
"externalOrderId": "241534072867503522",
"orderId": "OCARDDEP0202306090256051686279365706DOCKER020000000200001399"}
Request Parameters Explanation
| Param | Type | Required | Description |
|---|---|---|---|
| externalOrderId | String | Optional | Merchant Order Number |
| orderId | String | Optional | System Order Number |
Response Type
Header: { 'Content-Type': 'application/json;charset=utf-8'}
Response Example
{
"code": "200",
"success": true,
"msg": "成功",
"msgEn": "SUCCESS",
"data": [
{
"bankOrderId": "",
"accountName": "",
"accountNo": "09311606128",
"accountCode": "",
"accountType": "",
"cashierId": "",
"channelOrderId": "9295250815000003",
"currencyType": "PHP",
"errorMsg": null,
"externalOrderId": "YURITEST20250815113758142698",
"markStatus": 0,
"notifyUrl": "https://gw.io/api/v1/-api/test/testNotifySuccess",
"orderActualAmount": "116.687",
"orderAmount": "111.13",
"orderCompleteTime": 1755229512000,
"orderEntryAmount": "111.13",
"orderFee": "5.557",
"orderId": "OCURRDRAW202508150337581755229078995-U0000000200002516",
"orderPayTime": 1755229512000,
"orderResourceType": 2,
"orderStatus": 8,
"orderTime": 1755229079000,
"orderType": 2,
"payType": 206,
"tradeNote": "test",
"userId": "1785945811976196097",
"userInfoName": "Sam",
"userInfoNo": "",
"businessId": "1755229079223a1l98mmlk53fde76pii",
"payTypeCode": "",
"orderStatusCode": "Success",
"orderTypeCode": "Transfer"
}]
}
Response Parameters Explanation
| Param | Type | Description |
|---|---|---|
| bankOrderId | String | Bank Order Number |
| accountName | String | Account Name |
| accountNo | String | Account Number |
| accountType | String | Account Type |
| channelOrderId | String | Channel Order ID associated with the order |
| currencyType | String | Currency Type, enum |
| errorMsg | String | Error Message |
| externalOrderId | String | Merchant Order Number |
| notifyUrl | String | Callback URL |
| orderAmount | String | Order Amount |
| orderActualAmount | String | Actual Order Amount |
| orderEntryAmount | String | Actual Amount Credited to Account |
| orderFee | String | Order Fee |
| orderCompleteTime | int64 | Order Completion Time (timestamp) |
| orderPayTime | int64 | Order Payment Time (timestamp) |
| orderId | String | System Order ID |
| orderResourceType | int64 | Order Business Type, enum value: 2 (Fiat Currency Order) |
| orderStatus | int64 | Order Status: 1-Processed, 2-Bank Processing, 4-Failed, 8-Success, 16-Failed (Final) |
| orderTime | int64 | Order Initiation Time (timestamp) |
| orderType | int64 | Order Type, enum value: 1 (Collection), 2 (Disbursement) |
| payType | int64 | Payment Type, enum |
| tradeNote | String | Remarks |
| userId | String | Order Creator ID |
| payTypeCode | String | Description of payType |
| orderStatusCode | String | Description of orderStatus, enum values: Accepted, In Bank Processing, Bank Rejection, Completed, Failed |
| orderTypeCode | String | Description of orderType, enum values: Collection, Disbursement |
| userInfoName | String | User Information Name |
| userInfoNo | String | User Information ID Number |
| businessId | String | Business ID |
| accountCode | String | Bank Account |