{"id":445439,"date":"2026-07-27T00:41:34","date_gmt":"2026-07-26T22:41:34","guid":{"rendered":"https:\/\/www.kafinea.com\/documentation\/uncategorized\/rest-api-retrieve-a-documents-pdf\/"},"modified":"2026-11-22T17:52:09","modified_gmt":"2026-11-22T16:52:09","password":"","slug":"rest-api-retrieve-a-documents-pdf","status":"publish","type":"docs","link":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/","title":{"rendered":"REST API &#8211; Retrieve a Document&#8217;s PDF"},"content":{"rendered":"<p>This page describes how to retrieve, from a third-party application, the PDF of a business document (invoice, credit note, quote, order, delivery note, payslip\u2026) exactly as it is generated by Kafinea, using the print template of your choice.<\/p>\n<p>By default, when the document is an <strong>invoice<\/strong> or a <strong>credit note<\/strong> and the conditions are met, the returned PDF automatically contains the <strong>Factur-X<\/strong> file: no additional parameter is required (see the &#8220;Electronic invoicing&#8221; section below).<\/p>\n<p>A single operation is required:<\/p>\n<div style=\"overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>Operation<\/th>\n<th>Method<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>document_pdf<\/code><\/td>\n<td>GET<\/td>\n<td>Retrieve a document&#8217;s PDF<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>It requires a valid session (see <a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-authentication\/\">Authentication<\/a>).<\/p>\n<blockquote>\n<p><strong>Name change:<\/strong> this operation used to be called <code>mds_document_pdf<\/code>. Both names work<br \/>\nuntil <strong>November 30, 2026<\/strong>, with exactly the same parameters and response: simply<br \/>\nreplace the value of <code>operation<\/code> in your calls.<\/p>\n<\/blockquote>\n<hr\/>\n<h2>document_pdf \u2013 Retrieve the PDF<\/h2>\n<p>Generates the PDF of a record and returns it, either base64-encoded in the JSON response, or directly as a PDF file.<\/p>\n<blockquote>\n<p><strong>GET<\/strong> <code>https:\/\/apps.kafinea.com\/{instance}\/webservice.php<\/code><\/p>\n<\/blockquote>\n<div style=\"overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>operation<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Must be <code>document_pdf<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>sessionName<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Session identifier<\/td>\n<\/tr>\n<tr>\n<td><code>id<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Webservice ID of the record (<code>6x54325<\/code>), as returned by <code>query<\/code> or <code>retrieve<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>templateId<\/code><\/td>\n<td>string<\/td>\n<td>no<\/td>\n<td>Webservice ID of the print template (<code>57x1088<\/code>). If absent, the module&#8217;s default template is used<\/td>\n<\/tr>\n<tr>\n<td><code>download<\/code><\/td>\n<td>string<\/td>\n<td>no<\/td>\n<td><code>1<\/code> to receive the PDF file directly instead of the JSON response<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<blockquote>\n<p><strong>ID convention:<\/strong> as with all API operations, <code>id<\/code> and <code>templateId<\/code> expect the <strong>full Webservice ID<\/strong> (<code>6x54325<\/code>), the one returned by <code>query<\/code>, <code>retrieve<\/code> or <code>describe<\/code>. A raw identifier (<code>54325<\/code>) is rejected with code <code>INVALID_ID_ATTRIBUTE<\/code>.<\/p>\n<\/blockquote>\n<h3>JSON response (default)<\/h3>\n<pre><code class=\"language-bash\">curl \"https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php?operation=document_pdf&sessionName=YOUR_SESSION_ID&id=6x54325&templateId=57x1088\"\n<\/code><\/pre>\n<pre><code class=\"language-json\">{\n  \"success\": true,\n  \"result\": {\n    \"id\": \"6x54325\",\n    \"module\": \"Invoice\",\n    \"templateId\": \"57x1088\",\n    \"filename\": \"Facture - 0053 - 2026-06-29.pdf\",\n    \"mime\": \"application\/pdf\",\n    \"size\": 970618,\n    \"base64\": \"JVBERi0xLjQKJeLjz9MK...\"\n  }\n}\n<\/code><\/pre>\n<p>The <code>base64<\/code> field contains the PDF bytes. Decode it to reconstruct the file:<\/p>\n<pre><code class=\"language-php\">$pdfBytes = base64_decode($response['result']['base64']);\nfile_put_contents($response['result']['filename'], $pdfBytes);\n<\/code><\/pre>\n<h3>Direct file download<\/h3>\n<p>With <code>download=1<\/code>, the response is no longer JSON: the PDF file is returned as is, with the <code>Content-Type: application\/pdf<\/code> and <code>Content-Disposition: attachment<\/code> headers.<\/p>\n<pre><code class=\"language-bash\">curl -o facture.pdf \"https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php?operation=document_pdf&sessionName=YOUR_SESSION_ID&id=6x54325&download=1\"\n<\/code><\/pre>\n<blockquote class=\"bq-astuce\">\n<p><strong>Tip:<\/strong> The <code>download=1<\/code> mode avoids the overhead of base64 encoding (about +33% in size): use it when archiving or forwarding the file as is.<\/p>\n<\/blockquote>\n<hr>\n<h2>Finding a print template&#8217;s ID<\/h2>\n<p>The <code>templateId<\/code> parameter is optional: without it, Kafinea uses the module&#8217;s default template. If you want to enforce a specific template, retrieve its ID.<\/p>\n<blockquote>\n<p><strong>Reminder:<\/strong> Print templates are a full-fledged Kafinea module, so they are <strong>accessible via the API&#8217;s generic operations<\/strong> (<code>describe<\/code>, <code>query<\/code>, <code>retrieve<\/code>\u2026). No dedicated operation is required.<\/p>\n<\/blockquote>\n<pre><code class=\"language-bash\">curl --get \"https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php\" \\\n  --data-urlencode \"operation=query\" \\\n  --data-urlencode \"sessionName=YOUR_SESSION_ID\" \\\n  --data-urlencode \"query=SELECT id, templatename, basemodule, active FROM MdsPrintTemplate WHERE basemodule = 'Invoice';\"\n<\/code><\/pre>\n<pre><code class=\"language-json\">{\n  \"success\": true,\n  \"result\": [\n    { \"id\": \"57x1088\", \"templatename\": \"Facture client\", \"basemodule\": \"Invoice\", \"active\": \"1\" },\n    { \"id\": \"57x1093\", \"templatename\": \"Facture d'avancement client\", \"basemodule\": \"Invoice\", \"active\": \"1\" }\n  ]\n}\n<\/code><\/pre>\n<p>The <code>basemodule<\/code> field indicates the module the template applies to. The returned ID (<code>57x1088<\/code>) can be used as is in the <code>templateId<\/code> parameter.<\/p>\n<p>An empty result means the module has no print template: PDF export is then not possible for that module.<\/p>\n<hr\/>\n<h2>Affected modules<\/h2>\n<p>The operation works for <strong>any module with at least one print template<\/strong>, including:<\/p>\n<ul>\n<li>business management documents: quotes, customer orders, invoices, credit notes, supplier orders;<\/li>\n<li>logistics documents: delivery notes, receiving notes;<\/li>\n<li>payslips;<\/li>\n<li>any module for which you have created your own print templates.<\/li>\n<\/ul>\n<p>To check whether a module is eligible, query the print templates associated with that module (see above): if at least one exists, PDF export is available.<\/p>\n<hr>\n<h2>Electronic invoicing (Factur-X)<\/h2>\n<p>The returned PDF is <strong>identical to the one produced from the interface<\/strong>: it therefore automatically contains, with no parameter to add to your call, the <code>factur-x.xml<\/code> file when all the conditions below are met.<\/p>\n<div style=\"overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>Condition<\/th>\n<th>Detail<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Document type<\/td>\n<td>Customer invoice or customer credit note<\/td>\n<\/tr>\n<tr>\n<td>Locking<\/td>\n<td>The document must be permanently locked (final document)<\/td>\n<\/tr>\n<tr>\n<td>Instance configuration<\/td>\n<td>The electronic invoicing format must be set to Factur-X<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The resulting file is then a PDF\/A-3: readable like an ordinary PDF, it embeds as an attachment the standardized XML file that can be processed by the recipient&#8217;s accounting system.<\/p>\n<blockquote class=\"bq-note\">\n<p><strong>Note:<\/strong> An unlocked document is considered a draft: its PDF carries a watermark and does not contain a Factur-X file. This is expected behavior \u2013 a non-final invoice has no legal value.<\/p>\n<\/blockquote>\n<p><strong>Checking for the presence of the Factur-X file:<\/strong><\/p>\n<pre><code class=\"language-bash\">curl -o facture.pdf \"https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php?operation=document_pdf&sessionName=YOUR_SESSION_ID&id=6x54325&download=1\"\nstrings facture.pdf | grep factur-x.xml\n<\/code><\/pre>\n<hr\/>\n<h2>Access rights<\/h2>\n<p>The operation applies <strong>the rights of the integration account&#8217;s user<\/strong>: if this user does not have permission to view the document, the call is denied. Create a user dedicated to the integration and assign it a profile granting access only to the necessary modules.<\/p>\n<hr>\n<h2>Error codes<\/h2>\n<div style=\"overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>Code<\/th>\n<th>Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>INVALID_ID_ATTRIBUTE<\/code><\/td>\n<td><code>id<\/code> or <code>templateId<\/code> parameter missing, malformed, or not matching the correct module<\/td>\n<\/tr>\n<tr>\n<td><code>ACCESS_DENIED<\/code><\/td>\n<td>The logged-in user does not have permission to view this document (or the document does not exist)<\/td>\n<\/tr>\n<tr>\n<td><code>RECORD_NOT_FOUND<\/code><\/td>\n<td>The document does not exist (or has been deleted)<\/td>\n<\/tr>\n<tr>\n<td><code>PDF_NOT_SUPPORTED<\/code><\/td>\n<td>The module has no print template<\/td>\n<\/tr>\n<tr>\n<td><code>INVALID_TEMPLATE<\/code><\/td>\n<td>The requested template does not belong to the document&#8217;s module<\/td>\n<\/tr>\n<tr>\n<td><code>PDF_GENERATION_FAILED<\/code><\/td>\n<td>PDF generation failed (the message specifies the cause)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Example error response:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Print template 57x1093 does not belong to module \\\"Invoice\\\".\",\n    \"code\": \"INVALID_TEMPLATE\"\n  }\n}\n<\/code><\/pre>\n<hr\/>\n<h2>Frequently asked questions<\/h2>\n<p><strong>How can I get an invoice&#8217;s ID from its number?<\/strong><\/p>\n<p>Use the <code>query<\/code> operation (see <a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-requests-and-querying\/\">Requests and querying<\/a>):<\/p>\n<pre><code class=\"language-sql\">SELECT id FROM Invoice WHERE invoice_no = 'FA-2026-0053';\n<\/code><\/pre>\n<p>The returned ID (<code>6x54325<\/code>) can be used directly as the <code>id<\/code> parameter.<\/p>\n<blockquote class=\"bq-note\">\n<p><strong>Note:<\/strong> The Webservice ID prefix (the number before the <code>x<\/code>) is specific to each instance: never hard-code it, always retrieve it via <code>query<\/code> or <code>describe<\/code>.<\/p>\n<\/blockquote>\n<p><strong>Can I retrieve several PDFs in a single request?<\/strong><\/p>\n<p>No: one call returns one document. Chain calls using the same session \u2013 since generating a PDF is resource-intensive, plan for sequential processing rather than massive parallelization.<\/p>\n<p><strong>The returned PDF has a &#8220;Draft&#8221; watermark. Why?<\/strong><\/p>\n<p>The document is not permanently locked. Lock it in Kafinea, then run the call again.<\/p>\n<p><strong>Can I retrieve only the XML file of the electronic invoice?<\/strong><\/p>\n<p>Yes, the <code>invoice_facturx<\/code> operation returns the XML alone for a locked invoice:<\/p>\n<pre><code class=\"language-bash\">curl \"https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php?operation=invoice_facturx&sessionName=YOUR_SESSION_ID&id=6x54325\"\n<\/code><\/pre>\n<p>This operation used to be called <code>mds_invoice_facturx<\/code>: both names work until<br \/>\nNovember 30, 2026, with identical parameters and response.<\/p>\n<hr>\n<h2>Related references \ud83d\udd17<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-introduction\/\">Introduction<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-authentication\/\">Authentication<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-requests-and-querying\/\">Requests and querying<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-file-management\/\">File management<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This page describes how to retrieve, from a third-party application, the PDF of a business document (invoice, credit note, quote, order, delivery note, payslip\u2026) exactly as it is generated by Kafinea, using the print template of your choice. By default, when the document is an invoice or a credit note and the conditions are met,&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[759],"doc_tag":[],"class_list":["post-445439","docs","type-docs","status-publish","hentry","doc_category-api"],"year_month":"2026-11","word_count":1126,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"David Valminos","author_nicename":"david","author_url":"https:\/\/www.kafinea.com\/en\/author\/david\/"},"doc_category_info":[{"term_name":"API","term_url":"https:\/\/www.kafinea.com\/en\/help\/api\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Help - REST API - Retrieve a Document&#039;s PDF &#8226; Kafinea<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Help - REST API - Retrieve a Document&#039;s PDF &#8226; Kafinea\" \/>\n<meta property=\"og:description\" content=\"This page describes how to retrieve, from a third-party application, the PDF of a business document (invoice, credit note, quote, order, delivery note, payslip\u2026) exactly as it is generated by Kafinea, using the print template of your choice. By default, when the document is an invoice or a credit note and the conditions are met,...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/\" \/>\n<meta property=\"og:site_name\" content=\"Kafinea\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T16:52:09+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-retrieve-a-documents-pdf\\\/\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-retrieve-a-documents-pdf\\\/\",\"name\":\"Help - REST API - Retrieve a Document's PDF &#8226; Kafinea\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#website\"},\"datePublished\":\"2026-07-26T22:41:34+00:00\",\"dateModified\":\"2026-11-22T16:52:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-retrieve-a-documents-pdf\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-retrieve-a-documents-pdf\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-retrieve-a-documents-pdf\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"REST API &#8211; Retrieve a Document&#8217;s PDF\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\",\"name\":\"Kafinea\",\"description\":\"Une solution unique pour toutes vos ambitions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#organization\",\"name\":\"Kafinea\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Logo-Kafinea-SVG-orange-bleu.svg\",\"contentUrl\":\"https:\\\/\\\/www.kafinea.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Logo-Kafinea-SVG-orange-bleu.svg\",\"width\":296.31,\"height\":66.48,\"caption\":\"Kafinea\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/kafinea\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Help - REST API - Retrieve a Document's PDF &#8226; Kafinea","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/","og_locale":"en_US","og_type":"article","og_title":"Help - REST API - Retrieve a Document's PDF &#8226; Kafinea","og_description":"This page describes how to retrieve, from a third-party application, the PDF of a business document (invoice, credit note, quote, order, delivery note, payslip\u2026) exactly as it is generated by Kafinea, using the print template of your choice. By default, when the document is an invoice or a credit note and the conditions are met,...","og_url":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/","og_site_name":"Kafinea","article_modified_time":"2026-11-22T16:52:09+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/","url":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/","name":"Help - REST API - Retrieve a Document's PDF &#8226; Kafinea","isPartOf":{"@id":"https:\/\/www.kafinea.com\/en\/#website"},"datePublished":"2026-07-26T22:41:34+00:00","dateModified":"2026-11-22T16:52:09+00:00","breadcrumb":{"@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-retrieve-a-documents-pdf\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.kafinea.com\/en\/"},{"@type":"ListItem","position":2,"name":"REST API &#8211; Retrieve a Document&#8217;s PDF"}]},{"@type":"WebSite","@id":"https:\/\/www.kafinea.com\/en\/#website","url":"https:\/\/www.kafinea.com\/en\/","name":"Kafinea","description":"Une solution unique pour toutes vos ambitions","publisher":{"@id":"https:\/\/www.kafinea.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kafinea.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.kafinea.com\/en\/#organization","name":"Kafinea","url":"https:\/\/www.kafinea.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kafinea.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.kafinea.com\/wp-content\/uploads\/2024\/10\/Logo-Kafinea-SVG-orange-bleu.svg","contentUrl":"https:\/\/www.kafinea.com\/wp-content\/uploads\/2024\/10\/Logo-Kafinea-SVG-orange-bleu.svg","width":296.31,"height":66.48,"caption":"Kafinea"},"image":{"@id":"https:\/\/www.kafinea.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/kafinea\/"]}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"David Valminos","author_link":"https:\/\/www.kafinea.com\/en\/author\/david\/"},"uagb_comment_info":0,"uagb_excerpt":"This page describes how to retrieve, from a third-party application, the PDF of a business document (invoice, credit note, quote, order, delivery note, payslip\u2026) exactly as it is generated by Kafinea, using the print template of your choice. By default, when the document is an invoice or a credit note and the conditions are met,...","_links":{"self":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs\/445439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/comments?post=445439"}],"version-history":[{"count":0,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs\/445439\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/media?parent=445439"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/doc_category?post=445439"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/doc_tag?post=445439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}