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

# QR Codes

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

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
</div>

You can use Razorpay [QR Codes](/docs/payments/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](/docs/payments/qr-codes/create).<br /><br />

Refer to the [QR Code Flow](/docs/payments/qr-codes/how-it-works) and [Integration Checklist](/docs/payments/qr-codes/apis#integration-checklist) before you begin integrating with the APIs for QR Codes.<br /><br />

Fork the Razorpay Postman Public Workspace and try the QR Codes APIs using your [Test API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys).

<a href="https://www.postman.com/razorpaydev/workspace/f960539b-c56c-41e5-810b-63d2a89d447e/folder/12492020-90436eef-f17f-4bc1-9d13-b622a4270125" target="_blank">![Run in Postman](https://run.pstmn.io/button.svg)</a>

<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" href="/docs/api/qr-codes/update">
    `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

* [About QR Codes](/docs/payments/qr-codes)
