> For the complete documentation index, see [llms.txt](https://docs.salework.net/salework-tai-lieu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.salework.net/salework-tai-lieu/he-thong-ho-tro/salework-open-api/gen-qr.md).

# Gen QR

<mark style="color:green;">`GET`</mark> <https://banking.salework.net/api/open/debt/v1/gen-qr>

**Request params**

<table><thead><tr><th width="230">Name</th><th width="128">Type</th><th></th></tr></thead><tbody><tr><td>merchantId</td><td>Long</td><td>Merchant Id selected from Merchant List</td></tr><tr><td>billRef</td><td>String</td><td></td></tr></tbody></table>

**Body**

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "data": {
        "vietQR": "xxx",
        "qrMessage": "V2SWXXX SLW123 xu ly boi SALEWORK BANKING",
        "errorCode": "000",
        "errorDesc": "SUCCESS",
        "vietQRImage": "xxx"
    },
    "version": "1.0"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
