Payment QR Code Generator API for India

API ID 13359

Generate UPI payment QR codes for India with validated VPAs, verified scannable before return.

API Documentation

Endpoints

Request
Generates a custom QR code and returns it as a base64-encoded PNG or SVG image. Supports an embedded logo, full color and shape styling, and 11 payload types: plain text, URL, WiFi, vCard, MeCard, email, SMS, phone, geolocation, and payment QR codes (SEPA/EPC and UPI). Every QR code is independently decoded and verified as scannable before it is returned—if a requested logo or style would make the code unreadable, the API returns a specific error explaining the fix instead of a broken image. Parameters: type, data (or type-specific fields), format, size, foreground, background, module_shape, eye_shape, quiet_zone, error_correction, logo, logo_percent. A logo is not permitted for payment types.
Endpoint ID: 28520
POST https://zylalabs.com/api/13359/payment+qr+code+generator+api+for+india/28520/generate+qr+code+with+logo
INPUT PARAMETERS

Generate QR Code with Logo — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "image": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAALeklEQVR4nO3dSZLkNhAAwW6Z/v/l0llmWppEDbNywv0DjQK3mMEhv1+v1+sLAEj5Y3oBAMDzBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIOjP6QVM+f7+nl4CF71er5G/O32vnPzu07Vv/duTpu8Xrtt6r53yPwAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAgrLjgE9UR0e+w9So1M0jWjevfcrWUcTeLfd5Tq4TAPCb8zED/okjAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBxgEP2Dy32ojXfbbeb+6167Ze668v13uCACDh5OWy+aUK8G8cAQBAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAggQAAASZBkiCiX4AfycA4AeME77HjHf4XI4AACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQZBww/UB7pe+Jk34wShl9LAMAD7n7M3hEek38b+FyOAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIJMA4QHmKwHfBoBMMCc8+dN7vnpx39q7ad/V/Q8z7uFKxwBAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgyDpiErSN5T1V/N/D/BMAN5pwDv4J3C09yBAAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABBkGiB8uMkJcdW/DQXZADDnnKec3GvbP4J3f/vm3+3dwhaOAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAEZccBn3jHqNLimNRTk2NWT/fdiNhdJp+zzeOjJ99rnrHrBAB8sM3Rc+L0d09/CGEDRwAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQA...",
    "format": "png",
    "mime_type": "image/png",
    "size_px": 512,
    "qr_version": 2,
    "error_correction": "Q",
    "module_count": 25,
    "logo_applied": false,
    "logo_coverage_percent": 0,
    "scan_verified": true,
    "request_id": "76ac17f9c7ad4676bd96f906f9013a40"
}
Generate QR Code with Logo — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13359/payment+qr+code+generator+api+for+india/28520/generate+qr+code+with+logo' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"type":"url","data":"https://example.com","format":"png","size":512}'

    
Request
Generates a QR code and returns raw image bytes directly (PNG or SVG), with no logo support and no JSON wrapper — built for quick previews, testing, and any workflow that just wants an image back, not a base64-wrapped response. Accepts the same styling parameters as the main endpoint, plus the same 11 payload types via query parameters (e.g. type=wifi&ssid=...). For logo embedding, use the main "Generate QR Code with Logo" endpoint instead.
Endpoint ID: 28521
GET https://zylalabs.com/api/13359/payment+qr+code+generator+api+for+india/28521/generate+simple+qr+code
INPUT PARAMETERS

Generate Simple QR Code — Endpoint Features

Object Description
data Required Content to encode (for type=text/url)
size Required Output width/height in pixels, 128-2000
format Required png or svg
type Required Payload type: text, url, wifi, vcard, mecard, email, sms, phone, geo. Defaults to text
foreground Required Module color, 6-digit hex
module_shape Required square, rounded, or dot
eye_shape Required square, rounded, or dot
quiet_zone Required Border width in modules, 0-10
error_correction Required L, M, Q, or H
background Required Background color, 6-digit hex

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

