> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch payments for a QR code

> Returns a list of all payments received through a specific QR code.



## OpenAPI

````yaml /openapi/products.json get /payments/qr_codes/{id}/payments
openapi: 3.1.0
info:
  title: Razorpay Products API
  description: >-
    API specification for Razorpay Payment Links, Subscriptions, and QR Codes
    products.
  version: 1.0.0
  contact:
    name: Razorpay Support
    url: https://razorpay.com/support
servers:
  - url: https://api.razorpay.com/v1
    description: Razorpay Production API
security:
  - basicAuth: []
tags:
  - name: Payment Links
    description: >-
      Create and manage payment links to collect payments from customers without
      building a checkout flow.
  - name: Plans
    description: >-
      Create and manage plans that define the billing period and amount for
      subscriptions.
  - name: Subscriptions
    description: >-
      Create and manage recurring subscriptions for customers based on defined
      plans.
  - name: QR Codes
    description: Create and manage QR codes for accepting UPI payments in-store or online.
  - name: Invoices
    description: Create and manage invoices to bill customers for products and services.
paths:
  /payments/qr_codes/{id}/payments:
    get:
      tags:
        - QR Codes
      summary: Fetch payments for a QR code
      description: Returns a list of all payments received through a specific QR code.
      operationId: getQrCodePayments
      parameters:
        - name: id
          in: path
          required: true
          description: Unique identifier of the QR code.
          schema:
            type: string
            example: qr_EtjRHL7viz7RCz
        - name: count
          in: query
          required: false
          description: Number of payments to return. Default is 10, maximum is 100.
          schema:
            type: integer
            default: 10
            maximum: 100
        - name: skip
          in: query
          required: false
          description: Number of payments to skip. Used for pagination.
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: List of payments retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QrCodePaymentsResponse'
        '401':
          description: Unauthorized. Invalid or missing API credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: QR code not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    QrCodePaymentsResponse:
      type: object
      description: List of payments received for a QR code.
      properties:
        entity:
          type: string
          description: Entity type. Always `collection`.
          example: collection
        count:
          type: integer
          description: Number of payments returned.
          example: 1
        items:
          type: array
          description: List of payment objects.
          items:
            type: object
            properties:
              id:
                type: string
                example: pay_EtjRHrOCp0Uzxc
              entity:
                type: string
                example: payment
              amount:
                type: integer
                example: 100
              currency:
                type: string
                example: INR
              status:
                type: string
                example: captured
              method:
                type: string
                example: upi
    ErrorResponse:
      type: object
      description: Standard error response from the Razorpay API.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code.
              example: BAD_REQUEST_ERROR
            description:
              type: string
              description: Human-readable description of the error.
              example: The amount must be greater than 0.
            field:
              type: string
              description: The field that caused the error, if applicable.
              example: amount
              nullable: true
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Use your Razorpay Key ID as the username and Key Secret as the password.

````