Two callers. The background farmer-data download (Setup.fetchAnnualActionPlanData2526, run by FetchIEDataWorker) sends farmer ids in chunks of 50 and stores each row as JSON in ie_flat_entity.annualActionPlanData2526 by IEID. The 2025-26 action plan screen (ActionPlanFragment2025To2026 -> EndorsementRepositoryImpl.fetchAAPDataset) fetches one farmer to pre-fill the form; an empty result gives a blank plan. Worker failures are logged to Crashlytics (a 401 also refreshes the session); screen failures show the error.
Headers
Header
Value
Notes
X-SESSIONID
<session token>
Passed explicitly as @Header from AndroidSessionManager.sessionId. AuthInterceptor still retries once with a fresh token on 401 or 400.
X-SESSIONID (worker path)
<session token>
SetupService.getAnnualActionPlanData2526 has no @Header; AuthInterceptor adds it.
Parameters
Param
In
Required
Example
Notes
datasetName
path
Yes
AAP2025_26
Dataset name in the path of commons-report-service /api/v1/datasets/name/{name}/execute.
version
query
Yes
1
Hard-coded in the @GET path.
format
query
Yes
json
Hard-coded in the @GET path.
params
query
Yes
IN_PARAM_IEID_LIST=100001,100002,100003
Dataset input parameters as KEY=value pairs joined with "--". IN_PARAM_IEID_LIST = comma-separated IE ids (iEOLTPId): up to 50 per call from the worker, a single id from the action plan screen.
Desi-seed / crop-season participation flags (PMDS, Kharif, Rabi, RDSS1, RDSS2, not participating) for 2024-25 and 2025-26.
id, kap_25_26_id
int, string
Row ids; kept in the JSON, not otherwise read.
Errors
Status
When
What the app does
401 / 400
Session token expired or rejected
AuthInterceptor refreshes the token and retries once; if the retry also fails, Worker: logged to Crashlytics and the chunk is skipped. Screen: Resource.error with the error body.
5xx
Dataset query failed on the server
Worker: logged to Crashlytics and the chunk is skipped. Screen: Resource.error with the error body.
network error
No connectivity or timeout
Worker: logged to Crashlytics and the chunk is skipped. Screen: Resource.error with the error body.