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

# Show a QR Code on the Terminal

> Let your shoppers scan a QR code from the display of the payment terminal.

You can use the display of your payment terminal to show a QR code which the shopper can scan with their mobile device. The QR code can contain anything you like. For example, a URL to join your loyalty program or to download an app, a message with a link to a promotional offer, or an invitation to visit your webshop. You can also add a header and footer to explain what the QR code is for.

The terminal shows the QR code during the time you set in the request. If you do not set a time-out, the QR code continues to be shown until you send another request. For example, a payment request, or a request to [show the standby screen](https://adyen-preview.mintlify.site/point-of-sale/shopper-engagement/display-data/idle-display.md).

The following illustrations show a QR code with header and footer on a portrait, small portrait, and landscape display.

![](https://docs.adyen.com/images/5/0/2/4/5/50245763781e81f6f7a20902d4d617064e336c78-screen-enshowqrcodeportrait.png)

![](https://docs.adyen.com/images/0/0/9/5/7/00957586fc4d2e3261e9ed9779ae4a2bedd25e83-screen-enshowqrcodeportrait-small.png)

![](https://docs.adyen.com/images/f/2/7/5/e/f275e57c14c45b0a8c2c501692f18be0b0fbf8cc-screen-enshowqrcodelandscape.png)

## Make a display request for a QR code

1. If the QR code needs to contain more than just a URL, convert the content to a URL-encoded string. You'll need to specify the URL-encoded string in the display request, in the `OutputContent.OutputBarcode.BarcodeValue`.

   For example, if the QR code should have this content:

   ```bash theme={null}
   Visit www.adyen.com/pos-payments and:
   - Learn about the features we support
   - Choose from a range of terminals
   ```

   The resulting URL-encoded string will look like this:

   ```bash theme={null}
   Visit%20www.adyen.com%2Fpos-payments%20and%3A%0A-%20Learn%20about%20the%20features%20we%20support%0A-%20Choose%20from%20a%20range%20of%20terminals
   ```

   If the QR code needs to contain only a URL, for example `https://www.adyen.com/pos-payments`, there is no need to URL-encode that. You'll specify the URL in the display request as a plain text string.

2. Make a [Terminal API](https://adyen-preview.mintlify.site/point-of-sale/design-your-integration/terminal-api) display request, specifying:

   * The standard [`SaleToPOIRequest.MessageHeader` ](https://adyen-preview.mintlify.site/point-of-sale/design-your-integration/terminal-api#request-message-header)object, with `MessageClass` set to **Device** and `MessageCategory` set to **Display**.

     | Parameter | Required | Description |
     | - | - | - |
     | `ProtocolVersion` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **3.0** |
     | `MessageClass` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **Device** |
     | `MessageCategory` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **Display** |
     | `MessageType` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **Request** |
     | `ServiceID` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (`POIID`) being used. |
     | `SaleID` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Your unique ID for the POS system component to send this request from. |
     | `POIID` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The unique ID of the terminal to send this request to. Format: *\[device model]-\[serial number]*. The [DisplayRequest.DisplayOutput](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#request-DisplayOutput) array, with items representing the elements to show on the terminal display. This includes the [QR code](#qr) and optionally a [header and/or footer](#header-footer). |

     #### QR code:

     | Parameter | Description |
     | - | - |
     | `Device` | **CustomerDisplay** |
     | `InfoQualify` | **Display** |
     | `MinimumDisplayTime` | The number of seconds that the QR code screen is shown. If you omit this parameter, the terminal shows the QR code screen until you send another request, for example, a request to [show the standby screen](https://adyen-preview.mintlify.site/point-of-sale/shopper-engagement/display-data/idle-display.md). |
     | `ResponseRequiredFlag` | If not specified, defaults to **true**. The response then informs you whether this element was successfully shown. |
     | `OutputContent.OutputFormat` | **BarCode** |
     | `OutputContent.OutputBarcode.BarcodeType` | **QRCode** |
     | `OutputContent.OutputBarcode.BarcodeValue` | The content of the QR code, specified either as a plain text string, or as a URL encoded string. (See step 1.) |

     #### Header and footer (optional):

     The header and footer are both text array items with the same structure. If you specify one text array item, that will be interpreted as the header. If you specify a second text array item, that will be interpreted as the footer.

     | Parameter | Description |
     | - | - |
     | `Device` | **CustomerDisplay** |
     | `InfoQualify` | **Display** |
     | `ResponseRequiredFlag` | If not specified, defaults to **true**. The response then informs you whether this element was successfully shown. |
     | `OutputContent.OutputFormat` | **Text** |
     | `OutputContent.OutputText` | An array with a `Text` parameter containing your text to show above the QR code (header element) or below the QR code (footer element). |

   **QR code with header and footer**

   ```json theme={null}
   {
      "SaleToPOIRequest":{
         "MessageHeader":{
            "ProtocolVersion":"3.0",
            "MessageClass":"Device",
            "MessageCategory":"Display",
            "MessageType":"Request",
            "ServiceID":"043001",
            "SaleID":"POSSystemID12345",
            "POIID":"V400m-346403161"
         },
         "DisplayRequest":{
            "DisplayOutput":[
               {
                  "Device":"CustomerDisplay",
                  "InfoQualify":"Display",
                  "MinimumDisplayTime":60,
                  "OutputContent":{
                     "OutputFormat":"BarCode",
                     "OutputBarcode":{
                        "BarcodeType":"QRCode",
                        "BarcodeValue":"www.adyen.com/pos-payments"
                     }
                  }
               },
               {
                  "Device":"CustomerDisplay",
                  "InfoQualify":"Display",
                  "OutputContent":{
                     "OutputFormat":"Text",
                     "OutputText":[
                        {
                           "Text":"Join our loyalty program"
                        }
                     ]
                  }
               },
               {
                  "Device":"CustomerDisplay",
                  "InfoQualify":"Display",
                  "OutputContent":{
                     "OutputFormat":"Text",
                     "OutputText":[
                        {
                           "Text":"Thank you!"
                        }
                     ]
                  }
               }
            ]
         }
      }
   }
   ```

3. In the display response, check the [OutputResult](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#responses-200-OutputResult). This array indicates whether the elements were successfully shown. The first item in the array refers to the first item in the `DisplayOutput` array , and so on.

   **Display response**

   ```json theme={null}
   {
       "SaleToPOIResponse": {
           "DisplayResponse": {
               "OutputResult": [
                   {
                       "Device": "CustomerDisplay",
                       "InfoQualify": "Display",
                       "Response": {
                           "Result": "Success"
                       }
                   },
                   {
                       "Device": "CustomerDisplay",
                       "InfoQualify": "Display",
                       "Response": {
                           "Result": "Success"
                       }
                   },
                   {
                       "Device": "CustomerDisplay",
                       "InfoQualify": "Display",
                       "Response": {
                           "Result": "Success"
                       }
                   }
               ]
           },
           "MessageHeader": {...}
       }
   }
   ```

## See also

* [Show a virtual receipt on the display](https://adyen-preview.mintlify.site/point-of-sale/shopper-engagement/display-data/display-receipt.md)
* [Show an image on the display](https://adyen-preview.mintlify.site/point-of-sale/shopper-engagement/display-data/display-image.md)
* [Set the display to standby](https://adyen-preview.mintlify.site/point-of-sale/shopper-engagement/display-data/idle-display.md)


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