Get Balance
This endpoint retrieves the current financial status of a merchant’s account. It provides real-time information on:
Collection Pool Balance – the total amount currently available in all collection pools.
Payout Pool Balance – the total amount currently available for payouts.
Today’s Total Collections – the sum of all collections received for the current day.
This API is useful for monitoring cash flow and ensuring transparency in both collections and payouts.
Endpoint
GET
Usage Examples
curl -X GET "https://api.payright.my/api/v1/merchant/balance" \
-H "auth-token: eyJhbGciO...XZI3CLi_a0BeUOJMPUK00"import http.client
import urllib.parse
# Parse the URL
url = "https://api.payright.my/api/v1/merchant/balance"
parsed_url = urllib.parse.urlparse(url)
# Create HTTPS connection
conn = http.client.HTTPSConnection(parsed_url.hostname)
# Prepare headers
headers = {
"auth-token": "eyJhbGciO...XZI3CLi_a0BeUOJMPUK00" #Insert auth-token here
}
# Send GET request
conn.request("GET", parsed_url.path, headers=headers)
# Read response
response = conn.getresponse()
print("Status:", response.status)
print("Response body:", response.read().decode())
# Close connection
conn.close()Authentication
string header required
To authenticate requests, include an Authorization header with the value
Key
Value
auth-token
<Your Payright auth token>
Response
application/json
Response Attributes
Last updated