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DLpQOpaGzxP1RKoE6lEAyTCt+ndplkyN7s3ynhEKIVITR8PUtlrOLTU5PwZ0YAluLgZYoF8dkagisPO79kKws1DmNwWZoq4dl3eBTCiIsHP1XKBFrCbMcsMYP56e8lGs1xFB/q4eaK/V3qR/v8L7L23jqr/yseqij1EUxYcjpzPTlrdSpzxW/OzzkciSlrPi82UeyMP4hbn/F3K2biq/6dWq7fsP4566f9fvupPjPiFfztG3/OSyxhrizi0StQh5+G/fpsFsjmwhXwtPmZYYrJ4LHO3A+IIuL3zMgOKOsV2CJ569sxZn+sRcQvL3kDMLYoIQbcXbgFGhtLzl7fFXSCznq7C1mddLjEzxzLgDwylirtB4DSGwblJEORgDOex+kRKZcai5oY4IK5+UpJ7wMIYA9tyGpsV9lrTm3OQ1gg/EXOsYujZDgpDy3BWu91toEPXZHgPUo5P2xC+QN//Lp4UdcFz7QcfWY399lej+DgnTXse2aeXrEySXwgwDMG0Xza9b3KdNEK7Osz0g5OrnjfEPnP/U2UsAKZW5kc3RyZWFtCmVuZG9iagoKOSAwIG9iago8PAovU2l6ZSAxMAovUm9vdCAyIDAgUgovSW5mbyAzIDAgUgovRmlsdGVyIC9GbGF0ZURlY29kZQovVHlwZSAvWFJlZgovTGVuZ3RoIDQzCi9XIFsgMSAyIDIgXQovSW5kZXggWyAwIDEwIF0KPj4Kc3RyZWFtCnicFcmxDQAwCASxgxApJTtlf1YCvnFjoNt5IEy4OCLENZKdv0TBAGr5A3QKZW5kc3RyZWFtCmVuZG9iagoKc3RhcnR4cmVmCjEyMzAKJSVFT0Y=
curl --location --request POST 'https://zylalabs.com/api/14225/pdf+and+invoice+generator+api+-+json+to+pdf/35305/create+pdf?output=pdf' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"number":"2026-001","from":"Your Company","to":"Client Ltd","currency":"EUR","taxRate":21,"items":[{"description":"Consulting","quantity":2,"price":50}]}'
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 PDF and Invoice Generator API - JSON to PDF simply include your bearer token in the Authorization header.
| 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.
Create PDF documents from text or professional invoices from JSON (items, quantities, prices, tax, totals) in milliseconds.
The Create PDF endpoint returns a PDF document or a Base64 encoded string of the PDF. This allows users to easily download or embed the generated PDF directly into applications.
The key fields for invoice generation include items, quantities, prices, tax, and totals. These fields allow for detailed and accurate invoice creation based on user input.
Users can customize their requests by providing specific JSON data that includes the desired text or invoice details, such as item descriptions, quantities, and pricing information.
The response data is organized as either a binary PDF file or a Base64 string. Users can choose their preferred format for easy integration into their applications.
Typical use cases include generating professional invoices for businesses, creating reports, or converting text documents into PDF format for distribution or archiving.
Users can save the returned PDF file directly to their systems, display it in web applications, or convert the Base64 string back into a PDF for further processing or sharing.
The generated PDFs can include various types of information such as text content, invoice details, itemized lists, and financial summaries, depending on the JSON input provided.
Data accuracy is maintained by ensuring that the input JSON is validated and correctly formatted. Users are encouraged to double-check their data before submission to avoid errors in the generated PDF.
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.
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.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund