Skip to main content
GET
/
api
/
v1
/
credits
/
line_items
List credit line items for an institution
curl --request GET \
  --url https://api.scholarlysoftware.com/api/v1/credits/line_items \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "credit_line_item",
      "attributes": {
        "transaction_date": "2023-12-25",
        "amount": 123,
        "description": "<string>",
        "status": "active",
        "custom_fields": {},
        "category": "adjustment",
        "external_id": "EXT-12345",
        "term": "<string>",
        "comment": "<string>",
        "created_at": "<string>",
        "updated_at": "<string>"
      },
      "relationships": {
        "profile": {
          "links": {
            "related": "<string>"
          },
          "meta": {},
          "data": {
            "type": "profile",
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          }
        },
        "source": {
          "links": {
            "related": "<string>"
          },
          "meta": {},
          "data": {
            "type": "<string>",
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token

Query Parameters

sort
string

Sort order (e.g., -transaction_date,amount)

filter[profile_id]
string

Filter by profile UUID

filter[category]
string

Filter by category

filter[status]
string

Filter by status

filter[custom_fields.*]
string

Filter by custom field values. Use the format filter[custom_fields.{field_name}] or filter[custom_fields.{field_name}.{operator}].

Available operators depend on field type:

  • String: eq, neq, in, nin, cont
  • Integer/Decimal: eq, neq, lt, lte, gt, gte, in, nin
  • Date/Moment: eq, neq, lt, lte, gt, gte
  • Academic Year: eq, neq, in, nin
  • Boolean: eq
  • Relationship: eq, in

Examples:

  • filter[custom_fields.department_code]=ENG (equality)
  • filter[custom_fields.employee_number.gte]=100 (greater than or equal)
  • filter[custom_fields.status.in]=active,pending (in list)
page[size]
integer

Number of items per page (max 100)

page[after]
string

Cursor for next page

page[before]
string

Cursor for previous page

Response

credit line items found

data
object[]
required