{"id":410,"date":"2026-11-26T09:00:00","date_gmt":"2026-11-26T08:00:00","guid":{"rendered":"https:\/\/solucom.si\/?p=410"},"modified":"2026-11-26T09:00:00","modified_gmt":"2026-11-26T08:00:00","slug":"fatture-in-cloud-api-integrations","status":"publish","type":"post","link":"https:\/\/solucom.si\/en\/fatture-in-cloud-api-integrazioni\/","title":{"rendered":"Fatture in Cloud via API: connecting e-commerce, CRM and invoicing"},"content":{"rendered":"<p><strong>Fatture in Cloud has public APIs, at version 2, that let another piece of software create invoices, manage clients and products, send e-invoices to the SdI and receive notifications when something changes.<\/strong> It is the way to make your invoicing system talk to your e-commerce, CRM or payment system, without copying data by hand.<\/p>\n<p>Connecting two systems is the easy part. The hard part is making sure the connection does not create duplicate invoices, does not stop silently and does not lose documents. Here we explain what you can automate, how the APIs work and the points where an integration breaks most often.<\/p>\n<h2>What you can automate<\/h2>\n<p>The most common cases for a company:<\/p>\n<ul>\n<li><strong>e-commerce \u2192 invoice<\/strong>: for every paid order the invoice, or the receipt, is created with the customer's details and the order lines;<\/li>\n<li><strong>CRM \u2192 quote and invoice<\/strong>: when an opportunity is won, the quote or the invoice is created already filled in, without retyping the customer record and amounts;<\/li>\n<li><strong>payments \u2192 collections<\/strong>: payments received through Stripe, PayPal or bank transfer mark the right invoice as paid;<\/li>\n<li><strong>invoices \u2192 CRM or accounting<\/strong>: when an invoice is created or modified, the information goes back to the CRM or to the management control spreadsheet;<\/li>\n<li><strong>purchases<\/strong>: supplier invoices received from the SdI can be read via the API and sorted or registered.<\/li>\n<\/ul>\n<p>The APIs cover issued documents (invoices, receipts, quotes, orders, credit notes), received documents, clients and suppliers, products, the cash book and the sending of e-invoices.<\/p>\n<h2>Three ways to connect<\/h2>\n<ol>\n<li><strong>A ready-made plugin or connector.<\/strong> For WooCommerce there are several plugins on WordPress.org that create invoices in Fatture in Cloud. For simple flows there is also the official Zapier integration. You can be up and running in a few hours, but you accept the logic decided by whoever wrote the plugin.<\/li>\n<li><strong>An automation tool<\/strong>, such as n8n or Make, that calls the APIs. It is the middle way: more control over the logic, without software to maintain. We cover it in our article on <a href=\"\/en\/n8n-self-hosted-or-cloud\/\">n8n self-hosted or cloud<\/a>.<\/li>\n<li><strong>A custom integration<\/strong>, written with one of the official SDKs (PHP, Python, JavaScript, TypeScript, Java, C#, Go, Ruby). It is needed when there are many rules: several companies, different numbering sequences, special VAT regimes, high volumes.<\/li>\n<\/ol>\n<p>The choice depends less on technology and more on how many exceptions your process has. If invoices always follow the same rule, a plugin is enough. If someone corrects an invoice by hand every week, the automation needs to be designed.<\/p>\n<h2>How the APIs work<\/h2>\n<p><strong>Authentication.<\/strong> Fatture in Cloud supports three methods: the OAuth 2.0 <em>authorization code<\/em>, the OAuth 2.0 <em>device code<\/em> flows and the manual token. The <strong>manual token<\/strong> is generated from the web interface, choosing the permissions by hand, and <strong>never expires<\/strong>, until someone revokes it. The documentation recommends it only for tests and personal scripts. For an integration running in production OAuth is the better choice, with permissions limited to what is needed.<\/p>\n<p><strong>Companies.<\/strong> Almost all resources belong to a company, not to the user: every call needs the <code>company_id<\/code> of the right company. Anyone managing several companies with the same account must be careful not to write to the wrong VAT number.<\/p>\n<p><strong>Limits.<\/strong> The APIs have precise quotas:<\/p>\n<ul>\n<li><strong>1,000 requests per hour<\/strong> and <strong>40,000 per month<\/strong> per company and application;<\/li>\n<li><strong>300 requests every 5 minutes<\/strong> per company, shared by all the applications connected to that company.<\/li>\n<\/ul>\n<p>If you exceed the hourly or monthly quota you get a 403 error, if you exceed the 5-minute one a 429 error, both indicating how long to wait. Long-term quotas can be raised on request, by explaining your use case. The 5-minute one cannot. On top of these come the limits of your Fatture in Cloud plan: each plan has a maximum number of documents and resources.<\/p>\n<p><strong>Webhooks.<\/strong> Since April 2025 webhooks have been available to everyone. Instead of polling the APIs every few minutes to see whether something has changed, Fatture in Cloud notifies your system when an invoice is created or modified, when the status of an e-invoice changes, when a supplier invoice arrives. You save quota and the data stays in sync.<\/p>\n<h2>Where integrations break<\/h2>\n<p><strong>Duplicate invoices.<\/strong> An order notified twice, or a network error after the invoice has already been created, produces two invoices. Every integration must remember which order has already generated which invoice, and check it before creating another one.<\/p>\n<p><strong>The webhook subscription that expires.<\/strong> If your system responds with errors, Fatture in Cloud sets an expiry 10 days after the first error. If no notification succeeds in those days, the subscription is deleted and notifications stop arriving, without anyone noticing. You need monitoring that flags when notifications stop arriving.<\/p>\n<p><strong>Document links expire.<\/strong> Since 10 September 2025 the document URLs returned by the APIs are valid for <strong>7 days<\/strong>. Anyone who saves those links in the CRM or emails them after a week finds a dead link. The PDF must be downloaded and archived, or the link requested again when needed.<\/p>\n<p><strong>E-invoices cannot be imported ready-made.<\/strong> Through the API the SdI only receives documents created inside Fatture in Cloud. If your management system already produces the XML, you cannot send it as it is: you need to recreate the document via the API with its data. Before sending you can validate the XML, and for testing there is an option called <em>dry run<\/em>, which runs all the checks without sending anything.<\/p>\n<p><strong>The token of someone who has left.<\/strong> A manual token created by a collaborator who no longer works with you keeps working. The integration's credentials should belong to the company, be stored in a safe place and be revoked when no longer needed.<\/p>\n<p><strong>Silent errors.<\/strong> An invoice that is not created because the customer's tax code is missing makes no noise. Every error must end up somewhere a person sees it: an email, a channel, a list of cases to fix.<\/p>\n<h2>Before you start<\/h2>\n<ol>\n<li><strong>Write down the rules<\/strong>: when the invoice is created (at the order, at payment, at shipping), with which numbering, what happens with returns and credit notes.<\/li>\n<li><strong>Clean up the starting data<\/strong>: customer records with tax code, VAT number and recipient code, VAT rates consistent between the e-commerce and the invoicing system.<\/li>\n<li><strong>Test on a test company<\/strong> or using <em>dry run<\/em>, before touching the real numbering.<\/li>\n<li><strong>Decide who checks<\/strong>: who receives the errors, who fixes them, how often orders and invoices are compared.<\/li>\n<\/ol>\n<p>If you are still working out which processes are worth automating, start with <a href=\"\/en\/when-to-automate-a-process\/\">how to tell whether a process can be automated<\/a>.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n\n\n\n<p class=\"sol-fonti\"><small><strong>Sources:<\/strong> official Fatture in Cloud developer documentation: <a href=\"https:\/\/developers.fattureincloud.it\/docs\/authentication\/\" target=\"_blank\" rel=\"noopener\">authentication methods<\/a>, <a href=\"https:\/\/developers.fattureincloud.it\/docs\/authentication\/manual-authentication\/\" target=\"_blank\" rel=\"noopener\">manual token<\/a>, <a href=\"https:\/\/developers.fattureincloud.it\/docs\/basics\/limits-and-quotas\/\" target=\"_blank\" rel=\"noopener\">limits and quotas<\/a>, <a href=\"https:\/\/developers.fattureincloud.it\/docs\/webhooks\/\" target=\"_blank\" rel=\"noopener\">webhooks<\/a> and <a href=\"https:\/\/developers.fattureincloud.it\/docs\/webhooks\/expiration\/\" target=\"_blank\" rel=\"noopener\">subscription expiry<\/a>, <a href=\"https:\/\/developers.fattureincloud.it\/docs\/guides\/e-invoice-management\/\" target=\"_blank\" rel=\"noopener\">e-invoice management<\/a>, <a href=\"https:\/\/developers.fattureincloud.it\/docs\/guides\/externally-generated-xml\/\" target=\"_blank\" rel=\"noopener\">XML generated elsewhere<\/a>, <a href=\"https:\/\/developers.fattureincloud.it\/blog\/url-expiration\/\" target=\"_blank\" rel=\"noopener\">expiry of document URLs<\/a>. Checked on 10 October 2026.<\/small><\/p>\n<p><strong>Do you want to connect e-commerce, CRM and invoicing without copying data by hand?<\/strong> We design the integration, with checks against duplicate invoices and alerts when something stops. See our page on <a href=\"\/en\/automations\/\">Automations<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Cosa si pu\u00f2 automatizzare con le API di Fatture in Cloud, come funzionano autenticazione, limiti e webhook, e dove le integrazioni si rompono.<\/p>","protected":false},"author":1,"featured_media":409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-contenuti-automazioni"],"_links":{"self":[{"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":1,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":457,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/posts\/410\/revisions\/457"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/media\/409"}],"wp:attachment":[{"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solucom.si\/en\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"WP","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}