Querying List Endpoints
Every eTIMS list endpoint (GET collections such as
/api/etims/item_classifications/) accepts a common set of query parameters to
select only the fields you need, filter, search, and paginate.
Use them instead of pulling whole collections and post-processing on the client.
The examples below use the item classifications list, but the same parameters apply to every list endpoint.
Base URLs — Development
https://api-dev.slade360edi.com/erp, Productionhttps://api.erp.slade360.co.ke. All examples requireAuthorization: Bearer <access_token>(see Start Using the eTIMS API).
Field selection (sparse fieldsets)
Pass a comma-separated fields parameter to return only those fields in
each result. This shrinks payloads and speeds up responses.
Code
Each result then contains only the requested fields:
Code
Notes:
-
fieldsis honoured onGETrequests only — it has no effect on writes. -
List the top-level field names, comma-separated, no spaces required.
-
Unknown field names are rejected with
400 Bad Request, and the error lists the allowed fields — so a typo fails fast instead of being silently ignored:Code -
Omit
fieldsto get the full representation.
Filtering
Filter by any model field using ?<field>=<value>. Text fields such as
classification_name match case-insensitively on partial values
(contains); most other fields match exactly.
Code
Search
Use ?search= to match a term across the endpoint's searchable fields. For item
classifications that is classification_name and classification_code — a
single term matches either:
Code
Pagination
List responses are paginated and wrapped in an envelope with count, next,
previous, page_size, current_page, total_pages, start_index,
end_index, and results.
| Parameter | Default | Notes |
|---|---|---|
page | 1 | Page number to fetch. |
page_size | 15 | Results per page. Capped at 50 — larger values are clamped down to 50, not honoured. |
Code
Why
page_sizeseems "not to work": values above 50 are silently clamped to 50 — you cannot pull more than 50 records in a single page. To find a specific record, filter or search (above) rather than paging through the whole collection. To pull an entire collection, page through it with?page=N&page_size=50untilnextisnull.
Combining parameters
All parameters compose. For example, fetch page 1 of egg-related classifications, returning only code and name, 50 at a time:
Code
Related
- Item Classification (KRA) — the classification codes and hierarchy.
- eTIMS API Reference — all endpoints with interactive “Try it”.

