Pular para o conteúdo principal
POST
Approve loan application

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

Canonical idempotency request ID (lib-commons enforcer reads this). Required: without a key a retry of this request cannot be told apart from a second instruction, and the duplicate it books is undone by hand.

Exemplo:

"550e8400-e29b-41d4-a716-446655440003"

Parâmetros de caminho

id
string<uuid>
obrigatório

Loan application identifier.

Exemplo:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Corpo

application/json
approvedAmount
string
obrigatório

Approved amount as a decimal string (e.g. "48000.00").

Exemplo:

"48000.00"

decisionAt
string
obrigatório

Decision timestamp (RFC3339).

Exemplo:

"2026-06-14T12:00:00Z"

note
string

Optional approval note.

Resposta

OK

assignedOfficerId
string
obrigatório

Authenticated officer who created the application (request subject), or empty on a system-originated application, which has no human officer. Whatever the identity provider issues as the subject: not necessarily a UUID, at most 255 characters.

Exemplo:

"officer-xyz"

borrowerId
string<uuid>
obrigatório

Borrower identifier (UUID).

Exemplo:

"550e8400-e29b-41d4-a716-446655440002"

expectedDisbursementDate
string
obrigatório

Expected disbursement date (RFC3339, UTC).

Exemplo:

"2026-06-14T12:00:00Z"

id
string
obrigatório

Loan application identifier (UUID).

Exemplo:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

loanProductVersionId
string
obrigatório

Loan product version this application was created against (UUID).

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

previewJurisdictionCode
string
obrigatório

ISO-2 jurisdiction code resolved at preview time.

Exemplo:

"BR"

previewProfileVersion
string
obrigatório

Jurisdiction profile version resolved at preview time.

Exemplo:

"1.0.0"

requestedInstallments
integer<int64>
obrigatório

Number of installments requested.

Exemplo:

24

requestedInterestRate
string
obrigatório

Requested monthly interest rate as a decimal string, scale 8 (e.g. "0.00000100").

Exemplo:

"0.00000100"

requestedPrincipalAmount
string
obrigatório

Requested principal amount as a decimal string, minor-unit precision scale 2 (e.g. "50000.00").

Exemplo:

"50000.00"

status
string
obrigatório

Lifecycle status: one of pending_approval, approved, rejected, withdrawn, disbursed.

Exemplo:

"pending_approval"

approvalDecision
object

Approval facts; present only when the application is approved or disbursed.

borrowerKind
string

Whose credit this is, as declared at creation. ABSENT on an application created before the declaration existed: such an application cannot be taxed or described, and the paths that need the kind refuse it with LENDER-0230 rather than assuming one.

Exemplo:

"pessoaFisica"

disbursementEvent
object

Disbursement facts; present only when the application is disbursed.

previewScheduleSnapshotId
string

Schedule offer this application cites (UUID). ABSENT when it cites none, which is allowed: simulating first is optional.

Exemplo:

"6ba7b810-9dad-11d1-80b4-00c04fd430c8"

rejectionDecision
object

Rejection facts; present only when the application is rejected.

withdrawalDecision
object

Withdrawal facts; present only when the application is withdrawn.