GET Buscar Caixa do Usuário
Retorna o caixa aberto do usuário autenticado, incluindo movimentações e totais por método de pagamento.
Autenticação necessária
Esta rota requer o header Authorization: Bearer {accessToken}
Nenhum campo é obrigatório
O parâmetro de query é opcional. A requisição funciona sem nenhum filtro.
Endpoint
GET https://api-dev.imagemais.com.br/api/cash-management/me
Parâmetros de Query
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
procedureName | string | ❌ | Filtra movimentações pelo nome do procedimento |
Requisição
curl -X 'GET' \
'https://api-dev.imagemais.com.br/api/cash-management/me' \
-H 'accept: */*' \
-H 'Authorization: Bearer {accessToken}'
Respostas
200 Sucesso
{
"data": {
"id": 315,
"createdAt": "2026-03-19T19:07:04.198Z",
"updatedAt": "2026-03-19T19:07:04.198Z",
"userOpening": {
"name": "Carlos Mendes",
"email": "carlos@clinica.com.br"
},
"userClosing": null,
"status": {
"id": 1,
"name": "OPEN"
},
"movements": [
{
"id": 6423,
"createdAt": "2026-03-30T15:04:03.617Z",
"updatedAt": "2026-03-30T15:04:03.617Z",
"value": "80",
"status": {
"name": "PAID"
},
"paymentMethod": {
"name": "PIX_PAGAMENTO_INSTANTANEO"
},
"movementsOptions": null,
"budgets": [
{
"id": 21130,
"patient": {
"name": "MARIA FERNANDA COSTA SILVA",
"cpf": "00000000000"
},
"budgetsProcedures": [
{
"procedure": {
"name": "CONSULTA - CLÍNICA MÉDICA"
}
}
]
}
]
},
{
"id": 6434,
"createdAt": "2026-05-18T13:47:15.138Z",
"updatedAt": "2026-05-18T13:47:15.138Z",
"value": "252",
"status": {
"name": "PAID"
},
"paymentMethod": {
"name": "CARTAO_CREDITO"
},
"movementsOptions": {
"flag": "Visa",
"installments": 1
},
"budgets": [
{
"id": 21161,
"patient": {
"name": "Pedro Alves",
"cpf": "11111111111"
},
"budgetsProcedures": [
{
"procedure": {
"name": "17 BETA ESTRADIOL E2 - PRIMEIRA AMOSTRA"
}
}
]
}
]
},
{
"id": 6437,
"createdAt": "2026-05-18T22:53:45.907Z",
"updatedAt": "2026-05-18T22:53:45.907Z",
"value": "12",
"status": {
"name": "PAID"
},
"paymentMethod": {
"name": "DINHEIRO"
},
"movementsOptions": null,
"budgets": [
{
"id": 21164,
"patient": {
"name": "MARIA FERNANDA COSTA SILVA",
"cpf": "00000000000"
},
"budgetsProcedures": [
{
"procedure": {
"name": "HEMOGRAMA SEM REVISAO"
}
}
]
}
]
},
{
"id": 6438,
"createdAt": "2026-05-18T23:03:52.238Z",
"updatedAt": "2026-05-18T23:03:52.238Z",
"value": "14",
"status": {
"name": "PAID"
},
"paymentMethod": {
"name": "DINHEIRO"
},
"movementsOptions": null,
"budgets": [
{
"id": 21165,
"patient": {
"name": "MARIA FERNANDA COSTA SILVA",
"cpf": "00000000000"
},
"budgetsProcedures": [
{
"procedure": {
"name": "TS - TEMPO DE SANGRAMENTO"
}
},
{
"procedure": {
"name": "TC - TEMPO DE COAGULACAO"
}
}
]
}
]
},
{
"id": 6439,
"createdAt": "2026-05-18T23:07:03.139Z",
"updatedAt": "2026-05-18T23:07:03.139Z",
"value": "19",
"status": {
"name": "PAID"
},
"paymentMethod": {
"name": "PIX_PAGAMENTO_INSTANTANEO"
},
"movementsOptions": null,
"budgets": [
{
"id": 21166,
"patient": {
"name": "MARIA FERNANDA COSTA SILVA",
"cpf": "00000000000"
},
"budgetsProcedures": [
{
"procedure": {
"name": "TS - TEMPO DE SANGRAMENTO"
}
},
{
"procedure": {
"name": "HEMOGRAMA SEM REVISAO"
}
}
]
}
]
},
{
"id": 6440,
"createdAt": "2026-05-19T12:31:13.952Z",
"updatedAt": "2026-05-19T12:31:13.952Z",
"value": "0",
"status": {
"name": "PAID"
},
"paymentMethod": {
"name": "DINHEIRO"
},
"movementsOptions": null,
"budgets": [
{
"id": 21167,
"patient": {
"name": "ANA LUCIA SANTOS FERREIRA",
"cpf": "22222222222"
},
"budgetsProcedures": [
{
"procedure": {
"name": "UREIA"
}
},
{
"procedure": {
"name": "BILIRRUBINAS TOTAL E FRACOES"
}
}
]
}
]
}
]
},
"lastOpenDate": "2026-01-19T11:52:54.522Z",
"aggregate": {
"_count": {
"_all": 1
},
"_sum": {
"value": "0"
}
},
"aggregateByPaymentMethod": [
{
"paymentMethod": "DINHEIRO",
"aggregate": {
"_sum": {
"value": "0"
}
}
},
{
"paymentMethod": "CARTAO_CREDITO",
"aggregate": {
"_sum": {
"value": null
}
}
},
{
"paymentMethod": "CARTAO_DEBITO",
"aggregate": {
"_sum": {
"value": null
}
}
},
{
"paymentMethod": "PIX_PAGAMENTO_INSTANTANEO",
"aggregate": {
"_sum": {
"value": null
}
}
}
]
}