Skip to main content
PATCH
/
organizations
/
{organizationId}
/
loans
/
{earlyTerminationLoanId}
Early Terminate Loan
curl --request PATCH \
  --url https://api.copper.co/platform/organizations/{organizationId}/loans/{earlyTerminationLoanId} \
  --header 'Content-Type: application/vnd.early-terminate-loan+json' \
  --data '{}'
{
  "loans": [
    {
      "amount": "<string>",
      "borrowerCounterpartyId": "<string>",
      "borrowerOrganizationId": "<string>",
      "createdBy": "<string>",
      "currency": "<string>",
      "externalId": "<string>",
      "lenderCounterpartyId": "<string>",
      "lenderOrganizationId": "<string>",
      "loanId": "<string>",
      "loanType": "agency-lending-parent-loan",
      "mainCurrency": "<string>",
      "status": "awaiting-approval",
      "borrowerPortfolioId": "<string>",
      "createdAt": "<string>",
      "debtRatio": "<string>",
      "debtRatioUpdatedAt": "<string>",
      "defaultReason": "<string>",
      "embedded": {
        "childLoans": "<array>",
        "collaterals": [
          {
            "amount": "<string>",
            "collateralId": "<string>",
            "createdAt": "<string>",
            "currency": "<string>",
            "loanId": "<string>",
            "mainCurrency": "<string>",
            "portfolioId": "<string>",
            "unrealisedAmount": "<string>",
            "updatedAt": "<string>"
          }
        ],
        "counterparties": [
          {
            "counterpartyId": "<string>",
            "counterpartyName": "<string>",
            "counterpartyType": "standard",
            "networkTag": "<string>",
            "backgroundImageId": "<string>",
            "counterpartyDescription": "<string>",
            "extra": {
              "exchangeId": "<string>"
            },
            "imageId": "<string>",
            "priority": "<string>",
            "tags": [
              "featured"
            ]
          }
        ],
        "loanAllocations": [
          {
            "allocationType": "disburse",
            "amount": "<string>",
            "createdAt": "<string>",
            "currency": "<string>",
            "extra": {
              "acceptedAt": "<string>",
              "acceptedBy": "<string>",
              "cancelledAt": "<string>",
              "cancelledBy": "<string>",
              "confirmedAt": "<string>",
              "confirmedBy": "<string>",
              "effectiveDate": "<string>"
            },
            "loanAllocationId": "<string>",
            "loanId": "<string>",
            "mainCurrency": "<string>",
            "status": "new",
            "counterpartyOrderId": "<string>",
            "createdBy": "<string>",
            "externalFailureDescription": "<string>",
            "fromPortfolioId": "<string>",
            "orderId": "<string>",
            "requestorCounterpartyId": "<string>",
            "terminatedAt": "<string>",
            "toPortfolioId": "<string>",
            "updatedAt": "<string>"
          }
        ],
        "loanInterest": {
          "accruedInterest": "<string>",
          "createdAt": "<string>",
          "interestCurrency": "<string>",
          "loanId": "<string>",
          "loanInterestId": "<string>",
          "lastPaymentAt": "<string>",
          "realisedInterest": "<string>",
          "unrealisedInterest": "<string>",
          "updatedAt": "<string>"
        },
        "loanModifications": [
          {
            "createdAt": "<string>",
            "extra": {
              "acceptedAt": "<string>",
              "acceptedBy": "<string>",
              "cancelledAt": "<string>",
              "cancelledBy": "<string>",
              "currentInterestRate": "<string>",
              "currentMaturityDate": "<string>",
              "newInterestRate": "<string>",
              "newMaturityDate": "<string>"
            },
            "loanId": "<string>",
            "loanModificationId": "<string>",
            "modificationType": "rerate",
            "status": "awaiting-acceptance",
            "createdBy": "<string>",
            "requestorCounterpartyId": "<string>",
            "updatedAt": "<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>",
            "currency": "<string>",
            "mainCurrency": "<string>",
            "amountInUsd": "<string>"
          }
        ]
      },
      "interestRate": "<string>",
      "lenderPortfolioId": "<string>",
      "maturityDate": "<string>",
      "originalLoanAmount": "<string>",
      "originalLoanValue": "<string>",
      "startDate": "<string>",
      "terminatedAt": "<string>",
      "unrealisedAmount": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Headers

Content-Type
string

application/vnd.early-terminate-loan+json

Path Parameters

organizationId
string
required
earlyTerminationLoanId
string
required

Body

application/vnd.early-terminate-loan+json

The body is of type object.

Response

OK

loans
object[]
required

The list of loans