Reprocessar averbação
🔒 Requer Bearer token
Escopo emprestimos:write. Requer header Idempotency-Key. Corpo vazio ({}, opcional). Recusa se já averbada ou em processamento.
Parâmetros
idstringpathobrigatório
Respostas
202Reprocessamento enfileirado.
400Header `Idempotency-Key` ausente (`IDEMPOTENCY_KEY_OBRIGATORIA`).
401Token ausente ou inválido (`CREDENCIAL_INVALIDA`).
404Empréstimo inexistente (`EMPRESTIMO_NAO_ENCONTRADO`).
Request
curl -X POST 'http://localhost:3101/v1/emprestimos/:id/averbacao/retry' \
-H 'Authorization: Bearer SEU_TOKEN' \
-H 'Idempotency-Key: 3f1c8a90-0000-4000-8000-000000000000' \
-H 'Content-Type: application/json' \
-d '{}'Response
{
"averbacao_id": "9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
"status": "reprocessamento_enfileirado"
}