List credit lines

Query Parameters
  • page
    Type: integer
    min:  
    -9007199254740991
    max:  
    9007199254740991

    Page number

  • limit
    Type: integer
    min:  
    -9007199254740991
    max:  
    9007199254740991

    Items per page

  • search
    Type: string

    Search by customer ID or credit line ID

  • dateFrom
    Type: string Pattern: ^(\d{4}-\d{2}-\d{2}(T.*)?|(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4})$

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

  • dateTo
    Type: string Pattern: ^(\d{4}-\d{2}-\d{2}(T.*)?|(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4})$

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

  • orderBy
    Type: string

    Field used for sorting

  • orderDirection
    enum

    Sort direction

    values
    • asc
    • desc
  • status
    enum

    Filter by status

    values
    • active
    • suspended
    • closed
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 \
  --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",
      "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
}