List credit lines

​

The organization's credit lines, filterable by the customer's externalId. Applies to every credit line type — the type field tells each line's engine apart. Each line's applicationId is the application that opened it (the one carrying the preApprovalId of the main offer). Draws against a line are separate applications whose creditLineId is the line's id.

Query Parameters

  • Page number

  • Items per page

  • Search by customer ID or credit line ID

  • Filter from date (YYYY-MM-DD; legacy MM-DD-YYYY accepted)

  • Filter to date (YYYY-MM-DD; legacy MM-DD-YYYY accepted)

  • Field used for sorting

  • Sort direction

  • Filter by status

  • Filter by the partner-defined customer identifier — the way to resolve a customer's credit line without knowing its Slate customer ID

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/credit-lines
curl 'https://api-sandbox.tryslatehq.com/credit-lines?page=1&limit=50&search=abc&dateFrom=2025-01-30&dateTo=2025-01-30&orderBy=createdAt&externalId=cust_123' \
  --header 'x-api-key: YOUR_SECRET_TOKEN'
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "applicationId": "123e4567-e89b-12d3-a456-426614174000",
      "customerId": "123e4567-e89b-12d3-a456-426614174000",
      "organizationId": "123e4567-e89b-12d3-a456-426614174000",
      "facilityLimit": 1000000,
      "currency": "CAD",
      "type": "revolving",
      "status": "active",
      "anchorDate": "2025-01-01",
      "factorFeeRate": "0.030000",
      "minimumPaymentRate": "0.100000",
      "createdAt": "2025-01-01T00:00:00Z",
      "updatedAt": "2025-01-01T00:00:00Z",
      "currentPeriod": {
        "periodStart": "2025-01-01",
        "periodEnd": "2025-01-31",
        "graceExpiry": "2025-02-07"
      }
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "totalPages": 1
}