Generate a QR code from text, a URL, or another compact value. PNG is the default response. SVG is available when you need a vector result, and base64 returns a PNG data URI inside the normal JSON envelope.In the Playground, select png or svg to receive an image response, or select base64 to inspect the JSON data-URI response. Generated artifacts are real and can consume Development-project credits.
Live Testing Guide: Before using Try it, create a Development project, then enter its Client ID and Client Secret. Configure the relevant provider for that project before sending the request.
API endpoint
POST
https://avraapi.com/api/v1/utilities/qr/generate
Request fields
Field
Required
Rules
data
Yes
Text to encode; 1–4,096 characters. URLs and vCards are supported as ordinary text values.
format
No
png (default), svg, or base64. PNG and SVG return media; base64 returns JSON.
size
No
Output size from 50 to 2,000 pixels; default 300.
margin
No
Quiet-zone margin from 0 to 20 modules; default 2.
foreground_color
No
Six-digit hex colour, with or without #; default black (000000).
background_color
No
Six-digit hex colour, with or without #; default white (ffffff).
logo_url
No
Publicly accessible HTTP or HTTPS image URL, up to 2,048 characters. A logo is applied to PNG and Base64 output; SVG does not include it.
logo_size_percent
No
Centred-logo width from 5% to 40% of the QR width; default 20.
privacy_mode
No
Boolean request-level privacy setting. Use the shared X-Privacy-Mode: 1 header when you need the platform-wide privacy guarantee.
When logo_url is supplied, AvraAPI fetches the image while producing the code. Use a public image you control; the logo must be reachable, use HTTP or HTTPS, and stay within the 512 KB logo limit. The QR error-correction level is raised automatically so the centred logo remains scannable.
For png, the successful response body is the PNG itself with Content-Type: image/png. For svg, it is SVG media with Content-Type: image/svg+xml. Both include Content-Length, Cache-Control: no-store, Content-Disposition: inline, and X-APIX-Request-ID response headers.There is no JSON success envelope for those image formats. Save the binary response or pass it directly to your own image pipeline; do not parse it as JSON.
Base64 JSON response
Use format: "base64" only when a JSON data URI suits your application. It is a PNG data URI, not raw Base64 bytes.
QR generation cannot process the supplied value, colour, or logo URL. An unreachable, unsupported, or oversized logo can produce this outcome.
Correct the value or use a reachable public image, then submit a new request.
401
unauthorized
Credentials are missing, invalid, inactive, or do not match X-ENV.
Check your backend credential configuration.
402
insufficient_funds
The selected QR Generator integration requires credits that are unavailable.
Check the project balance and service configuration.
422
validation_failed
A field is missing or outside its documented type, size, colour, URL, or range rules.
Correct the body using the field details in the response.
422
provider_selection_failed
No active QR Generator integration can be selected for the project environment.
Enable or configure the QR Generator integration.
429
rate_limit_exceeded
The configured request limit was reached.
Respect Retry-After when present.
500
internal_error
The generator could not complete unexpectedly.
Retain the request ID and retry only when your workflow permits it.
503
project_paused
The project is paused.
Reactivate the project before retrying.
See the REST API guide for shared credentials, privacy, and response-handling rules.
Playground resources
The generated reference below lists this endpoint’s API standard details: request fields, authorizations, and response schema. The complete integration guide, request and response examples, and endpoint-specific error handling are above.
Authorizations
X-API-KEY
string
header
required
Your Development project's Client ID. Enter your own value in the Documentation Playground.
X-API-SECRET
string
header
required
Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.
Headers
X-ENV
enum<string>
default:development
Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.
Available options:
dev,
development
Accept
string
Requests a JSON response where the selected operation supports JSON.
Example:
"application/json"
X-Privacy-Mode
boolean
default:false
Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.
Example:
true
Body
application/json
data
string
required
Text, URL, vCard, or other data to encode.
Required string length: 1 - 4096
format
enum<string>
default:png
Available options:
png,
svg,
base64
size
integer
default:300
Output size in pixels.
Required range: 50 <= x <= 2000
margin
integer
default:2
Quiet-zone margin in modules.
Required range: 0 <= x <= 20
foreground_color
string
default:000000
Pattern: ^#?[0-9a-fA-F]{6}$
background_color
string
default:ffffff
Pattern: ^#?[0-9a-fA-F]{6}$
logo_url
string<uri> | null
A publicly accessible HTTP or HTTPS image. Used for PNG and Base64 output only.
Maximum string length: 2048
logo_size_percent
integer
default:20
Width of the centred logo as a percentage of the QR width.
Required range: 5 <= x <= 40
privacy_mode
boolean
Optional request-level privacy setting. X-Privacy-Mode is the universal header override.
Response
QR output in the requested format.
The response is of type file.
Last modified on October 1, 2026
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"AvraAPI","description":"Official AvraAPI documentation for backend SDKs, microservice APIs, and Universal Payment Gateway integrations.","colors":{"primary":"#0450ff","light":"#3b82f6","dark":"#3b82f6"},"logo":{"light":"https://mintcdn.com/avraapi/m_1aZj30iaDgR5ok/logo/light.png?fit=max\u0026auto=format\u0026n=m_1aZj30iaDgR5ok\u0026q=85\u0026s=1e1ee08fd48f0cd836a53ca3afbcac7c","dark":"https://mintcdn.com/avraapi/m_1aZj30iaDgR5ok/logo/dark.svg?fit=max\u0026auto=format\u0026n=m_1aZj30iaDgR5ok\u0026q=85\u0026s=99972ab69fe3ea2a8c60fa0292dca4de"},"favicon":"https://mintcdn.com/avraapi/CI9RHnUBtfjY8Z3E/favicon.ico?fit=max\u0026auto=format\u0026n=CI9RHnUBtfjY8Z3E\u0026q=85\u0026s=06fc4ebdc219a34f50b1f571702dc728","api":{"playground":{"display":"interactive","proxy":false,"credentials":false},"examples":{"defaults":"required","languages":["curl","javascript","php"],"prefill":true}},"search":{"prompt":"Search AvraAPI documentation..."},"seo":{"metatags":{"canonical":"https://docs.avraapi.com","robots":"index, follow","googlebot":"index, follow","og:site_name":"AvraAPI","og:locale":"en_US","twitter:card":"summary_large_image","theme-color":"#0450ff"},"organization":{"id":"https://avraapi.com/#organization","name":"AvraAPI","legalName":"Fidex Developers (Pvt) Ltd","url":"https://avraapi.com","logo":"https://docs.avraapi.com/logo/light.png"},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"avraapi","hasAudioNarration":false,"actualSubdomain":"avraapi","customDomains":["docs.avraapi.com"],"gitSource":{"type":"github","owner":"avraapi","repo":"apix","deployBranch":"feature/universal_payment_gateway","contentDirectory":"docs/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6abefef58bbeefc99d396eb1","clientVersion":"0.0.4277","searchFilterCounts":[{"language":"default","tag":"SDK Documentation","count":25},{"language":"default","tag":"Advanced Services","count":23},{"language":"default","tag":"Universal Payment Gateway","count":18},{"language":"default","tag":"REST API Reference","count":16},{"language":"default","tag":"Information \u0026 Guides","count":13},{"language":"default","tag":"Gateway-wise Functions","count":9},{"language":"default","tag":"Laravel SDK (v1.2.0)","count":8},{"language":"default","tag":"Node.js SDK (v1.2.0)","count":8},{"language":"default","tag":"PHP SDK (v1.5.2)","count":8},{"language":"default","tag":"Getting Started","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"info@avraapi.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"images/payment-elements/playground.css","href":"/_mintlify/custom/avraapi/c9c507745cea4af5/images/payment-elements/playground.css"}]}
{"page":{"pagePath":"api-reference/utilities/qr-generate","slug":"/api-reference/utilities/qr-generate","pageMetadata":{"title":"Generate a QR code","description":"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/qr/generate","playground":"interactive","href":"/api-reference/utilities/qr-generate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Generate a QR code from text, a URL, or another compact value. PNG is the default response. SVG is available when you need a vector result, and `,_jsx(_components.code,{children:`base64`}),` returns a PNG data URI inside the normal JSON envelope.`]}),`\n`,_jsxs(_components.p,{children:[`In the Playground, select `,_jsx(_components.code,{children:`png`}),` or `,_jsx(_components.code,{children:`svg`}),` to receive an image response, or select `,_jsx(_components.code,{children:`base64`}),` to inspect the JSON data-URI response. Generated artifacts are real and can consume Development-project credits.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Live Testing Guide:`}),` Before using `,_jsx(_components.strong,{children:`Try it`}),`, create a Development project, then enter its `,_jsx(_components.strong,{children:`Client ID`}),` and `,_jsx(_components.strong,{children:`Client Secret`}),`. Configure the relevant provider for that project before sending the request.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`api-endpoint`,children:`API endpoint`}),`\n`,_jsx(CodeBlock,{filename:`POST`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://avraapi.com/api/v1/utilities/qr/generate`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-fields`,children:`Request fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Rules`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Text to encode; 1–4,096 characters. URLs and vCards are supported as ordinary text values.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`format`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`png`}),` (default), `,_jsx(_components.code,{children:`svg`}),`, or `,_jsx(_components.code,{children:`base64`}),`. PNG and SVG return media; `,_jsx(_components.code,{children:`base64`}),` returns JSON.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`size`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Output size from 50 to 2,000 pixels; default `,_jsx(_components.code,{children:`300`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`margin`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Quiet-zone margin from 0 to 20 modules; default `,_jsx(_components.code,{children:`2`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`foreground_color`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Six-digit hex colour, with or without `,_jsx(_components.code,{children:`#`}),`; default black (`,_jsx(_components.code,{children:`000000`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`background_color`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Six-digit hex colour, with or without `,_jsx(_components.code,{children:`#`}),`; default white (`,_jsx(_components.code,{children:`ffffff`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`logo_url`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Publicly accessible HTTP or HTTPS image URL, up to 2,048 characters. A logo is applied to PNG and Base64 output; SVG does not include it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`logo_size_percent`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Centred-logo width from 5% to 40% of the QR width; default `,_jsx(_components.code,{children:`20`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`privacy_mode`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Boolean request-level privacy setting. Use the shared `,_jsx(_components.code,{children:`X-Privacy-Mode: 1`}),` header when you need the platform-wide privacy guarantee.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`logo_url`}),` is supplied, AvraAPI fetches the image while producing the code. Use a public image you control; the logo must be reachable, use HTTP or HTTPS, and stay within the 512 KB logo limit. The QR error-correction level is raised automatically so the centred logo remains scannable.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-example`,children:`Request example`}),`\n`,_jsx(CodeBlock,{filename:`curl`,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://avraapi.com/api/v1/utilities/qr/generate\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: YOUR_PROJECT_CLIENT_ID\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-SECRET: YOUR_PROJECT_CLIENT_SECRET\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-ENV: development\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept: image/png\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"data\": \"https://example.com/receipt/ORDER-2026-001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\": \"png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\": 400,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"logo_url\": \"https://example.com/brand-mark.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"logo_size_percent\": 20`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` order-qr.png`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`media-response`,children:`Media response`}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`png`}),`, the successful response body is the PNG itself with `,_jsx(_components.code,{children:`Content-Type: image/png`}),`. For `,_jsx(_components.code,{children:`svg`}),`, it is SVG media with `,_jsx(_components.code,{children:`Content-Type: image/svg+xml`}),`. Both include `,_jsx(_components.code,{children:`Content-Length`}),`, `,_jsx(_components.code,{children:`Cache-Control: no-store`}),`, `,_jsx(_components.code,{children:`Content-Disposition: inline`}),`, and `,_jsx(_components.code,{children:`X-APIX-Request-ID`}),` response headers.`]}),`\n`,_jsx(_components.p,{children:`There is no JSON success envelope for those image formats. Save the binary response or pass it directly to your own image pipeline; do not parse it as JSON.`}),`\n`,_jsx(Heading,{level:`2`,id:`base64-json-response`,children:`Base64 JSON response`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`format: \"base64\"`}),` only when a JSON data URI suits your application. It is a PNG data URI, not raw Base64 bytes.`]}),`\n`,_jsx(CodeBlock,{filename:`curl`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://avraapi.com/api/v1/utilities/qr/generate\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: YOUR_PROJECT_CLIENT_ID\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-SECRET: YOUR_PROJECT_CLIENT_SECRET\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-ENV: development\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"data\":\"https://example.com/receipt/ORDER-2026-001\",\"format\":\"base64\"}'`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01f00000-0000-4000-8000-000000000021\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When it happens`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`http_error`})})}),_jsx(_components.td,{children:`QR generation cannot process the supplied value, colour, or logo URL. An unreachable, unsupported, or oversized logo can produce this outcome.`}),_jsx(_components.td,{children:`Correct the value or use a reachable public image, then submit a new request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`unauthorized`})})}),_jsxs(_components.td,{children:[`Credentials are missing, invalid, inactive, or do not match `,_jsx(_components.code,{children:`X-ENV`}),`.`]}),_jsx(_components.td,{children:`Check your backend credential configuration.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`insufficient_funds`})})}),_jsx(_components.td,{children:`The selected QR Generator integration requires credits that are unavailable.`}),_jsx(_components.td,{children:`Check the project balance and service configuration.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`validation_failed`})})}),_jsx(_components.td,{children:`A field is missing or outside its documented type, size, colour, URL, or range rules.`}),_jsx(_components.td,{children:`Correct the body using the field details in the response.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`provider_selection_failed`})})}),_jsx(_components.td,{children:`No active QR Generator integration can be selected for the project environment.`}),_jsx(_components.td,{children:`Enable or configure the QR Generator integration.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`rate_limit_exceeded`})})}),_jsx(_components.td,{children:`The configured request limit was reached.`}),_jsxs(_components.td,{children:[`Respect `,_jsx(_components.code,{children:`Retry-After`}),` when present.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`internal_error`})})}),_jsx(_components.td,{children:`The generator could not complete unexpectedly.`}),_jsx(_components.td,{children:`Retain the request ID and retry only when your workflow permits it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`project_paused`})})}),_jsx(_components.td,{children:`The project is paused.`}),_jsx(_components.td,{children:`Reactivate the project before retrying.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/api-reference/rest-api`,children:`REST API guide`}),` for shared credentials, privacy, and response-handling rules.`]}),`\n`,_jsx(Heading,{level:`2`,id:`playground-resources`,children:`Playground resources`}),`\n`,_jsx(_components.p,{children:`The generated reference below lists this endpoint’s API standard details: request fields, authorizations, and response schema. The complete integration guide, request and response examples, and endpoint-specific error handling are above.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate a QR code","description":"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/qr/generate","playground":"interactive","href":"/api-reference/utilities/qr-generate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API endpoint","slug":"api-endpoint","depth":2,"children":[]},{"title":"Request fields","slug":"request-fields","depth":2,"children":[]},{"title":"Request example","slug":"request-example","depth":2,"children":[]},{"title":"Media response","slug":"media-response","depth":2,"children":[]},{"title":"Base64 JSON response","slug":"base64-json-response","depth":2,"children":[]},{"title":"Error codes","slug":"error-codes","depth":2,"children":[]},{"title":"Playground resources","slug":"playground-resources","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/avraapi/ec3b4381e9d0c5d2/images/payment-elements/playground.js"],"openApiReferenceData":{"operation":{"tags":["Utilities"],"operationId":"generateQrCode","summary":"Generate a QR code","description":"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.","x-avraapi-operation-classification":"interactive-development","parameters":["ffbcccf4-45f5-4d17-bc9d-f034eaf1bd23","676a68c1-2450-4f15-a414-d21c5ebe19bb","49f8ccca-9909-43dd-909b-3c8323938029"],"requestBody":"ec1dbaa2-02b6-4548-91e7-954d82789779","responses":{"200":"975998c9-c852-4c05-b92e-0b08d55ad3d2","400":"565ef9dc-546b-410e-a3fe-78e62c0b5e87","401":"c0aef799-8a14-497c-a791-1a3eb9d04e23","402":"c0d5636c-0b52-4d61-b069-8c57ce856bbd","422":"5f1db9ac-6e39-4125-97bb-35a6a6a645a1","429":"7869f138-33b6-4217-b987-c252677a8b51","500":"a517cdb6-e83d-4644-a362-1ab29f5f77ff","503":"5210cdc0-2725-49a2-97f2-7ed8e17b6136"},"method":"post","type":"path","servers":["13fe6015-747e-4dae-bb20-620e83109976"],"security":["dba1cf01-89ab-45f1-a005-235bcd9b3c8d"],"path":"/utilities/qr/generate","baseUrlOptions":["https://avraapi.com/api/v1"],"title":"Generate a QR code","codeSamples":[],"requestExampleLanguages":["bash","javascript","php"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.data":"https://example.com/receipt/ORDER-2026-001","body.format":"png","body.size":400},{"body.data":"https://example.com/receipt/ORDER-2026-001","body.format":"base64"}],"disableProxy":true},"dependencies":{"parameters":{"ffbcccf4-45f5-4d17-bc9d-f034eaf1bd23":{"name":"X-ENV","in":"header","required":false,"description":"Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.","schema":{"type":"string","enum":["dev","development"],"default":"development","isRequired":false,"description":"Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"676a68c1-2450-4f15-a414-d21c5ebe19bb":{"name":"Accept","in":"header","required":false,"description":"Requests a JSON response where the selected operation supports JSON.","schema":{"type":"string","example":"application/json","isRequired":false,"description":"Requests a JSON response where the selected operation supports JSON.","uniqueKey":"","typeLabel":"string"}},"49f8ccca-9909-43dd-909b-3c8323938029":{"name":"X-Privacy-Mode","in":"header","required":false,"description":"Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.","schema":{"type":"boolean","default":false,"example":true,"isRequired":false,"description":"Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.","uniqueKey":"","typeLabel":"boolean"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"string","minLength":1,"maxLength":4096,"description":"Text, URL, vCard, or other data to encode.","x-default":"https://example.com/receipt/ORDER-2026-001","isRequired":true,"uniqueKey":"data","typeLabel":"string"},"format":{"type":"string","enum":["png","svg","base64"],"default":"png","x-default":"png","uniqueKey":"format","typeLabel":"enum\u003cstring>"},"size":{"type":"integer","minimum":50,"maximum":2000,"default":300,"x-default":300,"description":"Output size in pixels.","uniqueKey":"size","typeLabel":"integer"},"margin":{"type":"integer","minimum":0,"maximum":20,"default":2,"x-default":2,"description":"Quiet-zone margin in modules.","uniqueKey":"margin","typeLabel":"integer"},"foreground_color":{"type":"string","pattern":"^#?[0-9a-fA-F]{6}$","default":"000000","x-default":"000000","uniqueKey":"foreground_color","typeLabel":"string"},"background_color":{"type":"string","pattern":"^#?[0-9a-fA-F]{6}$","default":"ffffff","x-default":"ffffff","uniqueKey":"background_color","typeLabel":"string"},"logo_url":{"oneOf":[{"type":"string","format":"uri","maxLength":2048,"description":"A publicly accessible HTTP or HTTPS image. Used for PNG and Base64 output only.","uniqueKey":"logo_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","maxLength":2048,"description":"A publicly accessible HTTP or HTTPS image. Used for PNG and Base64 output only.","uniqueKey":"logo_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"logo_url","typeLabel":"string\u003curi> | null"},"logo_size_percent":{"type":"integer","minimum":5,"maximum":40,"default":20,"description":"Width of the centred logo as a percentage of the QR width.","uniqueKey":"logo_size_percent","typeLabel":"integer"},"privacy_mode":{"type":"boolean","description":"Optional request-level privacy setting. X-Privacy-Mode is the universal header override.","uniqueKey":"privacy_mode","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"png":{"title":"png","summary":"PNG QR code","value":{"data":"https://example.com/receipt/ORDER-2026-001","format":"png","size":400}},"base64":{"title":"base64","summary":"JSON Base64 response","value":{"data":"https://example.com/receipt/ORDER-2026-001","format":"base64"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"975998c9-c852-4c05-b92e-0b08d55ad3d2":{"description":"QR output in the requested format.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"image/png":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"image/svg+xml":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"application/json":{"schema":{"type":"object","required":["success","request_id","data"],"properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","description":"Include this value when contacting AvraAPI support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"data":{"type":"object","description":"Operation-specific result data.","required":["format","data_uri"],"properties":{"format":{"type":"string","enum":["base64"],"isRequired":true,"uniqueKey":"data.format","typeLabel":"enum\u003cstring>"},"data_uri":{"type":"string","description":"PNG data URI beginning with data:image/png;base64,.","isRequired":true,"uniqueKey":"data.data_uri","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"base64":{"title":"base64","summary":"Base64 PNG data URI","value":{"success":true,"request_id":"01f00000-0000-4000-8000-000000000021","data":{"format":"base64","data_uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."}}}},"exampleType":"examples"}},"exampleType":"examples"},"565ef9dc-546b-410e-a3fe-78e62c0b5e87":{"description":"The generator could not process an otherwise valid request, such as an unsupported barcode payload or an unreachable QR logo URL.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"http_error":{"title":"http_error","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000025","error":{"code":"http_error","message":"The generator could not process the supplied input."},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"c0aef799-8a14-497c-a791-1a3eb9d04e23":{"description":"Missing, invalid, inactive, or environment-mismatched project credentials.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unauthorized":{"title":"unauthorized","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000026","error":{"code":"unauthorized","message":"Project credentials were not accepted."},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"c0d5636c-0b52-4d61-b069-8c57ce856bbd":{"description":"The selected Utility integration requires credits that are not available.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficient_funds":{"title":"insufficient_funds","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000027","error":{"code":"insufficient_funds","message":"The selected Utility integration has insufficient credits."},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"5f1db9ac-6e39-4125-97bb-35a6a6a645a1":{"description":"The request body is invalid, or the matching Utility integration cannot be resolved for the project environment.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"validation_failed":{"title":"validation_failed","summary":"Request validation error","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000022","error":{"code":"validation_failed","message":"Validation failed.","details":{"data":["The data field is required."]}}}},"unavailable_provider":{"title":"unavailable_provider","summary":"Utility provider is not available","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000023","error":{"code":"provider_selection_failed","message":"No active generator integration is available for this project environment."}}}},"exampleType":"examples"}},"exampleType":"examples"},"7869f138-33b6-4217-b987-c252677a8b51":{"description":"The configured request limit has been reached.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}},"Retry-After":{"description":"Seconds to wait before retrying a rate-limited request.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limit_exceeded":{"title":"rate_limit_exceeded","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000029","error":{"code":"rate_limit_exceeded","message":"The request limit has been reached."},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"a517cdb6-e83d-4644-a362-1ab29f5f77ff":{"description":"The Utility operation could not complete unexpectedly.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internal_error":{"title":"internal_error","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000028","error":{"code":"internal_error","message":"The Utility operation could not complete."},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"5210cdc0-2725-49a2-97f2-7ed8e17b6136":{"description":"The project is paused.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error summary.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.details.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.additionalProperties","typeLabel":"string[]"},"description":"Field-level validation messages when available.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","description":"Some infrastructure errors include additional diagnostic metadata.","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"project_paused":{"title":"project_paused","value":{"success":false,"request_id":"01f00000-0000-4000-8000-000000000024","error":{"code":"project_paused","message":"This project is currently paused."}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"dba1cf01-89ab-45f1-a005-235bcd9b3c8d":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Development project's Client ID. Enter your own value in the Documentation Playground.","scopes":[]},"ApiSecretHeader":{"type":"apiKey","in":"header","name":"X-API-SECRET","description":"Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.","scopes":[]}}},"servers":{"13fe6015-747e-4dae-bb20-620e83109976":{"url":"https://avraapi.com/api/v1","description":"AvraAPI REST API v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Development project's Client ID. Enter your own value in the Documentation Playground.","scopes":[]},"schema":{"title":"X-API-KEY","type":"string","description":"Your Development project's Client ID. Enter your own value in the Documentation Playground.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyHeader","name":"X-API-KEY"},{"scheme":{"type":"apiKey","in":"header","name":"X-API-SECRET","description":"Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.","scopes":[]},"schema":{"title":"X-API-SECRET","type":"string","description":"Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiSecretHeader","name":"X-API-SECRET"}],"title":"ApiKeyHeader \u0026 ApiSecretHeader"}]},"originalFileLocation":"api-reference/provider-api.openapi.yaml"},"subdomain":"avraapi","siteName":"AvraAPI","title":"Generate a QR code - AvraAPI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-01T13:37:07.604Z","originalFileLocation":"api-reference/utilities/qr-generate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AvraAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate a QR code - AvraAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AvraAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.avraapi.com/api-reference/utilities/qr-generate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://avraapi.mintlify.site/_mintlify/api/og/v2?division=Utilities\u0026amp;title=Generate+a+QR+code\u0026amp;description=Create+a+PNG%2C+SVG%2C+or+Base64+QR+code+through+your+configured+AvraAPI+QR+Generator.\u0026amp;theme=d9e89b2eca5511b6e2827c0b\u0026amp;signature=1e24d4372dc2d9928e6e4f0f748080a07cebc8e24367f3b2b547d1edd968102b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Generate a QR code - AvraAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://avraapi.mintlify.site/_mintlify/api/og/v2?division=Utilities\u0026amp;title=Generate+a+QR+code\u0026amp;description=Create+a+PNG%2C+SVG%2C+or+Base64+QR+code+through+your+configured+AvraAPI+QR+Generator.\u0026amp;theme=d9e89b2eca5511b6e2827c0b\u0026amp;signature=1e24d4372dc2d9928e6e4f0f748080a07cebc8e24367f3b2b547d1edd968102b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AvraAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0450ff\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#0450ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.avraapi.com/api-reference/utilities/qr-generate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/utilities/qr-generate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://avraapi.com/#organization\",\"name\":\"AvraAPI\",\"legalName\":\"Fidex Developers (Pvt) Ltd\",\"url\":\"https://avraapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.avraapi.com/logo/light.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.avraapi.com#website\",\"name\":\"AvraAPI\",\"url\":\"https://docs.avraapi.com\",\"publisher\":{\"@id\":\"https://avraapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate#webpage\",\"url\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate\",\"name\":\"Generate a QR code\",\"description\":\"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.\",\"dateModified\":\"2026-10-01T13:37:07.604Z\",\"isPartOf\":{\"@id\":\"https://docs.avraapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AvraAPI\",\"item\":\"https://docs.avraapi.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate a QR code\",\"item\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate#apireference\",\"headline\":\"Generate a QR code\",\"name\":\"Generate a QR code\",\"description\":\"Create a PNG, SVG, or Base64 QR code through your configured AvraAPI QR Generator.\",\"url\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.avraapi.com/api-reference/utilities/qr-generate#webpage\"},\"dateModified\":\"2026-10-01T13:37:07.604Z\",\"publisher\":{\"@id\":\"https://avraapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.avraapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AvraAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AvraAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/utilities/qr-generate.md","siteName":"AvraAPI","nav":{"global":null,"tabs":[{"tab":"Information \u0026 Guides","icon":"book-open","pages":[{"title":"Information \u0026 Guides","href":"/introduction"}]},{"tab":"Advanced Services","icon":"wand-magic-sparkles","pages":[{"title":"Advanced Services","href":"/universal-payment-gateway/overview"}]},{"tab":"SDK Documentation","icon":"code","pages":[{"title":"SDK Documentation","href":"/sdk/overview"}]},{"tab":"REST API Reference","icon":"server","groups":[{"group":"Introduction","pages":[{"title":"API Reference overview","icon":"map","href":"/api-reference/overview"},{"title":"Providers \u0026 Microservices","icon":"book-open","href":"/api-reference/providers-and-microservices"},{"title":"REST API guide","icon":"terminal","href":"/api-reference/rest-api"}]},{"group":"Currencies","pages":[{"title":"CBSL Rates","icon":"landmark","href":"/api-reference/cbsl-rates"},{"title":"List supported currency codes","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/codes","playground":"interactive","href":"/api-reference/currency/list-codes"},{"title":"Get latest rates","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/latest/{base}","playground":"interactive","href":"/api-reference/currency/latest-rates"},{"title":"Get one currency-pair rate","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/pair/{base}/{target}","playground":"interactive","href":"/api-reference/currency/pair-rate"},{"title":"Convert a currency amount","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/pair/{base}/{target}/{amount}","playground":"interactive","href":"/api-reference/currency/convert-amount"}]},{"group":"SMS","pages":[{"title":"Check SMS balance","openapi":"api-reference/provider-api.openapi.yaml POST /sms/balance","playground":"interactive","href":"/api-reference/sms/balance"},{"title":"Send an SMS","openapi":"api-reference/provider-api.openapi.yaml POST /sms/send","playground":"interactive","href":"/api-reference/sms/send"}]},{"group":"Security","pages":[{"title":"Check VPN, proxy, and IP risk","openapi":"api-reference/provider-api.openapi.yaml POST /security/vpn-shield","playground":"interactive","href":"/api-reference/security/vpn-shield"},{"title":"Check a disposable email address","openapi":"api-reference/provider-api.openapi.yaml POST /security/burner-email-shield","playground":"interactive","href":"/api-reference/security/burner-email-shield"}]},{"group":"Location","pages":[{"title":"Look up an IP address","description":"Resolve one permitted IPv4 or IPv6 address into the AvraAPI Location result.","openapi":"api-reference/provider-api.openapi.yaml POST /location/lookup","playground":"interactive","href":"/api-reference/location/lookup"}]},{"group":"Utilities","pages":[{"title":"Generate a QR code","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/qr/generate","playground":"interactive","href":"/api-reference/utilities/qr-generate"},{"title":"Generate a barcode","description":"Create a PNG or SVG barcode through your configured AvraAPI Barcode Generator.","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/barcode/generate","playground":"interactive","href":"/api-reference/utilities/barcode-generate"},{"title":"Generate a PDF","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/pdf/generate","playground":"interactive","href":"/api-reference/utilities/pdf-generate"}]}]}]},"basePath":"","title":"Generate a QR code - AvraAPI","deploymentId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","buildId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CtBVvVHw.js","snippetPresets-9Wdj1iJX.js","utils-C7pdn048.js","style-to-object-BY3JEAdk.js","utils-DXrrd362.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-mhMleBMB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BAjduu_G.js","_Uint8Array-nYbT9fMe.js","isObject-FP1Yky1u.js","ApiExamples-B_rQ3sQn.js","usePlaygroundInputsStore-1axgsDkN.js","shallow-BzGYy3WT.js","isEqual-YKdP-BC9.js","CodeSnippets-Bnk9aSsZ.js","CodeSnippet-CpmxV9bB.js","getApiPlaygroundDisplay-bJKEwju4.js","Page-B3Xw2AdP.js","DynamicMarkdown-hgwwGkem.js","SectionHeading-D_cNZKTp.js","icon-Bt9132nT.js","MethodPill-bMPQiifO.js","getPastedJson-B4rstRhU.js","Check2Icon-D82b8qKN.js","axios-CsQoIw0U.js","Markdown-0sfW67Ea.js","AssistantPageLink-B0docfb1.js","dist-DAabPqRJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}