Skip to content

GET /util/states

Description

This endpoint allows a user to get all states

Parameters

NameTypeDescriptionRequired
pagestringpageNo
limitstringlimitNo
idstringidyes

Response

json
{
  "status": 200,
  "data": [
    {
      "value": 1,
      "id_country": 3,
      "label": "Azerbaijan"
    },
    {
      "value": 2,
      "id_country": 3,
      "label": "Nargorni Karabakh"
    },
    {
      "value": 3,
      "id_country": 3,
      "label": "Nakhichevanskaya Region"
    },
    {
      "value": 4,
      "id_country": 4,
      "label": "Anguilla"
    }
  ],
  "hasNextPage": false,
  "currentPage": 1,
  "totalItems": 3,
  "totalPages": 1
}

Released under the MIT License.