QR Code
Generates a QR code image for an existing car detail, optionally styled with a logo and caption text.
POST
/QrRequest
POST https://api.ototo.be/v1/Qr?subscription-key=YOUR_KEY
Content-Type: application/json
A JSON object with carDetailId plus any of the optional styling parameters below. Parameter order doesn't matter; invalid or omitted optional values fall back to their default.
| Parameter | Default | Description |
|---|---|---|
carDetailId | required | The car detail's unique identifier — see Car Details |
logoPath | Ototo_QR_Code | The logo shown inside the QR code itself |
qrCodeWidth | 500 | Width of the resulting image, in pixels |
qrCodeHeight | 750 | Height of the resulting image, in pixels |
captionLine1 | null | First line of caption text below the QR code |
captionLine2 | null | Second line of caption text. Only used if captionLine1 is also set. |
captionColor | 000000 | Caption text color, as a hex value without a leading # |
captionTextSize | 20 | Caption font size |
topLogoPath | null | Absolute path to a logo shown above the QR code |
topLogoWidth | 220 | Width the top logo is resized to. For best results, keep close to the logo's actual width. |
topLogoHeight | 110 | Height the top logo is resized to. For best results, keep close to the logo's actual height. |
Layout
qrCodeWidth×qrCodeHeightis the exact size of the resulting image. The QR code itself fills the shortest side, with a 20px margin.- The logo embedded inside the QR code covers about 35% of the code's area.
- A 20px gap separates the QR code from the top logo and from the caption.
- The top logo is resized to
topLogoWidth×topLogoHeightand centered horizontally. - The caption is centered horizontally at
captionTextSize. - All elements are vertically centered (and center-cropped if needed) within the final image dimensions.
Response
| Status | Meaning |
|---|---|
201 | A Location header containing the URI of the generated QR image |
401 | Subscription key missing, invalid, or inactive — see Authentication |
404 | carDetailId not found |
500 | Something went wrong on the server. Retry later; contact Ototo if it persists. |
The image is temporary
Generated QR images are only available for 24–48 hours. If you need it longer, download and store it yourself — Ototo doesn't keep it after that window.
Example
RequestPOST https://api.ototo.be/v1/Qr?subscription-key=YOUR_KEY
Content-Type: application/json
{
"carDetailId": "12345678-1234-1234-1234-123456789abc",
"captionLine1": "Scan for your car's tax overview",
"captionColor": "1A56DB"
}
Response — 201 Created
Location: https://api.ototo.be/v1/qr-images/{generated-id}.png
See also
- Public Link — the plain URL the QR code can point end users at
- Car Details