Skip to content

Get QR code for a distributor

GET
/distributors/{id}/qr
curl --request GET \
--url 'https://app.surveyrock.com/api/v1/distributors/example/qr?format=svg&size=300&fgColor=%23000000&bgColor=%23FFFFFF' \
--header 'Authorization: Bearer <token>'

GET /api/v1/distributors/{id}/qr

Returns binary (SVG/PNG) or JSON (data_uri) based on format param.

Requirements: 10.1–10.4

id
required
string
format
string
default: png
Allowed values: svg png data_uri
size
integer
default: 300 >= 300
fgColor
string
default: #000000
bgColor
string
default: #FFFFFF

QR code image or data URI JSON

Distributor not found