Skip to content

Balance

Queries the bank account balance associated with the API Key.

Endpoint

GET /api/external/balance

Headers

HeaderTypeRequiredDescription
AuthorizationStringYesApiKey {client_id}:{client_secret}

Example

bash
curl -X GET https://api.owem.com.br/api/external/balance \
  -H "Authorization: ApiKey $CLIENT_ID:$CLIENT_SECRET"

Success Response (200)

json
{
  "worked": true,
  "balance": 3000000,
  "available": 2700000,
  "pending": 300000,
  "currency": "BRL"
}
FieldTypeDescription
workedBooleantrue indicates operation success
balanceIntegerTotal balance in base units (/ 10,000 for BRL). 3000000 = R$ 300.00
availableIntegerAvailable balance for operations in base units. 2700000 = R$ 270.00
pendingIntegerAmount held in pending transactions in base units. 300000 = R$ 30.00
currencyStringCurrency code (always BRL)

Response values in base units

All response values are integers in base units. To convert to BRL, divide by 10,000. Example: 3000000 / 10,000 = R$ 300.00. Never use floating point.

Relationship between fields

  • balance = available + pending
  • available: amount that can be used for new PIX transfers
  • pending: sum of amounts in transactions not yet settled

Error Response (401)

json
{
  "error": {
    "status": 401,
    "message": "Missing API key credentials. Use Authorization: ApiKey <client_id>:<client_secret>"
  }
}

Owem Pay Instituição de Pagamento — ISPB 37839059