Saltar al contenido principal
POST
/
api
/
v1
/
loan-applications
/
{id}
/
reject
Rechazar la solicitud de préstamo
curl --request POST \
  --url https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "decisionAt": "<string>",
  "reason": "<string>"
}
'
import requests

url = "https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject"

payload = {
"decisionAt": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({decisionAt: '<string>', reason: '<string>'})
};

fetch('https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'decisionAt' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject"

payload := strings.NewReader("{\n \"decisionAt\": \"<string>\",\n \"reason\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"decisionAt\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://lender.sandbox.lerian.net/api/v1/loan-applications/{id}/reject")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"decisionAt\": \"<string>\",\n \"reason\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "assignedOfficerId": "<string>",
  "borrowerId": "<string>",
  "expectedDisbursementDate": "<string>",
  "id": "<string>",
  "loanProductVersionId": "<string>",
  "previewJurisdictionCode": "<string>",
  "previewProfileVersion": "<string>",
  "previewScheduleSnapshotId": "<string>",
  "requestedInstallments": 123,
  "requestedInterestRate": "<string>",
  "requestedPrincipalAmount": "<string>",
  "status": "<string>",
  "approvalDecision": {
    "approvedAmount": "<string>",
    "decidedBy": "<string>",
    "decisionAt": "<string>",
    "id": "<string>",
    "note": "<string>"
  },
  "disbursementEvent": {
    "disbursedAt": "<string>",
    "grossRequestedAmount": "<string>",
    "id": "<string>",
    "loanAccountId": "<string>",
    "netDeliveredAmount": "<string>",
    "profileVersion": "<string>"
  },
  "rejectionDecision": {
    "decidedBy": "<string>",
    "decisionAt": "<string>",
    "id": "<string>",
    "reason": "<string>"
  },
  "withdrawalDecision": {
    "decidedBy": "<string>",
    "decisionAt": "<string>",
    "id": "<string>",
    "reason": "<string>"
  }
}
{
"code": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

id
string<uuid>
requerido

Loan application identifier.

Ejemplo:

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

Cuerpo

application/json
decisionAt
string
requerido

Decision timestamp (RFC3339).

Ejemplo:

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

reason
string
requerido

Rejection reason.

Respuesta

OK

assignedOfficerId
string
requerido

Authenticated officer who created the application (request subject).

borrowerId
string
requerido

Borrower identifier.

expectedDisbursementDate
string
requerido

Expected disbursement date (RFC3339, UTC).

Ejemplo:

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

id
string
requerido

Loan application identifier (UUID).

Ejemplo:

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

loanProductVersionId
string
requerido

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

Ejemplo:

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

previewJurisdictionCode
string
requerido

ISO-2 jurisdiction code resolved at preview time.

Ejemplo:

"BR"

previewProfileVersion
string
requerido

Jurisdiction profile version resolved at preview time.

Ejemplo:

"1.0.0"

previewScheduleSnapshotId
string
requerido

Preview schedule snapshot this application was created from (UUID).

Ejemplo:

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

requestedInstallments
integer<int64>
requerido

Number of installments requested.

Ejemplo:

24

requestedInterestRate
string
requerido

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

Ejemplo:

"0.00000100"

requestedPrincipalAmount
string
requerido

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

Ejemplo:

"50000.00"

status
string
requerido

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

Ejemplo:

"pending_approval"

approvalDecision
object

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

disbursementEvent
object

Disbursement facts; present only when the application is disbursed.

rejectionDecision
object

Rejection facts; present only when the application is rejected.

withdrawalDecision
object

Withdrawal facts; present only when the application is withdrawn.