Search accounts
Searches accounts by number prefix or name substring. When `q` is empty, the endpoint returns the first matching active accounts. Useful for autocomplete fields.
GET
/v1/accounts/search Authorization
Authorization string header required API key in the format
ll_.... Pass as a Bearer token. Query Parameters
q string optional Search term (number prefix or name substring)
type string optional Optional account type:
"asset", "liability", "equity", "revenue" or "expense" Responses
200
Success
400
INVALID_INPUT Required fields are missing or values do not match the expected format.
GET
cURL /v1/accounts/search -cmd">curl --request -method">GET -punct">\
--url 'https://api.ledgerlou.de/v1/accounts/search' -punct">\
--header 'Authorization: Bearer ll_your_key' 200 Response
JSON {
"accounts": [
{
"number": "<string>",
"name": "<string>"
}
]
}