CFSP Integration API V1.0 17 Jun 2022
CFSP Integration API V1.0 17 Jun 2022
Title API Integration Document for Central Food grain Storage Portal (CFSP)
Description API Document explaining the web services for exchange of data between CFSP
(Central Server) and respective State storage application / portal.
Maintained Food & Public Distribution System, National Informatics Centre
by
Version Submission Change Record / Reason for Author(s) Status
Date change
1.0 11-Apr-2022 Initial 1. Anita Initial
2. AJK Jose
1.0 17-Jun-2022 Json Format change for Truck 1.Anita
Stack inflow and Truck Stack 2. AJK Jose
Outflow
Reviewers:
Reviewer(s) Version Review Remarks
AJK Jose (ajk.jose@nic.in) 1.0 Released in April 2022
Distribution:
Contents
1. Introduction .................................................................................................................................. 1
2. Scope ............................................................................................................................................. 2
2.1 APIs for Data Receiving& Sharing .............................................................................................. 2
2.1.1 Web Service for State storage application to push the profile of a given depot. ................ 3
2.1.1.1 Authorization Setup ...................................................................................................... 3
2.1.1.2 Input JSON Parameters ................................................................................................. 3
2.1.1.3 Request/Response JSON Parameters ........................................................................... 6
2.1.2 Web Service for State storage application to push the details of Stack Wise Stock Position
details. ........................................................................................................................................... 7
2.1.2.1 Authorization Setup ...................................................................................................... 7
2.1.2.2 Input JSON Parameter ................................................................................................... 7
2.1.2.3 Request/Response JSON Parameter ............................................................................ 9
2.1.3 Web Service for State application to push the inward details of Truck and inflow into
stack. ........................................................................................................................................... 10
2.1.3.1 Authorization Setup .................................................................................................... 11
2.1.3.2 Input JSON Parameter ................................................................................................. 11
2.1.3.3 Request/Response JSON Parameter .......................................................................... 12
2.1.4 Web Service for State application to push the outward details of Truck and outflow from
stack. ........................................................................................................................................... 14
2.1.4.1 Authorization Setup .................................................................................................... 14
2.1.4.2 Input JSON Parameter ................................................................................................. 14
2.1.4.3 Request/Response JSON Parameter .......................................................................... 16
2.1.5 Web Service for State application to push the details of Stack Gain/Loss Summary. ....... 17
2.1.5.1 Authorization Setup .................................................................................................... 18
2.1.5.2 Input JSON Parameter ................................................................................................. 18
2.1.5.3 Request/Response JSON Parameter .......................................................................... 19
2.1.6 Web Service for State application to push the details of Infestation details. ................... 20
2.1.6.1 Authorization Setup .................................................................................................... 21
2.1.6.2 Input JSON Parameter ................................................................................................. 21
2.1.6.3 Request/Response JSON Parameter .......................................................................... 23
2.1.7 Web Service for State application to push the details of Treatment details. .................... 24
2.1.7.1 Authorization Setup .................................................................................................... 24
Central Food grains Storage Portal Version 1.0
1. Introduction
Food Corporation of India (FCI) and the State Agencies, on behalf of Government of India, extend
price support for procurement of wheat, paddy and coarse grains. All the food grains conforming to
the prescribed specifications are bought by the public procurement agencies (including State
governments under DCP procurement) at the Minimum Support Price (MSP).
FCI has developed and implemented DOS application to cater to end-to-end automation of depot
operations, involving various depot operations activities, viz. storage, preservation, receipt and
issue of food grains etc. DOS application is already functional in its owned godowns and has also
been extended to the hired godowns.
Further, as per the vision of the DFPD, an ecosystem of online storage management applications is
being developed in all DCP States which will ensure implementation of certain standards related to
storage management. FCI intends to establish a central portal for online storage management in all
FCI (owned and hired) and State Government (owned and hired) across the country to ensure
adherence to SOP compliance for storage godowns.
Accordingly, with an objective of streamlining and bringing uniformity to the management practices
across the country, and analysis of the various storage Management Portals of the States was
recently conducted by FCI. Efforts have been made to identify the minimum storage specifications
(MSS) that must necessarily be captured by the State storage management portals, so as to ensure
uniformity and interoperability among them. The MSS are mentioned as under:
Govt. of India has desired that various storage management operations, quality parameters and
movement details shall be captured using different State portals. The operations are to be
standardized with respect to the minimum storage specifications.
Further, these State portals are to integrate with the central portal, in order to ensure that the
storage operations are carried out with complete transparency, efficiency and provide consolidated
information to ensure storage losses and deficiencies of food grains in the storage units. This will
facilitate enhanced decision-making and policy making.
Page 1 of 39
Central Food grains Storage Portal Version 1.0
2. Scope
These web services provide a common data format to the States using which State storage
application will push the data as per the parameter defined in the common data format.
There are 6 Transactional Web Services which facilitates State storage portals to send details
related to Minimum Storage specifications, to the central portal.
5. Stack – Gain – Loss Details of the loss or gain of the stack at the POST
time of stack getting killed.
There are 6 Web Services related to Masters provided by the central portal:
2.
Page 2 of 39
Central Food grains Storage Portal Version 1.0
For the sake of uniformity, relevant Masters like Commodity, State code, LGD District Code, LGD
Tehsil Master, LGD Village master, etc., shall be defined by CFSP Central Server. This master details
and the relevant ID’s/Code can be accessed from the website of CFSP using the GET method based
services. The website https://lgdirectory.gov.in may be used to download the latest LGD codes of
State, District, Sub-district, village etc.,
2.1.1 Web Service for State storage application to push the profile of a given depot.
DEPOT PROFILE
This CFSP API will consume the details of the depot profile pushed by State storage application to
central CFSP Server.
Frequency: As and when a depot is getting hired or dehired or created in the storage application
of the State.
Header Value
Client Id To be provided by CFSP team
Client Password To be provided by CFSP team
Page 3 of 39
Central Food grains Storage Portal Version 1.0
Page 4 of 39
Central Food grains Storage Portal Version 1.0
Page 5 of 39
Central Food grains Storage Portal Version 1.0
Request JSON:
[ {
"lgd_state_code":11,
"lgd_district_code":345,
"depot_status":1462,
"depot_code":"12345",
"depot_name":"Sohan",
"declared_capacity":125,
"ownership_group_type":1,
"owner_name":"Suresh",
"ownership_type":1,
"hired_by":3,
"hired_from":4,
"hired_from_date":"09-03-2022",
"hired_upto_date":"31-03-2022",
"depot_address":"Vasdhra enclave Delhi",
"latitude":"356",
"longitude":"123,
"pin_code":110035,
"electronic_weighbridge_count":2,
"electronic_weighbridge_make":"56,89,336,452",
"rail_sided":1,
"rail_siding_count":1,
"lgd_subdistrict_code":896,
"lgd_block_code":253,
"lgd_village_code":745,
"new_update":1,
"data_date":"14-03-2022",
"transaction_reference_id":“111234567891”
} ]
Response JSON:
{
"data": {
"client_id": "1",
"transaction_id": "111234567891",
Page 6 of 39
Central Food grains Storage Portal Version 1.0
"service_code": "DEPOTPROFILE",
"transaction_status": "SUCCESS",
"transaction_remarks": "Depot Profile Uploaded",
"data_landing_timestamp": "2022-03-31 09:47:37.895",
"acknowledgement_no": "310320221232125"
},
"message": "Depot Profile saved successfully.",
"status": 200
}
2.1.2 Web Service for State storage application to push the details of Stack Wise Stock
Position details.
STACK PROFILE
This CFSP API will consume the details of the stacks in a given depot. The stack details shall be
pushed by State storage application to central CFSP Server.
Frequency: Daily
Page 7 of 39
Central Food grains Storage Portal Version 1.0
(in Qtl.Kgs.)
8. stack_created_on character Date on which the stack was created. Y
(DD-MM-YYYY) varying(10)
9. stack_formed_on character Date on which the stack was fully formed. Y
(DD-MM-YYYY) varying(10)
10. stack_formation_quantity double Quantity of stocks stored in the fully Y
(in Qtl.Kgs.) formed stack as on stack formation date.
11. storage_type integer The type of storage within which the Y
stack exists.
1. Covered
2. CAP(Scientific)
3. CAP(Non-Scientific)
Wheat
Rice-Grade A(RRA)
Rice-Common(RRC)
Rice-Parboiled(PBR)
Fortified Rice Kernel(FRK)
Paddy
Page 8 of 39
Central Food grains Storage Portal Version 1.0
1. Issuable – Category A
2. Issuable – Category B
3. Issuable – Category C
4. Issuable – Category D
8. Non-Issuable – Feed 1
9. Non-Issuable – Feed 2
10. Non-Issuable – Feed 3
Request JSON:
[ {
"lgd_state_code":11,
"lgd_district_code":123,
"depot_status":1,
Page 9 of 39
Central Food grains Storage Portal Version 1.0
"depot_code":" 1235",
"depot_name":" Sohan",
"stack_number":" 58796",
"stack_capacity":526.52,
"stack_created_on":"05-03-2022",
"stack_formed_on":"06-03-2022",
"stack_formation_quantity":526.52,
"storage_type":2,
"commodity":3,
"marketing_season":"2022-2022",
"crop_year":"2022 ",
"crop_type_id":2,
"bag_type":3,
"categorization_type":1,
"opening_balance":1234.56,
"closing_balance":222.22,
"transaction_reference_id":“111234567891”,
"data_date":"14-03-2022",
"bag_count ":1
} ]
Response JSON:
{
"data": {
"client_id": "1",
"transaction_id": "111234567891",
"service_code": "STACKPROFILE",
"transaction_status": "SUCCESS",
"transaction_remarks": "Data Uploaded",
"data_landing_timestamp": "2022-03-31 09:47:37.895",
"acknowledgement_no": "310320221232125"
},
"message": "Stack Profile saved successfully.",
"status": 200
}
2.1.3 Web Service for State application to push the inward details of Truck and inflow into
stack.
INFLOW
Page 10 of 39
Central Food grains Storage Portal Version 1.0
This CFSP API will consume the details of Truck-wise information and the inflow into the stacks. The
data shall be pushed by State storage application to central CFSP Server.
HEADER
1. lgd_state_code integer LGD State Code of depot / godown in which Y
inflow has happened.
2. lgd_district_code integer LGD District code of depot / godown in Y
which inflow has happened.
3. depot_status integer Whether depot is active or inactive? Y
1. Active
2. Inactive
4. depot_code character Depot Code; as maintained in the State Y
varying(99) storage application.
5. depot_name character Depot name. Y
varying(99)
6. transaction_reference_id character Transaction reference number to be tagged Y
varying(12) with every record pushed by State
application (2 digit LGD state code (If LGD
state code is single digit, prefix with ‘0’ + 10
digit running number / random number).
Should not be a duplicate.
7. data_date character The date to which the data pertains to. Y
(DD-MM-YYYY) varying(10)
CHILD DATA
8. truck_number character Truck number. Y
varying(20)
9. truck_chit character Truck chit reference or similar reference, Y/O
varying(20) generated by the State application to be
provided.
10. net_quantity Double Net weight of the commodity received at the Y
(in Qtl.Kgs.) weigh bridge i.e. gross weight of the truck
minus (tare weight of the truck + tare weight
of the bags)
11. inflow_source Integer Source from which, the stock is received in Y
the stack/depot.
Page 11 of 39
Central Food grains Storage Portal Version 1.0
1. Procurement centre
2. Miller
3. Inter-depot transfer
4. Other
12. stack_number character Stack Number or Stack ID in which quantity Y
varying(99) is off-loaded.
13. inflow_quantity Double Net Quantity of the commodity deposited in Y
(in Qtl.Kgs.) the stack during every receipt into the
respective stack / stack under consideration.
14. commodity Integer The commodity which is stored in the stack. Y
The code of commodities can be obtained
through the master service of commodity.
The commodity codes are maintained at the
central server.
Wheat
Rice-Raw-Grade A (RRA)
Rice-Raw-Common (RRC)
Rice-Parboiled (PBR)
Fortified Rice (FR)
Paddy
Page 12 of 39
Central Food grains Storage Portal Version 1.0
Request JSON:
[
[
{
"lgd_state_code": 1,
"lgd_district_code": 1,
"depot_status": 1,
"depot_code": "12345",
"depot_name": "ABC",
"data_date": "30-06-2021",
"truckstackinflowdetails": [
{
"truck_number": "ABC",
"truck_chit": "ABC",
"net_quantity": 1,
"inflow_source": 1,
"stack_number": "ABC",
"inflow_quantity": 1,
"commodity": 1,
"marketing_season": 1,
"crop_year": "2021-2022",
"crop_type_id": 1,
"bag_type": 1,
"bag_count": 1
}
],
"transaction_reference_id": "013212554875"
}
]
Response JSON:
{
"data": {
"client_id": "1",
"transaction_id": "111234567",
"service_code": "TRUCK-STACK-INFLOW",
"transaction_status": "SUCCESS",
"transaction_remarks": "Truck Stack inflow uploaded",
Page 13 of 39
Central Food grains Storage Portal Version 1.0
2.1.4 Web Service for State application to push the outward details of Truck and outflow
from stack.
OUTFLOW
This CFSP API will consume the details of Truck-wise information and the outflow from the stacks.
The data shall be pushed by State storage application to central CFSP Server.
Header Value
Client Id Same client id which is specified by CFSP
Client Password Same client password which is specified by CFSP
HEADER
1. lgd_state_code integer LGD State Code of depot / godown in which Y
outflow has happened.
2. lgd_district_code integer LGD District code of depot / godown in Y
which outflow has happened.
3. depot_status integer Whether depot is active or inactive? Y
1. Active
2. Inactive
4. depot_code character Depot Code; as maintained in the State Y
varying(99) storage application.
5. depot_name character Depot name. Y
varying(99)
6. transaction_reference_id character Transaction reference number to be tagged Y
varying(12) with every record pushed by State
application (2 digit LGD state code (If LGD
Page 14 of 39
Central Food grains Storage Portal Version 1.0
CHILD DATA
8. truck_number character Truck Number. Y
varying(20)
9. truck_chit Character Truck chit reference or similar reference, Y
varying(20) generated by the State application to be
provided.
10. net_quantity double Net weight of the commodity Y
(in Qtl.Kgs.) issued/dispatched at the weigh bridge i.e.
gross weight of the truck minus (tare
weight of the truck + tare weight of the
bags)
11. outflow_destination Integer Destination to which, the stock is issued or Y/O
dispatched.
1. Fair Price Shop
2. Miller
3. Inter-depot transfer
4. Other
12. stack_number character Stack Number or Stack ID from which the Y
varying(99) stock is withdrawn.
13. outflow_quantity double Net quantity of the commodity withdrawn Y
(in Qtl.Kgs.) from the respective stack / stack in
consideration, during every issue/dispatch.
14. outflow_scheme Integer The scheme against which the outflow has Y
happened.
1. Central Scheme
2. State Scheme
3. Other
15. commodity Integer The commodity which is withdrawn from Y
the stack. The code of commodities can be
obtained through the master service of
commodity. The commodity codes are
maintained at the central server.
Wheat
Rice-Raw-Grade A (RRA)
Rice-Raw-Common (RRC)
Page 15 of 39
Central Food grains Storage Portal Version 1.0
Rice-Parboiled (PBR)
Fortified Rice (FR)
Paddy
Request JSON:
[
{
"lgd_state_code": 1,
"lgd_district_code": 1,
"depot_status": 1,
"depot_code": "12345",
"depot_name": "ABC",
"data_date": "30-06-2021",
"truckstackoutflowdetails": [
{
"truck_number": "ABC",
Page 16 of 39
Central Food grains Storage Portal Version 1.0
"truck_chit": "ABC",
"net_quantity": 1,
"outflow_destination": 1,
"stack_number": "ABC",
"outflow_quantity": 1,
"outflow_scheme": 1,
"commodity": 1,
"marketing_season": 1,
"crop_year": "2021-2022",
"crop_type_id": 1,
"bag_type": 1,
"bag_count": 1
}
],
"transaction_reference_id": "013212554875"
}
]
Response JSON:
{
"data": {
"client_id": "1",
"transaction_id": "111234567",
"service_code": "TRUCK-STACK-OUTFLOW",
"transaction_status": "SUCCESS",
"transaction_remarks": "Truck Stack outflow uploaded",
"data_landing_timestamp": "2022-02-08 09:47:37.895",
"acknowledgement_no": "080220221232125"
},
"message": "Truck Stack inflow data saved successfully.",
"status": 200
}
2.1.5 Web Service for State application to push the details of Stack Gain/Loss Summary.
This CFSP API pertains only to those stacks which get killed consequent to issues / dispatches. This
API will consume the details of Gain Loss details pushed by State storage application to central CFSP
Server.
Page 17 of 39
Central Food grains Storage Portal Version 1.0
Wheat
Rice-Raw-Grade A (RRA)
Rice-Raw-Common (RRC)
Rice-Parboiled (PBR)
Fortified Rice (FR)
Paddy
Page 18 of 39
Central Food grains Storage Portal Version 1.0
Request JSON:
[ {
Page 19 of 39
Central Food grains Storage Portal Version 1.0
"lgd_state_code":11,
"lgd_district_code":123,
"depot_status":1,
"depot_code":"123",
"depot_name":" Sohan",
"stack_number":"12563",
"stack_created_on":"03-03-2022",
"stack_formed_on":"04-03-2022",
"stack_formation_quantity":526.523,
"outflow_quantity":452.56,
"commodity":2,
"marketing_season":1,
"crop_year":"2022-2023",
"crop_type_id":2,
"bag_type":2,
"bag_count":35,
"stack_killed_on":"14-03-2022",
"loss_quantity":56.255,
"gain_quantity":859.57,
"transaction_reference_id":"111234567891",
"data_date":"14-03-2022"
}]
Response JSON:
{
"data": {
"client_id": "1",
"transaction_id": "111234567891",
"service_code": "GAIN-LOSS",
"transaction_status": "SUCCESS",
"transaction_remarks": "Gain Loss data uploaded",
"data_landing_timestamp": "2022-02-08 09:47:37.895",
"acknowledgement_no": "080220221232125"
},
"message": "Gain Loss data saved successfully.",
"status": 200
}
2.1.6 Web Service for State application to push the details of Infestation details.
Infestation
Page 20 of 39
Central Food grains Storage Portal Version 1.0
This CFSP API will consume the details of Infestation related data pushed by State storage
application to central CFSP Server.
This CFSP API will consume the details of Infestation related data pushed by State storage
application to central CFSP Server.
Page 21 of 39
Central Food grains Storage Portal Version 1.0
Wheat
Rice-Raw-Grade A (RRA)
Rice-Raw-Common (RRC)
Rice-Parboiled (PBR)
Fortified Rice (FR)
Paddy
1. Issuable – Category A
2. Issuable – Category B
3. Issuable – Category C
4. Issuable – Category D
8. Non-Issuable – Feed 1
9. Non-Issuable – Feed 2
10. Non-Issuable – Feed 3
Page 22 of 39
Central Food grains Storage Portal Version 1.0
Request JSON:
[ {
"lgd_state_code":11,
"lgd_district_code":123,
"depot_status":1,
"depot_code":"123",
"depot_name":" Sohan",
"stack_number":"12563",
"stack_created_on":"03-03-2022",
"stack_formed_on":"04-03-2022",
"stack_formation_quantity":526.523,
"quantity":326.523,
"commodity":2,
"marketing_season":1,
"crop_year":"2022-2023",
"crop_type_id":2,
"bag_type":2,
"bag_count":35,
"infestation_type":2,
"categorization_type":8,
"transaction_reference_id":“111234567891”,
"data_date":"14-03-2022"
} ]
Response JSON:
Page 23 of 39
Central Food grains Storage Portal Version 1.0
{
"data": {
"client_id": "1",
"transaction_id": "111234567891",
"service_code": "INFESTATION ",
"transaction_status": "SUCCESS",
"transaction_remarks": "Infestation data uploaded",
"data_landing_timestamp": "2022-02-08 09:47:37.895",
"acknowledgement_no": "080220221232125"
},
"message": "Infestation Details data saved successfully.",
"status": 200
}
2.1.7 Web Service for State application to push the details of Treatment details.
Treatment
This CFSP API will consume the details of Treatment related data pushed by State storage
application to central CFSP Server.
This CFSP API will consume the details of Treatment related data pushed by State storage
application to central CFSP Server.
Header Value
Client Id Same client id which is specified by CFSP
Client Password Same client password which is specified by CFSP
Page 24 of 39
Central Food grains Storage Portal Version 1.0
Wheat
Rice-Raw-Grade A (RRA)
Rice-Raw-Common (RRC)
Rice-Parboiled (PBR)
Fortified Rice (FR)
Paddy
Page 25 of 39
Central Food grains Storage Portal Version 1.0
6. HDPE
1. Issuable – Category A
2. Issuable – Category B
3. Issuable – Category C
4. Issuable – Category D
8. Non-Issuable – Feed 1
9. Non-Issuable – Feed 2
10. Non-Issuable – Feed 3
Page 26 of 39
Central Food grains Storage Portal Version 1.0
Note: <domain> may be kept as a variable, since domain name may change.
Request JSON:
[ {
"lgd_state_code":11,
"lgd_district_code":123,
"depot_status":1,
"depot_code":"123",
"depot_name":" Sohan",
"stack_number":"12563",
"stack_created_on":"03-03-2022",
"stack_formed_on":"04-03-2022",
"stack_formation_quantity":526.523,
"quantity":326.523,
"commodity":2,
"marketing_season":1,
"crop_year":"2022-2023",
"crop_type_id":2,
"bag_type":2,
"bag_count":35,
"treatment_type":"1",
"date_of_treatment":"13-03-2022",
"date_of_availability_for_issue":"14-03-2022",
"categorization_type":8,
"transaction_reference_id":“111234567891”,
"data_date":"14-03-2022"
} ]
Response JSON:
{
"data": {
"client_id": "1",
"transaction_id": "111234567891",
"service_code": "TREATMENT",
"transaction_status": "SUCCESS",
"transaction_remarks": "Treatment data uploaded",
"data_landing_timestamp": "2022-02-08 09:47:37.895",
"acknowledgement_no": "080220221232125"
},
"message": "Treatment Details data saved successfully.",
"status": 200
Page 27 of 39
Central Food grains Storage Portal Version 1.0
Page 28 of 39
Central Food grains Storage Portal Version 1.0
For the sake of uniformity, relevant Masters like State code, LGD District Code, depot type, LGD
Village master, LGD Tehsil Master etc as per CFSP Central Server. This master details and the
relevant ID’s/Code can be access through URL http://cfsp.nic.in/cfsp/swagger_cfsp
Master 1: Commodity
S. No. Parameter Data Type Description/Purpose Required
1 commodity_id Integer Y
Page 29 of 39
Central Food grains Storage Portal Version 1.0
1 bag_type_id Integer Y
Response JSON:
{
" bag_type_id ": "1",
" bag_type_name ": "SBT(580)"
“tare_weight”:”0.500”
},
{
" bag_type_id ": "2",
" bag_type_name ": "SBT"
“tare_weight”:”0.525”
}
1 lgd_state_code integer Y
2 lgd_state_name_en character Y
varying(99)
Page 30 of 39
Central Food grains Storage Portal Version 1.0
3 state_name_ll character O
varying(99)
4 Active integer Active or Inactive Y
0-Inactive
1-Active
Response JSON:
{
" lgd_state_code": "1",
" lgd_state_name_en": "Jammu & kashmir",
"state_name_ll": "Jammu & kashmir"
}
1 lgd_state_code integer Y
2 lgd_district_code integer Y
3 lgd_district_name_en character Y
varying(99)
4 district_name_ll character O
varying(99)
5 Active integer Active or Inactive Y
0-Inactive
1-Active
Page 31 of 39
Central Food grains Storage Portal Version 1.0
Response JSON:
{
" lgd_state_code": "1",
" lgd_district_code": "656",
" lgd_district_name_en": "TEST",
" district_name_ll": "TEST"
}
1 lgd_state_code integer Y
2 lgd_district_code integer Y
3 lgd_tehsil_code integer Y
4 lgd_tehsil_name_en character Y
varying(99)
5 tehsil_name_ll character O
varying(99)
6 active integer Active or Inactive Y
0-Inactive
1-Active
Response JSON:
{
" lgd_state_code": "1",
" lgd_district_code": "123",
" lgd_tehsil_code": "123",
" lgd_tehsil_name_en": "Jammu",
" tehsil_name_ll": "Jammu”
}
Page 32 of 39
Central Food grains Storage Portal Version 1.0
1 lgd_state_code integer Y
2 lgd_district_code integer Y
3 lgd_tehsil_code integer Y
4 lgd_village_code integer Y
5 lgd_village_name_en character Y
varying(99)
6 village_name_ll character O
varying(99)
7 Active integer Active or Inactive Y
0-Inactive
1-Active
Response JSON:
{
" lgd_state_code": "1",
" lgd_district_code": "123",
" lgd_tehsil_code": "123",
" lgd_village_code": "123",
" lgd_village_name_en": "Jammu”,
" village_name_ll": "Jammu”
}
Page 33 of 39
Central Food grains Storage Portal Version 1.0
NIC has developed a tool using Swagger, for testing the API's and token generation. For token
generation the following path is to be followed by the respective State:
Before Pushing data to CFSP server token has to be generated. For this, hit the login
service for authentication and this service will generate the token in response.
The generated token has to be passed in the header under Authorization tag.
For example:
Bearer
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhbml0YXNoYXJtYSIsImV4cCI6MTYzMjMwNDExOSwia
WF0IjoxNjMyMjg2MTE5fQ.LuMMmJ9dPHyIl8sPUOqoDu09ETCUI8T651gAebusGhV-
U_s8F6JxIFGQOQxj09tf4Y00EwlbOWvdugzLTNb-Yw
Page 34 of 39
Central Food grains Storage Portal Version 1.0
5. Sample URL’s
¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
Page 35 of 39