GEThttps://api.spirestock.com/api/v1/masters/states#
States with GST state code and the inter-state flag. Master lists return the full set (no pagination). POST creates, PUT /masters/states/{id} updates (a rename cascades to zones, towns, routes and cities). For India (the default country_id) POST needs a valid GST `state_code` and any `state` name must match that code (e.g. 08 is Rajasthan) — otherwise 400; other countries take a free-text name. There is no DELETE.
Access: API key read scope; staff need Master list (27) — list.
curl https://api.spirestock.com/api/v1/masters/states \
-H "X-API-Key: YOUR_API_KEY"{
"response_code": 200,
"data": [
{
"id": 14,
"organization_id": 6,
"country_id": 1,
"country_name": "India",
"state": "State A",
"state_code": "23",
"inter_state": 0,
"createdAt": "2021-10-07T10:21:57.000Z",
"updatedAt": "2022-03-26T13:16:39.000Z"
}
]
}