> ## Documentation Index
> Fetch the complete documentation index at: https://doc-test-my.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# QR Codes

> API Documentation for Razorpay Curlec QR Codes. Create, Close and Fetch QR Codes using APIs. Check the various use cases and code samples.

You can use Razorpay Curlec QR Codes to create QR Codes and share them with customers to accept digital payments. You can create and manage QR Codes using APIs or from the Dashboard.<br /><br />

Refer to the QR Code Flow and Integration Checklist before you begin integrating with the APIs for QR Codes.<br /><br />

<CardGroup cols={2}>
  <Card title="Create a Customer" href="/docs/api/customers/create">
    `POST` `/v1/customers`

    Creates a customer that you can optionally link when creating a Dynamic QR Code.
  </Card>

  <Card title="Create a QR Code" href="/docs/api/qr-codes/create">
    `POST` `/v1/payments/qr_codes`

    Creates a QR Code.
  </Card>

  <Card title="Close a QR Code" href="/docs/api/qr-codes/close">
    `POST` `/v1/payments/qr_codes/:id/close`

    Closes a QR Code.
  </Card>

  <Card title="Fetch All QR Codes" href="/docs/api/qr-codes/fetch-all">
    `GET` `/v1/payments/qr_codes?count=2`

    Retrieves details of all QR Codes.
  </Card>

  <Card title="Fetch a QR Code with ID" href="/docs/api/qr-codes/fetch-with-id">
    `GET` `/v1/payments/qr_codes/:id`

    Retrieves details of a specific QR Code using id.
  </Card>

  <Card title="Fetch QR Codes for a Customer ID" href="/docs/api/qr-codes/fetch-customer-id">
    `GET` `/v1/payments/qr_codes?customer_id=\{customer_id\}`

    Retrieves QR Codes generated for a Customer id.
  </Card>

  <Card title="Fetch QR Codes for a Payment ID" href="/docs/api/qr-codes/fetch-payment-id">
    `GET` `/v1/payments/qr_codes?payment_id=\{payment_id\}`

    Retrieves QR Codes by Payment id.
  </Card>

  <Card title="Fetch Payments for a QR Code" href="/docs/api/qr-codes/fetch-payments">
    `GET` `/v1/payments/qr_codes/:id/payments`

    Retrieves payments made on a QR Code.
  </Card>

  <Card title="Update a QR Code">
    `PATCH` `/v1/payments/qr_codes/:id/payments`

    Updates payments made on a QR Code.
  </Card>

  <Card title="Refund Payments" href="/docs/api/refunds/create-normal">
    `POST` `/v1/payments/:id/refund`

    Creates a refund for a payment.
  </Card>
</CardGroup>

## Related Guides
