GET
/
organizations
/
{organizationId}
/
loans
curl --request GET \
  --url https://api.copper.co/platform/organizations/{organizationId}/loans
{
  "loans": [
    {
      "amount": "<string>",
      "borrowerCounterpartyId": "<string>",
      "borrowerOrganizationId": "<string>",
      "borrowerPortfolioId": "<string>",
      "createdAt": "<string>",
      "createdBy": "<string>",
      "currency": "<string>",
      "debtRatio": "<string>",
      "debtRatioUpdatedAt": "<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>"
            },
            "fromPortfolioId": "<string>",
            "loanAllocationId": "<string>",
            "loanId": "<string>",
            "mainCurrency": "<string>",
            "orderId": "<string>",
            "requestorCounterpartyId": "<string>",
            "status": "new",
            "terminatedAt": "<string>",
            "toPortfolioId": "<string>",
            "updatedAt": "<string>"
          }
        ]
      },
      "externalId": "<string>",
      "extra": {
        "acceptedAt": "<string>",
        "acceptedBy": "<string>",
        "approvedAt": "<string>",
        "approvedBy": "<string>",
        "cancelledAt": "<string>",
        "cancelledBy": "<string>",
        "defaultReason": "<string>",
        "defaultThreshold": "<string>",
        "defaultedAt": "<string>",
        "defaultedBy": "<string>",
        "disbursedAt": "<string>",
        "externalDisbursal": true,
        "externalInterestPayment": true,
        "initialLtv": "<string>",
        "initiallyRequiredCollateralUsd": "<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": "bilateral-lending-title-transfer-collateralised-loan",
      "mainCurrency": "<string>",
      "maturityDate": "<string>",
      "startDate": "<string>",
      "status": "awaiting-approval",
      "terminatedAt": "<string>",
      "unrealisedAmount": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Path Parameters

organizationId
string
required

Query Parameters

portfolioId
string

The account to filter by

loanIds
string[]
loanSide
enum<string>

The loan side to filter by. See details

Available options:
lend,
borrow
loanTypes
enum<string>[]
Available options:
bilateral-lending-title-transfer-collateralised-loan
statuses
enum<string>[]

The loan status to filter by. 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
isOpen
boolean
default:
false

Flag to filter out open loans

includeCollaterals
boolean
default:
false

Flag indicating if collaterals should be included in embedded

includeCounterparties
boolean
default:
false

Flag indicating if counterparties should be included in embedded

limit
string

The number of loans to include in the response

offset
string

The number of loans to skip in the response

sortBy
string
default:
LoanStatus by relevance

The field to sort by. Currently supported: updatedAt

sortDirection
enum<string>

The direction to sort by - must be used in conjunction with sortBy. See details

Available options:
ASC,
DESC

Response

200
application/json
OK
loans
object[]
required

The list of loans