1) Question: What is your salary ?
Answer : capture the answer, the value has to be a number like 450000
2) What is your company name ?
Answer : “Neokred”
Hit the api to get the companies matching the name neokred
curl -X 'GET' \
'[Link] \
-H 'accept: application/json'
Response
"data": [
{
"id": "U72900KA2019PTC130290",
"name": "NEOKRED TECHNOLOGIES PRIVATE LIMITED",
"status": "active",
"pincode": "560001"
}
]
3) Question: confirm the company from the list box
Answer: companyId as the selected "id": "U72900KA2019PTC130290",
API CALL to get the locality from the pincode
"pincode": "560001"
curl -X 'GET' \
'[Link] \
-H 'accept: application/json'
"data": [
{
"id": 91722,
"district": "Bangalore",
"city": "Bangalore",
"locality": "CMM Court Complex ",
"pincode": "560001",
"stateId": 29,
"state": "Karnataka" ,}}
4) Question : confirm the location form the list of locations
Answers : selectedId as pincodeId "id": 91722,
5) Thanks you for onboarding we will get back to you shortly
This is the end of the flow we need the users response to to be saved as
{
Salary: “123123”,
companyName:”Neokred”,
companyId: “U72900KA2019PTC130290”,
"pincode": "560001”,
"pincodeId": 91722,
}