Fees

Get a student's fee account

Returns what one student owes, has paid and still has to pay.

GEThttps://api.klasstack.com/v1/students/{studentId}/fees

  • fees:read
  • Billable
  • Test key: example response

Authorizations

  • Authorizationstringheaderrequired

    Your secret key as a bearer token, in the form Bearer ks_live_sk_... or Bearer ks_test_sk_.... Keep it on your server. A test key gets the documented example and touches no school data.

Path Parameters

  • studentIdstringpathrequired

    Example: 305

Query Parameters

  • sessionIdintegerquery

    Example: 3

Response

200, application/json

  • dataobjectrequired

    Show child attributes
    • idnumberrequired

    • studentIdnumberrequired

    • studentCodestringrequired

    • studentNamestringrequired

    • academicSessionIdnumberrequired

    • totalDuenumberrequired

      Major units of the school currency (naira for NGN), not kobo.

    • totalPaidnumberrequired

      Major units of the school currency (naira for NGN), not kobo.

    • totalDiscountnumberrequired

      Major units of the school currency (naira for NGN), not kobo. Waivers and discounts.

    • carriedForwardnumberrequired

      Major units of the school currency (naira for NGN), not kobo.

    • balancenumberrequired

      Major units of the school currency (naira for NGN), not kobo. Outstanding on the account.

    • feeItemsobject[]required

      Show child attributes of each item
      • idnumberrequired

        The fee structure id.

      • namestringrequired

      • categorystringrequired

      • amountnumberrequired

        Major units of the school currency (naira for NGN), not kobo.

      • paidnumberrequired

        Major units of the school currency (naira for NGN), not kobo.

      • balancenumberrequired

        Major units of the school currency (naira for NGN), not kobo. What is still settleable on this item: the account-level waiver or discount is apportioned across the items, so the item balances never sum past the account balance.

      • isMandatorybooleanrequired

  • metaobjectrequired

    Show child attributes
    • request_idstringrequired

      Also returned in the X-Request-ID header.

    • paginationobject

      Show child attributes
      • limitintegerrequired

        Required range: x <= 100

      • has_morebooleanrequired

      • next_cursorstring or nullrequired

        Send this back as cursor for the next page. Opaque: never parse it.

Errors

What each code means, and what to do about it, is in the errors guide.

Webhook events

This call triggers no webhook event.