> ## 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.

# Get Store Coupons

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



## OpenAPI

````yaml get /shops/{shopId}/coupons/public
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:
  /shops/{shopId}/coupons/public:
    get:
      tags:
        - Coupons
      summary: Get Store Coupons
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: sort
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            usageRestriction:
                              type: object
                              properties:
                                roles:
                                  type: object
                                  properties:
                                    exclude:
                                      type: array
                                    accept:
                                      type: array
                                  required:
                                    - exclude
                                    - accept
                                users:
                                  type: object
                                  properties:
                                    condition:
                                      type: string
                                    contains:
                                      type: array
                                  required:
                                    - condition
                                    - contains
                                tags:
                                  type: object
                                  properties:
                                    condition:
                                      type: string
                                    contains:
                                      type: array
                                  required:
                                    - condition
                                    - contains
                                products:
                                  type: object
                                  properties:
                                    condition:
                                      type: string
                                    contains:
                                      type: array
                                  required:
                                    - condition
                                    - contains
                                categories:
                                  type: object
                                  properties:
                                    condition:
                                      type: string
                                    contains:
                                      type: array
                                  required:
                                    - condition
                                    - contains
                              required:
                                - roles
                                - users
                                - tags
                                - products
                                - categories
                            usageLimit:
                              type: object
                              properties:
                                useIfNumberOfOrders:
                                  type: object
                                  properties:
                                    count:
                                      type: 'null'
                                  required:
                                    - count
                                maxNumberOfUses:
                                  type: integer
                                canUseWithOtherCoupons:
                                  type: boolean
                                maxNumberOfUsesPerUser:
                                  type: 'null'
                              required:
                                - useIfNumberOfOrders
                                - maxNumberOfUses
                                - canUseWithOtherCoupons
                                - maxNumberOfUsesPerUser
                            _id:
                              type: string
                            shop:
                              type: string
                            code_type:
                              type: string
                            amount:
                              type: integer
                            min_order:
                              type: 'null'
                            max_order:
                              type: 'null'
                            starts:
                              type: string
                            expires:
                              type: 'null'
                            code:
                              type: string
                            description:
                              type: string
                            usageCount:
                              type: integer
                            applyOn:
                              type: string
                            applyAutomatically:
                              type: boolean
                            created:
                              type: string
                            isActive:
                              type: boolean
                            uuid:
                              type: string
                            mediaType:
                              type: string
                            url:
                              type: string
                            isPublic:
                              type: boolean
                            __v:
                              type: integer
                          required:
                            - usageRestriction
                            - usageLimit
                            - _id
                            - shop
                            - code_type
                            - amount
                            - min_order
                            - max_order
                            - starts
                            - expires
                            - code
                            - description
                            - usageCount
                            - applyOn
                            - applyAutomatically
                            - created
                            - isActive
                            - uuid
                            - mediaType
                            - url
                            - isPublic
                            - __v
                      next:
                        type: 'null'
                      prev:
                        type: 'null'
                      noOfPages:
                        type: integer
                      currentPage:
                        type: integer
                      totalRecord:
                        type: integer
                    required:
                      - data
                      - next
                      - prev
                      - noOfPages
                      - currentPage
                      - totalRecord
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````