Get a customer ledger
Any signed in user. Returns ledger entries for one customer, newest first, with the balance. An unknown customer answers 404 before the read, and each row carries the staff name.
GET
/api/v1/customers/{customerId}/ledgerAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
customerIdstringrequiredThe customer id.
Query parameters
pageintegerPage number, 1 based. Defaults to 1.
page_sizeintegerRows per page, capped at 200. Defaults to 20.
Responses
200
A page of ledger entries
totalintegerrequiredmin -9007199254740991 · max 9007199254740991
pageintegerrequiredmin -9007199254740991 · max 9007199254740991
page_sizeintegerrequiredmin -9007199254740991 · max 9007199254740991
itemsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequiredcustomer_idstringrequiredtransaction_typestringrequiredamountstringrequiredbalance_afterstringrequiredreference_idstring | nullrequirednotesstring | nullrequiredcreated_bystringrequiredcreated_atstringrequiredcreated_by_namestring | nullrequired401
Not authenticated
detailstringrequired404
Customer not found
detailstringrequired