Endpoint
GET https://qr.cenloyalty.com/v1/create-qr-code/
Parameters
| Param | Type | Default | Description |
|---|---|---|---|
data | string | — | URL-encoded content. Required. |
size | WxH | 300x300 | e.g. 300x300, max 2048x2048 |
ecc | L/M/Q/H | M | Error correction level |
color | hex | 000000 | Dark module color (no #) |
bgcolor | hex | ffffff | Background color (no #) |
margin | int | 4 | Quiet zone in modules (0–10) |
format | png/svg | png | Output format |
Examples
Basic:
https://qr.cenloyalty.com/v1/create-qr-code/?data=https%3A%2F%2Fcenloyalty.com
Custom color, SVG, high EC:
https://qr.cenloyalty.com/v1/create-qr-code/?data=https%3A%2F%2Fcenloyalty.com&size=512x512&format=svg&color=1a6ef5&bgcolor=e8f0fe&ecc=H
HTML img tag:
<img src="https://qr.cenloyalty.com/v1/create-qr-code/?data=https%3A%2F%2Fcenloyalty.com&size=300x300" alt="QR code" width="300" height="300" />
Health check:
GET https://qr.cenloyalty.com/health
Response
Returns the image binary directly with Content-Type: image/png or image/svg+xml and Cache-Control: public, max-age=86400.
Rate limit
120 requests per minute per IP. Exceeding returns 429 Too Many Requests.