> ## Documentation Index
> Fetch the complete documentation index at: https://developers.qshop.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# States

> **Host**: http://qshop.ng



## OpenAPI

````yaml get /locations/countries/{countryId}/states
openapi: 3.1.0
info:
  title: OpenAPI Specification
  version: 1.0.0
  description: >-
    QShop storefront API.  This API is used to build a storefront for a QShop
    store
  contact:
    name: QShop
    url: https://qshop.ng
    email: hello@qshop.ng
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: Production server
security: []
paths:
  /locations/countries/{countryId}/states:
    get:
      tags:
        - Locations
      summary: States
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: sort
          in: query
          required: false
          schema:
            type: string
        - name: countryId
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                        name:
                          type: string
                        geoId:
                          type: string
                        countryCode:
                          type: string
                        countryGeoId:
                          type: string
                        code:
                          type: string
                        longitude:
                          type: number
                        latitude:
                          type: number
                        points:
                          type: object
                          properties:
                            type:
                              type: string
                            coordinates:
                              type: array
                              items:
                                type: number
                            _id:
                              type: string
                          required:
                            - type
                            - coordinates
                            - _id
                        __v:
                          type: integer
                      required:
                        - _id
                        - name
                        - geoId
                        - countryCode
                        - countryGeoId
                        - code
                        - longitude
                        - latitude
                        - points
                        - __v
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````