# QRIS API

> Converts a static QRIS payment payload into a dynamic one with an amount, optional fee and recalculated CRC-16.

Category: Finance & Crypto. Region: ID. 2 endpoints at `https://api.hoshime.com/v1/qris/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/qris
## GET /v1/qris/convert

Converts a static QRIS payload into a dynamic one with a transaction amount and an optional service fee, with a fresh CRC-16 check.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `qris` | string | yes | The static QRIS payload text, as a QR code reads it, such as 00020101021126... (e.g. 00020101021126180014ID.CO.QRIS.WWW5204599953033605802ID5910TOKO SAYUR6007JAKARTA630481F9) |
| `amount` | integer | yes | Transaction amount in rupiah, whole number. (e.g. 15000) |
| `feeType` | string | no | Service fee: none (default), fixed (rupiah) or percent. (one of none, fixed, percent; default none) |
| `feeValue` | string | no | Fee value: rupiah when feeType is fixed, percent (such as 0.7) when percent. Required unless feeType is none. |
| `withImage` | string | no | Accepted for compatibility; this service does not render QR images, so true is refused. (one of true, false; default false) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `amount` (integer (int64)), `dynamic` (string), `fee` (Fee | null), `fee.type` (string), `fee.value` (string), `inputType` (string), `merchant` (Merchant), `merchant.location` (string), `merchant.name` (string), `static` (string)

```bash
curl "https://api.hoshime.com/v1/qris/convert?qris=00020101021126180014ID.CO.QRIS.WWW5204599953033605802ID5910TOKO+SAYUR6007JAKARTA630481F9&amount=15000" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/qris/decode

Reads a QRIS payload: whether it is static or dynamic, the merchant name, city and category, the currency, country and amount, and whether its check value is valid.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `qris` | string | yes | A QRIS payload text, static or dynamic, as a QR code reads it. (e.g. 00020101021126180014ID.CO.QRIS.WWW5204599953033605802ID5910TOKO SAYUR6007JAKARTA630481F9) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `amount` (string), `category` (string), `country` (string), `crcValid` (boolean), `currency` (string), `kind` (string), `merchant` (Merchant), `merchant.location` (string), `merchant.name` (string)

```bash
curl "https://api.hoshime.com/v1/qris/decode?qris=00020101021126180014ID.CO.QRIS.WWW5204599953033605802ID5910TOKO+SAYUR6007JAKARTA630481F9" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
