Parties

Khata (ledger)

The running credit ledger. Every entry carries the balance after it, so you never have to sum the history yourself.

GET/parties/ledger-entries/

The khata: the running credit ledger for a customer or supplier. Every entry carries `running_balance` — the balance after that entry — so you never have to sum the history yourself, and a page of entries is meaningful on its own.

Filters

partyparty_typeinclude_internalreference_typedate_fromdate_tocreated_byuser_idcashier_id

Combine any of these as query parameters. Also accepts cursor and page_size.

Fields on each result

id
uuid
party
integer
party_name
string
entry_no
integer
entry_date
datetime
description
string
debit
decimal
credit
decimal
running_balance
decimal
reference_type
string
reference_id
uuid
created_by
integer
created_by_name
string
created_at
datetime

Errors

401The access token is missing or has expired. Refresh and retry.
403Your role lacks permission, or X-Shop-Id is a shop you cannot access.
429Rate limited. Wait for Retry-After seconds.
Request
curl https://api.tajirpoint.com/api/v1/parties/ledger-entries/ \
  -H "Authorization: Bearer $TAJIR_TOKEN" \
  -H "X-Shop-Id: 8f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f"
Response · 200
{
  "next": "https://api.tajirpoint.com/api/v1/parties/ledger-entries/?cursor=cD0yMDI2LTA3LTExVDA5MTQyMlomcD00Mg",
  "previous": null,
  "results": [
    {
      "id": 42,
      "party": 1,
      "party_name": "Bilal Traders",
      "entry_no": 8,
      "entry_date": "2026-07-11T09:14:21Z",
      "description": "Sale INV-00042",
      "debit": "0.00",
      "credit": "2450.00",
      "running_balance": "1200.00",
      "reference_type": "reference type",
      "reference_id": "ext_9f3b6c5d",
      "created_by": 1,
      "created_by_name": "Main Store",
      "created_at": "2026-07-11T09:14:22Z"
    }
  ]
}
Response · error
{
  "error": {
    "code": 400,
    "message": "Validation failed.",
    "details": {
      "quantity": ["Must be greater than zero."]
    }
  }
}