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

# Create a QR Points

> Creat new QR. If the QR is created successfully, the operation returns a 200 status. If the reward points exceed 9,999,999, the operation returns a 406 status.



## OpenAPI

````yaml POST /qr
openapi: 3.0.1
info:
  title: StickyQR Public API
  description: StickyQR Public API
  license:
    name: MIT
  version: 1.0.1
servers:
  - url: https://app.stickyqr.com/api
security:
  - bearerAuth: []
tags:
  - name: Account
  - name: Customers
  - name: Rewards
  - name: QR
paths:
  /qr:
    post:
      tags:
        - QR
      summary: Create a QR
      description: Create a QR
      operationId: createAQr
      parameters:
        - name: x-lang
          in: header
          schema:
            type: string
            example: en
            default: en
          description: Language support
        - name: createQRImage
          in: query
          schema:
            type: string
            example: '1'
          description: If 1, generate QR code image
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                points:
                  type: number
                  description: >-
                    The number of reward points to be associated with the
                    generated QR code
                  example: 10
              required:
                - points
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  createdAt:
                    type: string
                    description: Timestamp of object creation in ISO 8601 format
                  updatedAt:
                    type: string
                    nullable: true
                    description: >-
                      Timestamp of the last update made to the object, in ISO
                      8601 format
                  code:
                    type: string
                    description: Unique identifier for the QR code
                  rewardPoints:
                    type: number
                    description: Number of reward points associated with the QR code
                  status:
                    type: string
                    description: Current status of the QR code
                  usedDate:
                    type: string
                    nullable: true
                    description: >-
                      Timestamp indicating when the QR code was used, in ISO
                      8601 format
                  qrURL:
                    type: string
                    description: URL link to access the QR code
                  qrImageURL:
                    type: string
                    description: URL link to the image of the QR code
              examples:
                Successful Response:
                  value:
                    createdAt: <string>
                    updatedAt: <string>
                    code: <string>
                    rewardPoints: 123
                    status: <string>
                    usedDate: <string>
                    qrURL: <string>
                    qrImageURL: <string>
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````