Loan Approvals
Decline Loan Request
Decline a loan request that still waits
POST
/
lending-external-securities-v2
/
api
/
markets
/
{marketId}
/
loan-requests
/
{ref}
/
decline
Decline Loan Request
curl --request POST \
--url https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline \
--header 'x-api-key: <api-key>'import requests
url = "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline', 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://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"request": {
"ref": "lrq_k3vx7q2mwd4h5pn6tr2a",
"kind": "OPEN",
"loanId": null,
"status": "DECLINED",
"marketAddress": "0x41b9c4d5dee70a5e3682094462e5065275e728a9",
"borrowerWallet": "0x7c1e3a5f2b9d4e6a8c0f1b3d5e7a9c2b4d6f8e1a",
"externalReference": "CASE-2026.11_042",
"amount": "25000",
"amountRaw": "25000000000",
"collateralAmount": "40",
"symbol": "USDC",
"decimals": 6,
"approvedAmount": null,
"approvedAmountRaw": null,
"validUntil": null,
"approver": null,
"approveTxHash": null,
"decidedAt": "2026-11-21T16:41:07.000Z",
"usedTxHash": null,
"usedAt": null,
"createdAt": "2026-11-21T16:02:11.000Z",
"updatedAt": "2026-11-21T16:41:07.000Z",
"requestedByThisInstance": false,
"viewerRole": {
"bank": true,
"borrower": false
},
"nextStep": "NONE"
},
"marketId": "cmwfk2h7x0003jw9w4q8b2n1c"
},
"error": null
}
Declines a request that is still
REQUESTED. Nothing is signed.
Who can call
The lender of record.Path Parameters
Body Parameters
None. Send an empty object.Response Fields
Show child attributes
Show child attributes
The loan request. See Get Loan Request for every field.
{
"success": true,
"data": {
"request": {
"ref": "lrq_k3vx7q2mwd4h5pn6tr2a",
"kind": "OPEN",
"loanId": null,
"status": "DECLINED",
"marketAddress": "0x41b9c4d5dee70a5e3682094462e5065275e728a9",
"borrowerWallet": "0x7c1e3a5f2b9d4e6a8c0f1b3d5e7a9c2b4d6f8e1a",
"externalReference": "CASE-2026.11_042",
"amount": "25000",
"amountRaw": "25000000000",
"collateralAmount": "40",
"symbol": "USDC",
"decimals": 6,
"approvedAmount": null,
"approvedAmountRaw": null,
"validUntil": null,
"approver": null,
"approveTxHash": null,
"decidedAt": "2026-11-21T16:41:07.000Z",
"usedTxHash": null,
"usedAt": null,
"createdAt": "2026-11-21T16:02:11.000Z",
"updatedAt": "2026-11-21T16:41:07.000Z",
"requestedByThisInstance": false,
"viewerRole": {
"bank": true,
"borrower": false
},
"nextStep": "NONE"
},
"marketId": "cmwfk2h7x0003jw9w4q8b2n1c"
},
"error": null
}
⌘I
Decline Loan Request
curl --request POST \
--url https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline \
--header 'x-api-key: <api-key>'import requests
url = "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline', 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://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/loan-requests/{ref}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"request": {
"ref": "lrq_k3vx7q2mwd4h5pn6tr2a",
"kind": "OPEN",
"loanId": null,
"status": "DECLINED",
"marketAddress": "0x41b9c4d5dee70a5e3682094462e5065275e728a9",
"borrowerWallet": "0x7c1e3a5f2b9d4e6a8c0f1b3d5e7a9c2b4d6f8e1a",
"externalReference": "CASE-2026.11_042",
"amount": "25000",
"amountRaw": "25000000000",
"collateralAmount": "40",
"symbol": "USDC",
"decimals": 6,
"approvedAmount": null,
"approvedAmountRaw": null,
"validUntil": null,
"approver": null,
"approveTxHash": null,
"decidedAt": "2026-11-21T16:41:07.000Z",
"usedTxHash": null,
"usedAt": null,
"createdAt": "2026-11-21T16:02:11.000Z",
"updatedAt": "2026-11-21T16:41:07.000Z",
"requestedByThisInstance": false,
"viewerRole": {
"bank": true,
"borrower": false
},
"nextStep": "NONE"
},
"marketId": "cmwfk2h7x0003jw9w4q8b2n1c"
},
"error": null
}
