| Field | Required | Description |
|---|---|---|
| api-token | Yes | Authentication token provided by VasyERP |
| countryCode | Yes | Country code for which states need to be retrieved (e.g., IN for India) |
curl --location '/api/v1/master/location/state?countryCode=IN' \
--header 'api-token: {{.in-api-token}}'{
"status": true,
"message": "State List",
"code": "200",
"response": [
{
"stateId": 1,
"stateCode": "35",
"stateName": "Andaman and Nicobar Islands",
"countryCode": "IN"
},
{
"stateId": 3,
"stateCode": "12",
"stateName": "Arunachal Pradesh",
"countryCode": "IN"
}
]
}