Get Balance
Endpoint
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
Key
Value
Response
Response Attributes
Last updated