Skip to main content
POST
/
v1
/
tech
/
product
/
payouts
/
fetch-balance
Fetch Payout Balance
curl --request POST \
  --url https://app.unpay.in/api/v1/tech/product/payouts/fetch-balance \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "body": "UNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAY"
}
'
{
  "success": true,
  "debit_account_id": "UNPW4065468842",
  "available_balance": 10000,
  "currency": "INR"
}

Authorizations

x-api-key
string
header
required

Use your API Key from the UnPay dashboard. Required for all tech/server-to-server endpoints.

Headers

Content-Type
string
default:application/json
required

Must be application/json

Body

application/json
body
string
required

AES-256-CBC encrypted payload (HEX encoded). Encrypt the plaintext JSON containing the debit_account_id.

Example:

"UNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAYUNPAY"

Response

Balance retrieved successfully

success
boolean
Example:

true

debit_account_id
string
Example:

"UNPW4065468842"

available_balance
number
Example:

10000

currency
string
Example:

"INR"