Documentation Index
Fetch the complete documentation index at: https://docs.usealpa.com/llms.txt
Use this file to discover all available pages before exploring further.
Listar antecipações
Autenticação: Bearer Token (JWT)
Parâmetros de query
| Parâmetro | Tipo | Padrão | Descrição |
|---|
page | integer | 1 | Página da listagem |
limit | integer | 20 | Itens por página (máximo 100) |
Exemplo
curl --request GET \
--url 'https://alpa-sistema-api.onrender.com/api/advances/?page=1&limit=20' \
--header 'Authorization: Bearer SEU_JWT_TOKEN'
Resposta (200 OK)
{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"amountCents": 50000,
"netAmountCents": 48500,
"feeCents": 1500,
"status": "COMPLETED",
"createdAt": "2026-05-25T00:00:00.000Z",
"completedAt": "2026-05-26T00:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 3,
"totalPages": 1
}
}
Obter antecipação específica
Exemplo
curl --request GET \
--url https://alpa-sistema-api.onrender.com/api/advances/550e8400-e29b-41d4-a716-446655440000 \
--header 'Authorization: Bearer SEU_JWT_TOKEN'
Resposta (200 OK)
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"amountCents": 50000,
"netAmountCents": 48500,
"feeCents": 1500,
"feePercentage": 3.0,
"status": "COMPLETED",
"reason": "Capital de giro",
"createdAt": "2026-05-25T00:00:00.000Z",
"completedAt": "2026-05-26T00:00:00.000Z"
}
}
Solicitar antecipação
Crie uma nova solicitação de antecipação.