Query balance
Check your balances in a country before sending payouts.
POST /api-pay/balance/query
Request headers
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | String | Yes | application/json |
sign | String | Yes | Request signature. See Authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
merchantCode | String(6) | Yes | Your merchant code, issued by PAYJN after onboarding. |
countryCode | String | Yes | Country code of the market, for example IDN for Indonesia. See the country pages. |
{
"merchantCode": "100001",
"countryCode": "IDN"
}
Response
| Field | Type | Description |
|---|---|---|
code | Integer | 200 means the request was accepted. Any other value is an error; see msg. |
msg | String | Error message when code is not 200. |
data | Object | Result object, returned when code is 200. |
data.withdrawableBalance | String | Amount available for payouts. |
data.settlingBalance | String | Collected amount waiting for settlement. |
data.frozenBalance | String | Amount currently frozen. |
Get API access
Full integration documentation, your API host, merchant code and keys are provided after onboarding. Review is usually completed on the same day, and a test mode is switched on for your account before launch.