data
size
format
type
foreground
module_shape
eye_shape
quiet_zone
error_correction
background
API EXAMPLE RESPONSE
JSON
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAALeklEQVR4nO3dSZLkNhAAwW6Z/v/l0llmWppEDbNywv0DjQK3mMEhv1+v1+sLAEj5Y3oBAMDzBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIOjP6QVM+f7+nl4CF71er5G/O32vnPzu07Vv/duTpu8Xrtt6r53yPwAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAgrLjgE9UR0e+w9So1M0jWjevfcrWUcTeLfd5Tq4TAPCb8zED/okjAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBxgEP2Dy32ojXfbbeb+6167Ze668v13uCACDh5OWy+aUK8G8cAQBAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAggQAAASZBkiCiX4AfycA4AeME77HjHf4XI4AACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQZBww/UB7pe+Jk34wShl9LAMAD7n7M3hEek38b+FyOAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIJMA4QHmKwHfBoBMMCc8+dN7vnpx39q7ad/V/Q8z7uFKxwBAECQAACAIAEAAEECAACCBAAABAkAAAgSAAAQJAAAIEgAAECQAACAIAEAAEECAACCBAAABAkAAAgyDpiErSN5T1V/N/D/BMAN5pwDv4J3C09yBAAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABBkGiB8uMkJcdW/DQXZADDnnKec3GvbP4J3f/vm3+3dwhaOAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAEZccBn3jHqNLimNRTk2NWT/fdiNhdJp+zzeOjJ99rnrHrBAB8sM3Rc+L0d09/CGEDRwAAECQAACBIAABAkAAAgCABAABBAgAAggQAAAQJAAAIEgAAECQAACBIAABAkAAAgCABAABBpgEOMa2s5eR6bx4PO/33N9q8Z5vXXiQAFtr8QZgab1sdq3tq87026e6+lfeM5zkCAIAgAQAAQQI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gAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAECQAACBIAABAkAAAgSAAAQJAAAIAgAQAAQQIAAIIEAAAE/QWOp5Kzijy6RAAAAABJRU5ErkJggg==
Generate Simple QR Code — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13359/payment+qr+code+generator+api+for+india/28521/generate+simple+qr+code?data=https://example.com&size=512&format=png&type=text&foreground=#000000&module_shape=square&eye_shape=square&quiet_zone=4&error_correction=M&background=#FFFFFF' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Payment QR Code Generator API for India simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring
zeiss-logo amazon-logo zoom-logo decathlon-logo

Trusted by leading companies

Overview

Generate UPI payment QR codes for India with validated VPAs, verified scannable before return.

Payment QR Code Generator API for India FAQs

Yes. Every QR code is independently decoded and verified before it's returned. If a requested logo or style would make the code unreadable, the API returns a specific error explaining the fix, instead of silently returning a broken image.

PNG and JPEG, up to 2000×2000 pixels and roughly 512KB. The file is validated by its actual content, not by its name or extension.

Yes. Set format to svg for a vector image that scales to any size without quality loss — built for packaging, signage, and print. PNG is also available for screens and apps.

The API returns a 422 error naming the exact fix (e.g. reduce logo_percent or increase size) rather than returning a QR code that might not scan.

Eleven payload types: plain text, URLs, WiFi credentials, vCard and MeCard contacts, email, SMS, phone numbers, geolocation, and payment QR codes (SEPA/EPC bank transfers and UPI).

No. Logos aren't supported on SEPA/EPC or UPI types. This is deliberate: a branded payment QR code is a common phishing pattern, and the EPC standard separately requires a fixed error-correction level that a logo would compromise.

No. The API is stateless — nothing you send (URLs, WiFi passwords, contact details, payment details) is stored or logged. Only anonymous request metadata (timestamp, status code) is kept for reliability monitoring.

Yes. Foreground and background colors (any hex value), plus independent shape styles — square, rounded, or dot — for both the data modules and the corner "eye" markers.

Yes, a 7-day trial with up to 50 requests, so you can test the API before committing to a plan.

POST supports the full feature set, including logos. GET returns a raw image directly from a URL with no request body — convenient for quick testing, but without logo support.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs