Paycools API Docs
Version
Version
  • v1
  • v2
Languages
Languages
  • English
  • 简体中文
Version
Version
  • v1
  • v2
Languages
Languages
  • English
  • 简体中文
  1. 1. Account
  • Unified API Request Param
  • Unified Async Notification Param
  • Open API Common Code List
  • 1. Account
    • Country Code
    • 1.1 Balance Inquiry
      POST
    • 1.2 Report Download
      POST
    • 1.2 Balance Detail
      POST
  • 2. Payment
    • Payment Channel List
    • Wechat Webpage Authorization Reference
    • Wechat Calls Payment Reference
    • 2.1 Create Payment
      POST
    • 2.2 Check Payment Status
      POST
    • 2.3 Close Payment
      POST
    • 2.5 Payment Void
      POST
    • 2.4 Asynchronous Notification Of Payment Results
      POST
    • 2.6 Logistics Upload
      POST
    • 2.7 File Upload
      POST
  • 3. Payout
    • Payout Channel List
    • Account Verification Related Enum List
    • 3.1 Account Validation
      POST
    • 3.2 Check Account Validation Order Status
      POST
    • 3.3 Create Payout
      POST
    • 3.4 Check Payout Status
      POST
    • 3.5 Asynchronous Notification Of Payout Results
      POST
    • 3.6 Create Payout Batch
      POST
    • 3.7 Payout Batch Query
      POST
    • 3.8 Payout Batch Query Detail
      POST
    • 3.9 payout Batch Call Back
      POST
  • 4. Checkout
    • Checkout Payment Channel Code List
    • 4.1 Create Checkout Order
    • 4.5 Asynchronous Notification Of Checkout Payment Results
    • 4.2 Check Checkout Order status
    • 4.3 Get Checkout Order Available Channels
    • 4.4 Close Checkout Order
  • 5. Refund
    • Refund Support Channel List
    • Refund Status Enum
    • 5.1 Refund
    • 5.2 Get Refund Payments
    • 5.3 Asynchronous Notification Of Refund Results
  • 6. Direct Debit
    • Direct Debit Channel List
    • 6.1 Create Authorization Url
    • 6.2 Check Authorization Status
    • 6.3 Cancel Authorization
    • 6.4 Asynchronous Notification Of Authorization Results
  • 7. Split Payment
    • Split Payment Enumeration
    • 1. Relationship Proof File Upload
    • 2. Add Split Payment Receiver
    • 3. Query Split Payment Receiver
    • 4. Delete Split Payment Receiver
    • 5. Query Unsplit Amount
    • 6. Split Payment
    • 7. Query Split Payment Result
    • 8. Split Payment Return
    • 9. Query Split Payment Return Result API
  • 8. Validation Product
    • Payment Slip Validation
    • Payment Slip Validation Query
  • 9. cross-border payment
    • Query exchange rate quotation
  1. 1. Account

1.2 Balance Detail

Developing
POST
/open-api/account/balance/detail
Query the merchant's balance change details with cursor pagination. The transaction number (transactionId) is the balance ledger serial number shown on the merchant portal. For FX withdrawals, a structured exchange object is returned and the remark carries the FX suffix, e.g. "merchant USD withdraw | FX Rate: USD/CNY 7.123400".

Request

Body Params application/json

Example
{
    "appId": "3490xxxxxxa8af",
    "sign": "{signature}",
    "param": "{\"countryCode\":\"PH\",\"startTime\":\"2026-11-01T00:00:00+08:00\",\"endTime\":\"2026-11-30T23:59:59+08:00\",\"changeType\":\"WITHDRAW\",\"limit\":20,\"timestamp\":\"1795824001599\"}"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/open-api/account/balance/detail' \
--header 'Content-Type: application/json' \
--data '{
    "appId": "3490xxxxxxa8af",
    "sign": "{signature}",
    "param": "{\"countryCode\":\"PH\",\"startTime\":\"2026-11-01T00:00:00+08:00\",\"endTime\":\"2026-11-30T23:59:59+08:00\",\"changeType\":\"WITHDRAW\",\"limit\":20,\"timestamp\":\"1795824001599\"}"
}'

Responses

🟢200SUCCESS
application/json
Bodyapplication/json

Example
{
    "code": 10000,
    "message": "Success",
    "data": {
        "items": [
            {
                "transactionId": "MS79560223707566417",
                "changeType": "WITHDRAW",
                "currency": "PHP",
                "openingBalance": "10000.00",
                "transactionAmount": "-1000.00",
                "closingBalance": "9000.00",
                "transactionTime": "2026-11-25T18:23:57+08:00",
                "remark": "merchant USD withdraw | FX Rate: USD/CNY 7.123400",
                "exchange": {
                    "exchangeRate": "7.123400",
                    "sourceCurrency": "CNY",
                    "targetCurrency": "USD",
                    "sourceAmount": "1000.00",
                    "targetAmount": "140.38",
                    "rateTime": "2026-11-25T18:20:00+08:00",
                    "ratePrecision": 6
                }
            },
            {
                "transactionId": "MS79542011482557256",
                "changeType": "PAYMENT_SETTLEMENT",
                "currency": "PHP",
                "openingBalance": "8.00",
                "transactionAmount": "8992.00",
                "closingBalance": "9000.00",
                "transactionTime": "2026-11-25T18:21:57+08:00",
                "remark": "T1 transaction date: 2026-11-24",
                "exchange": null
            }
        ],
        "nextCursor": "eyJ2IjoxLCJ0IjoxNzk1ODI0MDAxNTk5LCJpIjo0MjY4MX0.9f8d1c2b3a4e5f6071a2b3c4d5e6f7081",
        "hasMore": true
    }
}
Previous
1.2 Report Download
Next
Payment Channel List
Built with