Querying List Endpoints
Every eTIMS list endpoint (GET collections such as
/api/etims/item_classifications/) takes the same set of query parameters, so
you can pick out the fields you need, filter, search, and paginate. Use them
rather than pulling a whole collection and trimming it on the client.
The examples below use the item classifications list, but the parameters are the same on 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 and each result comes back with only
those fields. Payloads shrink and responses get faster.
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. Spaces are not required.
-
An unknown field name is rejected with
400 Bad Request, and the error lists the fields you can use, so a typo shows up straight away instead of being quietly dropped:Code -
Omit
fieldsto get the full representation.
Filtering
Filter on any model field with ?<field>=<value>. Text fields such as
classification_name match on partial values and ignore case (contains); most
other fields need an exact match.
Code
Search
Use ?search= to match a term across the endpoint's searchable fields. For item
classifications those are classification_name and classification_code, and 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 rather than honoured. |
Code
Why
page_sizelooks broken. Values above 50 are clamped to 50 without an error, so a single page will never hold more than 50 records. If you are after one specific record, filter or search for it (above) rather than paging through the whole collection. To pull an entire collection, page through it with?page=N&page_size=50untilnextisnull.
Combining parameters
The parameters compose. This fetches page 1 of the egg-related classifications, 50 at a time, with only the code and name in each result:
Code
Related
- Item Classification (KRA) lists the classification codes and the hierarchy.
- eTIMS API Reference has all the endpoints, each with an interactive "Try it".

