Generate a Dynamic QR Code

Generates a dynamic QR code. Authentication Key Type: SalesChannelApiKey

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Prerequisite

Before you can use this API you need to create a Static QR code via API or manual via the Hips Dashboard. That static QR will then become dynamic with help of this API.

Use this API to generate a dynamic QR code out of a static QR code.

Example:

{
    "dynamic": {"table":7,"waiter":2,"extra":"test"},
      "qr_code_px_size":500
}

This will give you a response that looks like this:

{
    "status": "online",
    "code_token": 1,
    "qr_start_webhook_url": "...",
    "allow_tip": true,
    "qr_data": "https://qr.hips.com/m/.../...",
    "qr_code_b64_png": "iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AQAAAADjreInAAAFc0lEQV.....",
    "mapped_to_sales_channel_id": "VRB6sFNiAWG5RUMBWTGFQtg8",
    "order_timeout_seconds": 120,
    "payment_timeout_seconds": 300,
    "customer_text_preset_type": "general",
    "asynchronous": false
}

To show your QR code for the payer in a web browser, you should embed the QR data in the <img> tag like this:

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AQAAAADjreInAAAFc0lEQV.....">

If you want to save the PNG QR code in a file. You should Base64 decode the content in [qr_code_b64_png] before writing the data to a .png file.

📘

How is the amount sent in?

The amount is transferred dynamic via the Create Order API. After the static or dynamic QR code is scanned by the payer; a web hook will be sent to you (web hook url is specified when you created the static QR code). In this web hook you will receive information about which QR code that was scanned an a session ID. Create an order and include that QR session ID to transfer the amount the QR payer shall pay. Create Order API

Path Params
string
required

Please specify the unique QR code token that identifies the QR code that you want to connect to the sales channel associated with used API keys.

Form Data
int32
100 to 5000
Defaults to 500

Size in pixels of the generated QR code PNG

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json