Get Daily Balance
Use this endpoint to get the daily balance of a specific date.
Available Environments
- Production
https://api.gateway.com.br/core
Endpoint
- Method:
GET - Endpoint:
/wallet/daily-balance/{date} - Authentication: Bearer token
Path Params
| Name | Type | Required | Description | Validations |
|---|---|---|---|---|
date | string (ISO) | Yes | Date of the day | Must be an ISO date string with no time |
Request Example
- cURL
- JavaScript
curl --request GET \
--url https://api.gateway.com.br/core/wallet/daily-balance/553e8400-e29b-41d4-a716-436251480000 \
--header 'Authorization: Bearer your-jwt-token'
const response = await fetch('https://api.gateway.com.br/core/wallet/daily-balance/553e8400-e29b-41d4-a716-436251480000 ', {
method: 'GET',
headers: {
'Authorization': 'Bearer your-jwt-token'
}
});
const data = await response.json();
Success Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | Unique identifier |
totalCredits | number | Yes | Total credits (integer, in cents) |
totalDebits | number | Yes | Total debits (integer, in cents) |
balanceChange | number | Yes | Balance change (integer, in cents) |
openingBalance | number | Yes | Opening balance (integer, in cents) |
closingBalance | number | Yes | Closing balance (integer, in cents) |
date | string | Yes | Date of the day |
createdAt | string (ISO) | Yes | Creation date |
Response Example
{
"id": "553e8400-e29b-41d4-a716-436251480000",
"totalCredits": 100000,
"totalDebits": 30000,
"balanceChange": 70000,
"openingBalance": 400000,
"closingBalance": 470000,
"date": "2026-03-06T12:49:04.681Z",
"createdAt": "2026-03-06T12:49:04.681Z"
}
Possible Errors
| Code | Description | Solution |
|---|---|---|
| 401 | Invalid credentials | Check your credentials |
| 403 | No permission/authorization | Contact support |
| 404 | Daily balance not found | Contact support |
| 500 | Internal error | Contact support |