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"

Authentication

string header required

To authenticate requests, include an Authorization header with the value

Key
Value

auth-token

<Your Payright auth token>

You can retrieve your token by visiting your Payright dashboard and clicking Accounts > API Keys > View API Keys (magnify icon) > Auth Token

Response

application/json

Response Attributes

status string

Response status indicator (e.g., "ok" or "fail").

code number

HTTP-like status code representing result (200 = success).

data object | null
Field
Type
Description

collection_balance

number

Current available amount in the collection pool.

payout_balance

number

Current available amount in the payout pool.

total_transaction_today

number

Total transaction amount collected for the current day.

uuid string | null

Unique request identifier useful for debugging or tracing logs.

message string | null

Optional human-readable message (e.g., for error or info).

error string | null

Optional error description if something went wrong.

Last updated