sangraha
    sangraha
    • 🐶 Walk through Apidog
    • orders_data
      GET
    • login_user
      POST
    • user_registration
      POST
    • make_order
      POST
    • single_order_data
      GET
    • change_order_status
      POST
    • get_order_cart
      GET
    • get_all_societies
      GET
    • add_society_to_business
      POST
    • remove_society_from_business
      POST
    • subscription_status
      GET
    • get_indian_states
      GET
    • get_cities_by_state_id
      GET
    • get_society_member
      GET
    • get_all_society_members
      GET
    • society_register_member
      POST
    • society_edit_member
      POST
    • remove_society_member
      POST
    • society_suggestion
      POST

      get_cities_by_state_id

      GET
      /api/business/getcities/
      This endpoint retrieves a list of cities for a specific state with the state ID as a parameter in the URL.

      Request#

      Method: GET
      URL: api/business/getcities/22/100

      Response#

      Status: 200
      Content-Type: application/json
      Body:
        {
            "status": true,
            "message": "",
            "data": {
                "total": "",
                "citylist": [
                    {
                        "id": "",
                        "cityname": "",
                        "statename": ""
                    }
                ]
            }
        }
      
      The response contains a boolean status, an optional message, and a data object with the total count and a list of cities including their IDs, names, and associated state names.
      

      Request

      Authorization
      Add parameter in header
      Example:
      X-Token: ********************
      Query Params
      stateid
      string 
      required
      indian state id from API
      Example:
      22
      limit
      string 
      required
      row limit (optional)
      Example:
      50
      offset
      string 
      required
      row offset (optional)
      Example:
      0
      order
      string 
      required
      row order (descasc) (optional)
      Example:
      desc
      Header Params
      marchant-id
      string 
      required
      Example:
      BIZ12354124
      Body Params multipart/form-data
      object {0}

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET '/api/business/getcities/?stateid=22&limit=50&offset=0&order=desc' \
      --header 'marchant-id: BIZ12354124'

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Example
      {}
      Previous
      get_indian_states
      Next
      get_society_member
      Built with