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

# Get Static QRCode

> Endpoint to retrieve the merchant's static QRIS code

<RequestExample>
  ```bash Request Example theme={null}
  curl --request GET 'https://api.mayar.id/hl/v2/qr-codes/static' \
   --header 'Authorization: Bearer Paste-Your-API-Key-Here'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "data": {
          "url": "https://media.mayar.id/images/resized/480/a1b2c3d4-e5f6-4789-a012-3456789abcde.png",
          "qrString": "00020101021126620014COM.GO-JEK.WWW01189360091300000000000000005802ID5909MAYAR6007JAKARTA6105121006304A1B2"
      }
  }
  ```

  ```json Response Example 500 theme={null}
  {
      "statusCode": 500,
      "messages": "Invalid data"
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/hl/v2/qr-codes/static
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.io/hl/v2/qr-codes/static
  ```
</CodeGroup>

## Authorization

<ResponseField name="Authorization" type="string" required>
  Example:

  `Authorization | Bearer Paste-Your-API-Key-Here`
</ResponseField>

## Response

Successful Response

### Main Structure (Root)

<ResponseField name="statusCode" type="integer">
  Status code returned by the API.
</ResponseField>

<ResponseField name="messages" type="string">
  Status message that describes the status code.
</ResponseField>

<ResponseField name="data" type="object">
  The static QRIS object.
</ResponseField>

### data Structure (Object)

<ResponseField name="data.url" type="string">
  Link to the merchant's static QRIS image file.
</ResponseField>

<ResponseField name="data.qrString" type="string">
  The merchant's raw static QRIS payload string used to generate the QR image. Can be decoded
  directly by standard QRIS readers or used to render the code without relying on the image URL.
</ResponseField>

## Errors

<ResponseField name="500" type="object">
  Returned when the merchant has no static QRIS configured: `{ "statusCode": 500, "messages": "Invalid data" }`.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.