curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/balance \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": [
{
"currency": "BRL",
"available_cents": 125000,
"pending_cents": 3000
}
]
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, withdrawals_read." }
API reference
Balance
Returns the available and pending balance in BRL and USD, in cents.
GET
/
functions
/
v1
/
doglytdc-pay
/
v1
/
balance
curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/balance \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": [
{
"currency": "BRL",
"available_cents": 125000,
"pending_cents": 3000
}
]
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, withdrawals_read." }
Scope
read withdrawals_read
What it does
Returns the available and pending balance in BRL and USD, in cents.Use cases
- Show the balance on your dashboard
- Decide when to request a withdrawal
Response
Errors
| Status | Description |
|---|---|
401 | Invalid or revoked key. |
403 | Missing scopes (insufficient_scope). |
429 | Rate limit (rate_limited). |
curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/balance \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": [
{
"currency": "BRL",
"available_cents": 125000,
"pending_cents": 3000
}
]
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, withdrawals_read." }

