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>

circle-info

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

Response

application/json

Response Attributes

chevron-rightstatus string hashtag

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

chevron-rightcode numberhashtag

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

chevron-rightdata object | nullhashtag
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.

chevron-rightuuid string | null hashtag

Unique request identifier useful for debugging or tracing logs.

chevron-rightmessage string | null hashtag

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

chevron-righterror string | null hashtag

Optional error description if something went wrong.

Last updated