PATCH
/
organizations
/
{organizationId}
/
loans
/
{repayLoanId}

Headers

Content-Type
string

application/vnd.repay-loan+json

Path Parameters

organizationId
string
required
repayLoanId
string
required

Body

application/vnd.repay-loan+json
amount
string

The amount to be repaid. Can be in part or in full

collateralPortfolioId
string

The account where the collateral is to be returned to if initiated by the borrower and repaid in full

Response

200
application/vnd.repay-loan+json
OK
amount
string
required

The amount of the loan

borrowerCounterpartyId
string
required

The counterparty id of the borrower

borrowerOrganizationId
string
required

The organization id of the borrower. Obfuscated for lender

createdBy
string
required

The id of the user that created the loan

currency
string
required

Currency code of the asset being lent

externalId
string
required

Unique identifier for externally originated loans, must be unique

lenderCounterpartyId
string
required

The counterparty id of the lender

lenderOrganizationId
string
required

The organization id of the lender. Obfuscated for borrower

loanId
string
required

Unique identifier of the loan

loanType
enum<string>
required

The type of the loan. See details

Available options:
agency-lending-parent-loan,
agency-lending-collateralised-child-loan,
agency-lending-uncollateralised-child-loan,
agency-lending-first-lien-child-loan,
bilateral-lending-title-transfer-collateralised-loan
mainCurrency
string
required

Currency code of the network being used to transfer the asset

status
enum<string>
required

The status of the loan. See details

Available options:
awaiting-approval,
awaiting-acceptance,
awaiting-collateral,
awaiting-interest-payment,
disbursing,
active,
repaying,
defaulting,
defaulted,
cancelled,
rejected,
errored,
repaid,
repaying-interest,
interest-repaid,
securing-collateral,
collateral-secured,
releasing-collateral,
collateral-released,
closed
annualPercentageRate
string

The interest for the loan in annual percentage rate (APR)

borrowerPortfolioId
string

The id of the account which is to be the destination of disbursed funds. Obfuscated for lender

createdAt
string

Timestamp in epoch milliseconds of the loan creation

debtRatio
string

The LTV of the loan

debtRatioStatus
enum<string>

The LTV status of the loan (healthy, margin-call, default)

debtRatioUpdatedAt
string

Timestamp in epoch milliseconds when the LTV was last updated

embedded
object

Additional data linked to the loan

extra
object

Additional data for the loan

interestRate
string

The interest rate for the loan in basis points (BPS)

lenderPortfolioId
string

The id of the account which is to be used for disbursing the loan to the borrower. Obfuscated for borrower

maturityDate
string

Timestamp in epoch milliseconds of the maturity date

startDate
string

Timestamp in epoch milliseconds the loan is meant to be disbursed and activated

terminatedAt
string

Timestamp in epoch milliseconds of the loan termination

unrealisedAmount
string

The amount of pending loan funds; can be positive and negative

updatedAt
string

Timestamp in epoch milliseconds of the most recent loan update