lending
Cancel Loan Rerate
blockchain
clearloop
network
address-book
currencies
API Reference
orders
files
lending
- GETGet Loans
- POSTCreate Loan
- PATCHCalculate Loan LTV Dry Run
- PATCHAccept Loan Term Extension
- PATCHAccept Loan Interest Payment
- PATCHAccept Loan
- PATCHAccept Loan Rebalance
- PATCHAccept Loan Repayment
- PATCHAccept Loan Rerate
- PATCHAccept Loan Top Up
- PATCHApprove Loan
- PATCHCancel Loan Default
- PATCHCancel Loan Term Extension
- PATCHCancel Loan Interest Payment
- PATCHCancel Loan
- PATCHCancel Loan Rebalance
- PATCHCancel Loan Repayment
- PATCHCancel Loan Rerate
- PATCHCancel Loan Top Up
- PATCHConfirm External Disbursement
- PATCHConfirm External Interest Payment
- PATCHConfirm External Repayment
- PATCHConfirm External Top Up
- PATCHDefault Loan
- PATCHEstimate Loan Leverage Ratio
- PATCHEstimate Loan LTV
- PATCHExtend Loan Term
- GETGet Loan by ID
- PATCHPay Loan Interest
- PATCHRebalance Loan
- PATCHReject Loan
- PATCHRepay Loan
- PATCHRerate Loan
- PATCHSecure Collateral Loan
- PATCHTop Up Loan
reports
lending
Cancel Loan Rerate
Cancel the loan interest rerate request that is awaiting acceptance. This action can be carried out by the lender or the borrower.
PATCH
/
organizations
/
{organizationId}
/
loans
/
{cancelRerateLoanId}
curl --request PATCH \
--url https://api.copper.co/platform/organizations/{organizationId}/loans/{cancelRerateLoanId} \
--header 'Content-Type: application/vnd.cancel-loan-rerate+json' \
--data '{
"loanModificationId": "<string>"
}'
{
"amount": "<string>",
"borrowerCounterpartyId": "<string>",
"borrowerOrganizationId": "<string>",
"borrowerPortfolioId": "<string>",
"createdAt": "<string>",
"createdBy": "<string>",
"currency": "<string>",
"debtRatio": "<string>",
"debtRatioUpdatedAt": "<string>",
"defaultReason": "<string>",
"embedded": {
"childLoans": [
{}
],
"collaterals": [
{
"amount": "<string>",
"collateralId": "<string>",
"createdAt": "<string>",
"currency": "<string>",
"loanId": "<string>",
"mainCurrency": "<string>",
"portfolioId": "<string>",
"unrealisedAmount": "<string>",
"updatedAt": "<string>"
}
],
"counterparties": [
{
"backgroundImageId": "<string>",
"counterpartyDescription": "<string>",
"counterpartyId": "<string>",
"counterpartyName": "<string>",
"counterpartyType": "standard",
"extra": {
"exchangeId": "<string>"
},
"imageId": "<string>",
"networkTag": "<string>",
"priority": "<string>",
"tags": [
"featured"
]
}
],
"loanAllocations": [
{
"allocationType": "disburse",
"amount": "<string>",
"counterpartyOrderId": "<string>",
"createdAt": "<string>",
"createdBy": "<string>",
"currency": "<string>",
"externalFailureDescription": "<string>",
"extra": {
"acceptedAt": "<string>",
"acceptedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"confirmedAt": "<string>",
"confirmedBy": "<string>",
"effectiveDate": "<string>"
},
"fromPortfolioId": "<string>",
"loanAllocationId": "<string>",
"loanId": "<string>",
"mainCurrency": "<string>",
"orderId": "<string>",
"requestorCounterpartyId": "<string>",
"status": "new",
"terminatedAt": "<string>",
"toPortfolioId": "<string>",
"updatedAt": "<string>"
}
],
"loanInterest": {
"accruedInterest": "<string>",
"createdAt": "<string>",
"interestCurrency": "<string>",
"lastPaymentAt": "<string>",
"loanId": "<string>",
"loanInterestId": "<string>",
"realisedInterest": "<string>",
"unrealisedInterest": "<string>",
"updatedAt": "<string>"
},
"loanModifications": [
{
"createdAt": "<string>",
"createdBy": "<string>",
"extra": {
"acceptedAt": "<string>",
"acceptedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"currentInterestRate": "<string>",
"currentMaturityDate": "<string>",
"newInterestRate": "<string>",
"newMaturityDate": "<string>"
},
"loanId": "<string>",
"loanModificationId": "<string>",
"modificationType": "rerate",
"requestorCounterpartyId": "<string>",
"status": "awaiting-acceptance",
"updatedAt": "<string>"
}
]
},
"externalId": "<string>",
"extra": {
"acceptedAt": "<string>",
"acceptedBy": "<string>",
"approvedAt": "<string>",
"approvedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"defaultThreshold": "<string>",
"defaultedAt": "<string>",
"defaultedBy": "<string>",
"disbursedAt": "<string>",
"externalDisbursal": true,
"externalInterestPayment": true,
"initialLtv": "<string>",
"initiallyRequiredCollateralUsd": "<string>",
"lenderFeeShare": "<string>",
"lenderFeeSharePercentage": "<string>",
"marginCallThreshold": "<string>",
"rebalanceThreshold": "<string>",
"rejectedAt": "<string>",
"rejectedBy": "<string>",
"repaidAt": "<string>",
"repaidBy": "<string>",
"requiredCollaterals": [
{
"amount": "<string>",
"amountInUsd": "<string>",
"currency": "<string>",
"mainCurrency": "<string>"
}
]
},
"interestRate": "<string>",
"lenderCounterpartyId": "<string>",
"lenderOrganizationId": "<string>",
"lenderPortfolioId": "<string>",
"loanId": "<string>",
"loanType": "agency-lending-parent-loan",
"mainCurrency": "<string>",
"maturityDate": "<string>",
"startDate": "<string>",
"status": "awaiting-approval",
"terminatedAt": "<string>",
"unrealisedAmount": "<string>",
"updatedAt": "<string>"
}
Headers
application/vnd.cancel-loan-rerate+json
Body
application/vnd.cancel-loan-rerate+json
Response
200
application/vnd.cancel-loan-rerate+json
OK
The response is of type object
.
curl --request PATCH \
--url https://api.copper.co/platform/organizations/{organizationId}/loans/{cancelRerateLoanId} \
--header 'Content-Type: application/vnd.cancel-loan-rerate+json' \
--data '{
"loanModificationId": "<string>"
}'
{
"amount": "<string>",
"borrowerCounterpartyId": "<string>",
"borrowerOrganizationId": "<string>",
"borrowerPortfolioId": "<string>",
"createdAt": "<string>",
"createdBy": "<string>",
"currency": "<string>",
"debtRatio": "<string>",
"debtRatioUpdatedAt": "<string>",
"defaultReason": "<string>",
"embedded": {
"childLoans": [
{}
],
"collaterals": [
{
"amount": "<string>",
"collateralId": "<string>",
"createdAt": "<string>",
"currency": "<string>",
"loanId": "<string>",
"mainCurrency": "<string>",
"portfolioId": "<string>",
"unrealisedAmount": "<string>",
"updatedAt": "<string>"
}
],
"counterparties": [
{
"backgroundImageId": "<string>",
"counterpartyDescription": "<string>",
"counterpartyId": "<string>",
"counterpartyName": "<string>",
"counterpartyType": "standard",
"extra": {
"exchangeId": "<string>"
},
"imageId": "<string>",
"networkTag": "<string>",
"priority": "<string>",
"tags": [
"featured"
]
}
],
"loanAllocations": [
{
"allocationType": "disburse",
"amount": "<string>",
"counterpartyOrderId": "<string>",
"createdAt": "<string>",
"createdBy": "<string>",
"currency": "<string>",
"externalFailureDescription": "<string>",
"extra": {
"acceptedAt": "<string>",
"acceptedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"confirmedAt": "<string>",
"confirmedBy": "<string>",
"effectiveDate": "<string>"
},
"fromPortfolioId": "<string>",
"loanAllocationId": "<string>",
"loanId": "<string>",
"mainCurrency": "<string>",
"orderId": "<string>",
"requestorCounterpartyId": "<string>",
"status": "new",
"terminatedAt": "<string>",
"toPortfolioId": "<string>",
"updatedAt": "<string>"
}
],
"loanInterest": {
"accruedInterest": "<string>",
"createdAt": "<string>",
"interestCurrency": "<string>",
"lastPaymentAt": "<string>",
"loanId": "<string>",
"loanInterestId": "<string>",
"realisedInterest": "<string>",
"unrealisedInterest": "<string>",
"updatedAt": "<string>"
},
"loanModifications": [
{
"createdAt": "<string>",
"createdBy": "<string>",
"extra": {
"acceptedAt": "<string>",
"acceptedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"currentInterestRate": "<string>",
"currentMaturityDate": "<string>",
"newInterestRate": "<string>",
"newMaturityDate": "<string>"
},
"loanId": "<string>",
"loanModificationId": "<string>",
"modificationType": "rerate",
"requestorCounterpartyId": "<string>",
"status": "awaiting-acceptance",
"updatedAt": "<string>"
}
]
},
"externalId": "<string>",
"extra": {
"acceptedAt": "<string>",
"acceptedBy": "<string>",
"approvedAt": "<string>",
"approvedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"defaultThreshold": "<string>",
"defaultedAt": "<string>",
"defaultedBy": "<string>",
"disbursedAt": "<string>",
"externalDisbursal": true,
"externalInterestPayment": true,
"initialLtv": "<string>",
"initiallyRequiredCollateralUsd": "<string>",
"lenderFeeShare": "<string>",
"lenderFeeSharePercentage": "<string>",
"marginCallThreshold": "<string>",
"rebalanceThreshold": "<string>",
"rejectedAt": "<string>",
"rejectedBy": "<string>",
"repaidAt": "<string>",
"repaidBy": "<string>",
"requiredCollaterals": [
{
"amount": "<string>",
"amountInUsd": "<string>",
"currency": "<string>",
"mainCurrency": "<string>"
}
]
},
"interestRate": "<string>",
"lenderCounterpartyId": "<string>",
"lenderOrganizationId": "<string>",
"lenderPortfolioId": "<string>",
"loanId": "<string>",
"loanType": "agency-lending-parent-loan",
"mainCurrency": "<string>",
"maturityDate": "<string>",
"startDate": "<string>",
"status": "awaiting-approval",
"terminatedAt": "<string>",
"unrealisedAmount": "<string>",
"updatedAt": "<string>"
}