PayPaga
  1. Query Balance
PayPaga
  • Introduction
    • Introduction
    • API Reference
    • Errors
    • Standard Codes and Values
  • Authorization
    • Authorization
    • OAuth 2.0 Token Generation
  • Pay In - Direct API Integration
    • Pay In - Direct API Integration
    • Pay In - Payment Options
    • Pay In - Payment Processing
    • Pay In - Query Transactions
  • Pay In - PayURL Integration
    • Pay In - PayURL Integration
    • Pay In - Create PayURL
  • Pay Out - Direct API Integration
    • Pay Out - Direct API Integration
    • Pay Out - Query Transactions
    • Pay Out - Payment Processing
  • Pay Out - Examples
    • Pay Out - Brazil
    • Pay Out - Mexico
    • Pay Out - Argentina (V2)
    • Pay Out - Colombia (V2)
    • Pay Out - Ecuador (V2)
    • Pay Out - Guatemala (V2)
    • Pay Out - Peru (V2)
  • Transactions Status Notification
    • Transactions Status Notification
  • Query Balance
    • Query Balance
      GET
  • Appendix
    • Transaction Status Definitions and Lifecycle
  1. Query Balance

Query Balance

Developing
Develop Env
https://merchant-api.stg.paypaga.com
Develop Env
https://merchant-api.stg.paypaga.com
GET
https://merchant-api.stg.paypaga.com
/get_merchant_balance/{merchant_id}
Real-time access to the financial balances of a merchant's account. This can be used for reporting and as a precursor to Pay Out - Payment Processing to determine if there is sufficient balance.
Error codes for Query Balance
Error codeDescription
107The merchant balance does not exist
500Unexpected error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://merchant-api.stg.paypaga.com/get_merchant_balance/?country_code&payment_method_code' \
--header 'Authorization;'
Response Response Example
200 - Success
{
  "country_collection": [
    {
      "country_code": "MX",
      "payment_method_collection": [
        {
          "payment_method_code": "BNKTR",
          "balance_collection": [
            {
              "transaction_type": "Payin",
              "currency": "MXN",
              "amount": 167761.96
            },
            {
              "transaction_type": "Payout",
              "currency": "MXN",
              "amount": 150985.764
            }
          ]
        }
      ]
    }
  ]
}

Request

Path Params

Query Params

Header Params

Responses

🟢200Success
application/json
Body

🟠400Bad Request
🔴500Server Error
Previous
Transactions Status Notification
Next
Transaction Status Definitions and Lifecycle
Built with