<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Juan Cantón Rodríguez</title>
    <description>The latest articles on DEV Community by Juan Cantón Rodríguez (@srcanton).</description>
    <link>https://dev.to/srcanton</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4018882%2F95e3fdf9-a4f3-4923-9c54-45039a38b44c.png</url>
      <title>DEV Community: Juan Cantón Rodríguez</title>
      <link>https://dev.to/srcanton</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/srcanton"/>
    <language>en</language>
    <item>
      <title>I built an MCP server that tells you why the AEAT rejected your Odoo invoices</title>
      <dc:creator>Juan Cantón Rodríguez</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/srcanton/i-built-an-mcp-server-that-tells-you-why-the-aeat-rejected-your-odoo-invoices-4ba1</link>
      <guid>https://dev.to/srcanton/i-built-an-mcp-server-that-tells-you-why-the-aeat-rejected-your-odoo-invoices-4ba1</guid>
      <description>&lt;p&gt;Spain is about to make every invoice talk to the tax agency. With &lt;strong&gt;Veri*Factu&lt;/strong&gt;, each invoice a company issues is sent to the AEAT as a signed, chained record, with a QR code on the paper. Companies start on 1 January 2027 and everyone else on 1 July 2027. The government has announced a delay to 2028, but as I write this it is not in the official gazette, so the legal dates are still the 2027 ones. The larger companies already report every invoice through &lt;strong&gt;SII&lt;/strong&gt;, which is the older system and exempts them from Veri*Factu.&lt;/p&gt;

&lt;p&gt;Odoo handles both. What it doesn't do is answer the questions an accountant actually asks at the end of the quarter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which invoices did the AEAT reject this quarter, and why?&lt;/li&gt;
&lt;li&gt;Which ones were never sent?&lt;/li&gt;
&lt;li&gt;When does our certificate expire?&lt;/li&gt;
&lt;li&gt;How much output and input VAT do we have, by tax?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Odoo you open invoices one by one, or build a filter, or export to a spreadsheet. So I wrote a small MCP server that lets Claude (or any MCP client) answer them directly: &lt;a href="https://github.com/francodesystems/odoo-verifactu-mcp" rel="noopener noreferrer"&gt;odoo-verifactu-mcp&lt;/a&gt;. It's open source (MIT) and read-only. It never sends, cancels or changes anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two families of modules, one set of answers
&lt;/h2&gt;

&lt;p&gt;The first surprise was that "Veri*Factu in Odoo" means two different things.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Odoo S.A.&lt;/th&gt;
&lt;th&gt;OCA (l10n-spain)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Veri*Factu&lt;/td&gt;
&lt;td&gt;&lt;code&gt;l10n_es_edi_verifactu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;l10n_es_verifactu_oca&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SII&lt;/td&gt;
&lt;td&gt;&lt;code&gt;l10n_es_edi_sii&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;l10n_es_aeat_sii_oca&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where the state lives&lt;/td&gt;
&lt;td&gt;its own field on the invoice, plus a history model&lt;/td&gt;
&lt;td&gt;one shared &lt;code&gt;aeat_state&lt;/code&gt; for both&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;They even name things differently. Odoo calls it &lt;code&gt;registered_with_errors&lt;/code&gt;, the OCA calls it &lt;code&gt;sent_w_errors&lt;/code&gt;. A rejection is &lt;code&gt;rejected&lt;/code&gt; in one and &lt;code&gt;incorrect&lt;/code&gt; or &lt;code&gt;cancel_incorrect&lt;/code&gt; in the other. Odoo's SII state is computed and not stored, so you can't filter on it at all; you have to go through its document model.&lt;/p&gt;

&lt;p&gt;In Spain a lot of integrators run the OCA modules, so supporting only one family would leave half the market out. The server detects which modules are installed (by asking &lt;code&gt;fields_get&lt;/code&gt; on &lt;code&gt;account.move&lt;/code&gt;) and maps both to the same six states: &lt;code&gt;pending&lt;/code&gt;, &lt;code&gt;accepted&lt;/code&gt;, &lt;code&gt;accepted_with_errors&lt;/code&gt;, &lt;code&gt;rejected&lt;/code&gt;, &lt;code&gt;invalid&lt;/code&gt; and &lt;code&gt;cancelled&lt;/code&gt;. Whoever asks gets the same answer either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Six tools
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;compliance_overview&lt;/code&gt;: installed modules, how each company is set up (test or production), certificates and the days they have left, and invoice counts by state. Start here.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;verifactu_invoices&lt;/code&gt;: invoices with their Veri*Factu state, the AEAT CSV and the last error.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;verifactu_errors&lt;/code&gt;: errors of the period grouped by message, with sample invoice numbers. This is the most useful one: "[4102] El XML no cumple el esquema" on twelve invoices is one problem to fix, not twelve.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sii_invoices&lt;/code&gt;: the same for SII, issued and received.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;invoice_aeat_detail&lt;/code&gt;: one invoice, its QR URL, every submission and every error.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;vat_summary&lt;/code&gt;: VAT by tax for the quarter, a working aid before filing form 303.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Two things I only learned by testing against real databases
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Exempt taxes don't create tax lines.&lt;/strong&gt; My first VAT summary added up the tax lines, which is the obvious approach. Odoo's demo company for Spain invoices with a 0 % exempt tax, and a 0 % tax creates no tax line at all, so its whole base vanished from the summary. For a form 303 the exempt base matters. The fix: take the base from the lines that carry each tax, and the amount from the tax lines. Checked to the cent against the journal items.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some OCA fields fail when you read them.&lt;/strong&gt; Unit tests against a simulated Odoo all passed. Then I spun up Odoo 18 with the real OCA modules, one company on Veri*Factu and one on SII, and asked for the detail of a vendor bill from the SII company. Odoo answered with an error: &lt;code&gt;21% G tax is not mapped to VERI*FACTU&lt;/code&gt;. The OCA module computes some Veri*Factu fields when you read them, and on an invoice that isn't Veri*Factu that computation raises. Now the server first reads which regime applies to the invoice and only then asks for that regime's fields. A mock would never have told me that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Odoo 16 to 20
&lt;/h2&gt;

&lt;p&gt;Odoo 19 introduced a new external API, JSON-2: &lt;code&gt;POST /json/2/&amp;lt;model&amp;gt;/&amp;lt;method&amp;gt;&lt;/code&gt; with the API key as a bearer token and named arguments. Older versions use JSON-RPC with &lt;code&gt;execute_kw&lt;/code&gt;. The client picks one from the server version, and since both take named arguments the rest of the code doesn't care. It's tested on Odoo 20 over both, and on Odoo 18 with the OCA over JSON-RPC.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Create an API key in Odoo (Preferences → Account Security → New API Key) for a user who can read Accounting, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add odoo-verifactu \
  -e &lt;span class="nv"&gt;ODOO_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://mycompany.odoo.com \
  -e &lt;span class="nv"&gt;ODOO_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-api-key \
  -- npx -y @francodesystems-npm/odoo-verifactu-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Odoo 16-18 also set &lt;code&gt;ODOO_DB&lt;/code&gt; and &lt;code&gt;ODOO_USERNAME&lt;/code&gt;. Then ask something like "¿Qué facturas ha rechazado la AEAT este trimestre y por qué?".&lt;/p&gt;

&lt;p&gt;If you run the OCA modules and see something odd, an issue on the repo is very welcome.&lt;/p&gt;




&lt;p&gt;I'm Juan, and I run &lt;a href="https://francodesystems.com/odoo" rel="noopener noreferrer"&gt;Francodesystems&lt;/a&gt;, an Odoo implementation and integrations studio in Barcelona. There's a &lt;a href="https://francodesystems.com/open-source/odoo-verifactu-mcp" rel="noopener noreferrer"&gt;Spanish page for the server&lt;/a&gt; with a worked example of a quarter-end check, and if you want the regulatory side (the dates, who is affected, and what Odoo brings out of the box), I keep it up to date at &lt;a href="https://francodesystems.com/verifactu/odoo" rel="noopener noreferrer"&gt;Verifactu in Odoo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>odoo</category>
      <category>mcp</category>
      <category>opensource</category>
      <category>typescript</category>
    </item>
    <item>
      <title>What I learned sending EUDR due diligence statements to TRACES over SOAP</title>
      <dc:creator>Juan Cantón Rodríguez</dc:creator>
      <pubDate>Sat, 14 Nov 2026 10:24:53 +0000</pubDate>
      <link>https://dev.to/srcanton/what-i-learned-sending-eudr-due-diligence-statements-to-traces-over-soap-10am</link>
      <guid>https://dev.to/srcanton/what-i-learned-sending-eudr-due-diligence-statements-to-traces-over-soap-10am</guid>
      <description>&lt;p&gt;From 30 December 2026, any large or medium company that places coffee, cocoa, timber, soy, rubber, palm oil or cattle (and their derived products) on the EU market needs a &lt;strong&gt;due diligence statement&lt;/strong&gt; (DDS) under the EU Deforestation Regulation (EUDR, Regulation 2023/1115). Small and micro companies follow on 30 June 2027, except for timber. The statement goes into &lt;strong&gt;TRACES&lt;/strong&gt;, the European Commission's system, and the goods don't clear customs without its reference number.&lt;/p&gt;

&lt;p&gt;You can type a DDS into the TRACES web form. But if you import a container of timber every week, you want your ERP to do it. TRACES has a machine-to-machine API for exactly that, and I spent the last few weeks building against it for &lt;a href="https://sourevo.com/en/developers" rel="noopener noreferrer"&gt;Sourevo&lt;/a&gt;. Here is what the documentation didn't make obvious.&lt;/p&gt;

&lt;h2&gt;
  
  
  It's SOAP, with a WS-Security digest
&lt;/h2&gt;

&lt;p&gt;The operator API is SOAP 1.1 with a WS-Security &lt;code&gt;UsernameToken&lt;/code&gt; and a password digest. The digest itself is the classic one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PasswordDigest = Base64( SHA-1( nonce + created + authenticationKey ) )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The trap is the word "nonce". In the digest you concatenate the &lt;strong&gt;raw nonce bytes&lt;/strong&gt;, not the Base64 string you put in the &lt;code&gt;&amp;lt;wsse:Nonce&amp;gt;&lt;/code&gt; element. If you hash the Base64 text, every call fails authentication and the error doesn't tell you why.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;randomBytes&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:crypto'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;nonce&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;randomBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;created&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toISOString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="no"&gt;Z&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Z'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;digest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sha1'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;concat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;nonce&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;created&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;authKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// &amp;lt;wsse:Nonce EncodingType="...#Base64Binary"&amp;gt;{nonce.toString('base64')}&amp;lt;/wsse:Nonce&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two more details: &lt;code&gt;created&lt;/code&gt; goes without milliseconds, and every request also carries a &lt;code&gt;WebServiceClientId&lt;/code&gt; header. Its value is different in the test environment (&lt;code&gt;eudr-test&lt;/code&gt;) and in production (&lt;code&gt;eudr-repository&lt;/code&gt;), so it belongs in configuration, not in code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test against the right environment
&lt;/h2&gt;

&lt;p&gt;There are two "acceptance" systems and it's easy to pick the wrong one. The general TRACES NT acceptance environment is not where EUDR lives. EUDR has its own, at &lt;code&gt;acceptance.eudr.webcloud.ec.europa.eu&lt;/code&gt;, with its own operator registration and its own "Web Services Access" request. We registered in the general one first and lost a few days before the helpdesk pointed us to the right host.&lt;/p&gt;

&lt;p&gt;The WSDL is not identical either. The EUDR acceptance contract has structured addresses (&lt;code&gt;street&lt;/code&gt;, &lt;code&gt;postalCode&lt;/code&gt;, &lt;code&gt;city&lt;/code&gt;) where older material shows a single free-text field. Download the WSDL and XSD from the environment you will actually call and generate or validate against those.&lt;/p&gt;

&lt;h2&gt;
  
  
  Old API versions are switched off
&lt;/h2&gt;

&lt;p&gt;Our first real submission came back with &lt;code&gt;This API version has been discontinued&lt;/code&gt;. After the 2025 amendment to the regulation (Regulation 2025/2650), versions 1 and 2 of the submission service are gone. Version 4 is one service, &lt;code&gt;EUDRDueDiligenceStatementServiceV4&lt;/code&gt;, that submits, amends, withdraws and retrieves.&lt;/p&gt;

&lt;p&gt;Things that changed along the way and break code written against older examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;retractDds&lt;/code&gt; is now &lt;code&gt;withdrawDds&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The operator role only accepts &lt;code&gt;OPERATOR&lt;/code&gt; or &lt;code&gt;REPRESENTATIVE_OPERATOR&lt;/code&gt;. Traders no longer submit statements.&lt;/li&gt;
&lt;li&gt;Referenced statements go in &lt;code&gt;groupedDeclarations&lt;/code&gt;, by reference number.&lt;/li&gt;
&lt;li&gt;Error codes moved. Version 1 put &lt;code&gt;EUDR_SNAKE_CASE&lt;/code&gt; codes in &lt;code&gt;&amp;lt;message&amp;gt;&lt;/code&gt;. Version 4 puts &lt;code&gt;EUDR-KEBAB-CASE&lt;/code&gt; codes in &lt;code&gt;&amp;lt;ID&amp;gt;&lt;/code&gt;. Parse both if you ever had a V1 client.&lt;/li&gt;
&lt;li&gt;A lookup with no results is not an empty list. It's a &lt;code&gt;NotFoundException&lt;/code&gt; fault, which you have to catch and turn into "nothing found".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Rules the XSD doesn't tell you
&lt;/h2&gt;

&lt;p&gt;The schema validates the shape of the message. The business rules live on the server, and a few of them surprised us:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;percentageEstimationOrDeviation&lt;/code&gt; is &lt;strong&gt;required&lt;/strong&gt; for a &lt;code&gt;DOMESTIC&lt;/code&gt; activity and &lt;strong&gt;rejected&lt;/strong&gt; for &lt;code&gt;IMPORT&lt;/code&gt;. Same field, same schema, opposite rules depending on another field.&lt;/li&gt;
&lt;li&gt;For &lt;code&gt;IMPORT&lt;/code&gt; and &lt;code&gt;EXPORT&lt;/code&gt;, the operator needs an &lt;strong&gt;EORI number on its TRACES profile&lt;/strong&gt;. Without it you get &lt;code&gt;EUDR-OPERATOR-EORI-FOR-ACTIVITY-MISSING&lt;/code&gt;, even though the EORI isn't in your message at all. It's account setup, not payload.&lt;/li&gt;
&lt;li&gt;A representative submitting for a client must send the client's street and country, or you get &lt;code&gt;EUDR-BEHALF-OPERATOR-STREET-EMPTY&lt;/code&gt; and friends.&lt;/li&gt;
&lt;li&gt;You can only amend or withdraw a statement while it's &lt;code&gt;AVAILABLE&lt;/code&gt;. Right after submission it's &lt;code&gt;SUBMITTED&lt;/code&gt;, and you have to wait.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last one matters for the design. Submission is asynchronous: you get an identifier back, TRACES analyses the statement, and the reference number and verification number show up later. Your integration has to poll (or be told) before it can hand the reference number to customs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Geolocation is GeoJSON inside XML, in Base64
&lt;/h2&gt;

&lt;p&gt;Each statement carries the geolocation of the plots where the commodity was produced, as GeoJSON. Inside the SOAP message, that GeoJSON goes &lt;strong&gt;Base64-encoded&lt;/strong&gt; in &lt;code&gt;geometryGeojson&lt;/code&gt;. A plot can be a point or a polygon, but plots over four hectares need a polygon (cattle establishments are the exception).&lt;/p&gt;

&lt;p&gt;Once the SOAP side works, the files are the next source of trouble, and they come from suppliers you don't control: rings that don't close, latitude and longitude swapped, self-intersecting polygons, a point where a polygon is required. We ended up building a free &lt;a href="https://sourevo.com/en/traces-geojson-validator" rel="noopener noreferrer"&gt;GeoJSON validator for TRACES&lt;/a&gt; that checks for those (and reads KML and CSV too) before the file goes into a statement. It doesn't store the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we put in front of it
&lt;/h2&gt;

&lt;p&gt;Nobody should have to write WS-Security headers to import coffee. So Sourevo exposes a REST API over all of this (suppliers, plots, batches, statements) with a few properties that I'd want from any API that talks to a slow, asynchronous government system:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Idempotency on every POST.&lt;/strong&gt; Send an &lt;code&gt;Idempotency-Key&lt;/code&gt; header and a retried request within 24 hours returns the original response with &lt;code&gt;Idempotent-Replayed: true&lt;/code&gt;, instead of creating a second statement. ERPs retry; customs paperwork shouldn't double.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your own IDs.&lt;/strong&gt; Suppliers, products and batches take an &lt;code&gt;externalRef&lt;/code&gt; (the ID in your ERP). Creating the same &lt;code&gt;externalRef&lt;/code&gt; twice returns the existing record with &lt;code&gt;duplicate: true&lt;/code&gt;, so a sync job can be rerun safely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Webhooks instead of polling.&lt;/strong&gt; When TRACES assigns the reference number, you get a &lt;code&gt;dds.status_changed&lt;/code&gt; event. Each delivery is signed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="na"&gt;X-Sourevo-Signature: t&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;unix&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;hex&lt;/span&gt; &lt;span class="no"&gt;HMAC&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;SHA256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;secret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;t&amp;gt;.&amp;lt;body&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the timestamp tolerance and compare the HMAC in constant time. Failed deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2, 6, 12 and 24 hours, then marked as failed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A test mode that hits the real test system.&lt;/strong&gt; During a trial, the API submits to the EUDR acceptance environment, so you get real TRACES validation errors with no legal effect. The response header &lt;code&gt;X-Sourevo-Mode&lt;/code&gt; tells you which environment you're in.&lt;/p&gt;

&lt;p&gt;There's also an n8n community node (&lt;code&gt;@francodesystems-npm/n8n-nodes-sourevo&lt;/code&gt;) if you'd rather wire this up without code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Hash the raw nonce bytes, not their Base64.&lt;/li&gt;
&lt;li&gt;Make sure you're in the EUDR acceptance environment, not the general TRACES one, and use its WSDL.&lt;/li&gt;
&lt;li&gt;Use version 4. Anything older is switched off.&lt;/li&gt;
&lt;li&gt;Expect business rules the schema can't express, and put account prerequisites (like the EORI) in your onboarding checklist.&lt;/li&gt;
&lt;li&gt;Treat submission as asynchronous and design for the reference number arriving later.&lt;/li&gt;
&lt;li&gt;Validate geometry before you send it. That's where most rejections come from.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you're integrating an ERP with EUDR and hit something I didn't cover, tell me in the comments. The full API reference is in the &lt;a href="https://sourevo.com/en/developers" rel="noopener noreferrer"&gt;Sourevo developer docs&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>typescript</category>
      <category>soap</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Spain's road transport document went digital. Here's what we learned building its API and n8n node</title>
      <dc:creator>Juan Cantón Rodríguez</dc:creator>
      <pubDate>Sat, 14 Nov 2026 10:23:19 +0000</pubDate>
      <link>https://dev.to/srcanton/spains-road-transport-document-went-digital-heres-what-we-learned-building-its-api-and-n8n-node-e10</link>
      <guid>https://dev.to/srcanton/spains-road-transport-document-went-digital-heres-what-we-learned-building-its-api-and-n8n-node-e10</guid>
      <description>&lt;p&gt;Every truck that moves goods for hire inside Spain has to carry a control document, the &lt;strong&gt;DeCA&lt;/strong&gt; (documento de control administrativo). It has existed since 2013 (Orden FOM/2861/2012): who hired the transport, who actually drives it, origin, destination, goods and weight. For years it was a sheet of paper in the cab.&lt;/p&gt;

&lt;p&gt;Since &lt;strong&gt;5 October 2026&lt;/strong&gt; it has to be digital. Law 9/2025 made it mandatory, and a resolution of 5 June 2026 says what "digital" means: a native PDF (not a scan, 5 MB at most), with a QR code inside it that points to that document's own HTTPS URL. Opening the URL has to download the PDF directly, with no login, no password and no "download" button, at least until the transport is over. The driver carries a copy with the QR, on the phone or printed. If you want the full list, we wrote it up in &lt;a href="https://decafirma.com/guias/como-tiene-que-ser-el-deca-digital" rel="noopener noreferrer"&gt;what a digital DeCA has to look like&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We build &lt;strong&gt;DecaFirma&lt;/strong&gt;, an app that issues the DeCA, gets the delivery note signed on the customer's phone and handles delivery routes. Most transport companies issue from the web or the Android app. The ones with an ERP don't want to type the same shipment twice, and that's what the API, the webhooks and now an n8n node are for. This post is about the decisions that law forced on the API, and about publishing the node.&lt;/p&gt;

&lt;h2&gt;
  
  
  A correction is a new version, not a new document
&lt;/h2&gt;

&lt;p&gt;Trucks get loaded, then the plate changes, or the weight, or the consignee. The resolution allows exactly two ways to change an issued DeCA: edit the same PDF (add the new data and the reason, keep the old data marked as no longer valid) or issue a brand new PDF with its own URL and QR. Section seven is blunt about it: those are the only valid ways.&lt;/p&gt;

&lt;p&gt;The second option sounds simpler and is worse in practice. The driver already has the first QR on their phone, and an inspector scanning it would get the old data. So in our API an update never creates a new document:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;PATCH&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;shipments&lt;/span&gt;&lt;span class="o"&gt;/:&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It produces a &lt;strong&gt;new version of the same document&lt;/strong&gt;, at the same URL, so the QR the driver is already carrying keeps working and always serves the latest PDF. The old version is kept. That's how we read &lt;a href="https://decafirma.com/guias/modificar-un-deca" rel="noopener noreferrer"&gt;how to modify a DeCA&lt;/a&gt;. Changing the vehicle has its own shortcut, &lt;code&gt;PATCH /shipments/:id/vehicle&lt;/code&gt;, so an ERP doesn't have to resend the whole shipment for a new plate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retries must not issue a second legal document
&lt;/h2&gt;

&lt;p&gt;ERPs retry. Webhook senders retry. n8n retries if you tell it to. With most APIs a duplicate is an annoyance. Here a duplicate is a second legal document for the same transport.&lt;/p&gt;

&lt;p&gt;So creation is &lt;strong&gt;idempotent by reference&lt;/strong&gt;. If you create a shipment (or a route) with a &lt;code&gt;reference&lt;/code&gt; that already exists in the company, you get the existing one back with &lt;code&gt;duplicate: true&lt;/code&gt; and nothing new is issued. Put the order number in &lt;code&gt;reference&lt;/code&gt; and you can retry as much as you like.&lt;/p&gt;

&lt;h2&gt;
  
  
  Save first, issue second
&lt;/h2&gt;

&lt;p&gt;The data comes from someone else's system, and it is not always right. The classic one is a tax ID that doesn't validate. Our first instinct was to reject the request. But then the shipment is lost, and the person fixing it has to go back to the ERP and send it again.&lt;/p&gt;

&lt;p&gt;Now &lt;code&gt;POST /shipments&lt;/code&gt; always saves the shipment, and then tries to issue the DeCA, the delivery note or both. If issuing fails, the response carries the error code, a &lt;code&gt;details.reason&lt;/code&gt; and the id of the saved shipment. You fix the field with &lt;code&gt;PATCH&lt;/code&gt; and call &lt;code&gt;POST /shipments/:id/issue&lt;/code&gt;. In the n8n node this shows up as a failed item with all three pieces of information, and with &lt;em&gt;Continue On Fail&lt;/em&gt; you can route it to whoever fixes the data.&lt;/p&gt;

&lt;p&gt;Error codes are stable strings (&lt;code&gt;validation_error&lt;/code&gt;, &lt;code&gt;unprocessable&lt;/code&gt;, &lt;code&gt;rate_limited&lt;/code&gt;, &lt;code&gt;addon_required&lt;/code&gt;…), so workflows can branch on them instead of parsing messages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Webhooks: one URL per company, signed
&lt;/h2&gt;

&lt;p&gt;Events are what make the integration worth it: &lt;code&gt;document.issued&lt;/code&gt;, &lt;code&gt;document.updated&lt;/code&gt;, &lt;code&gt;document.voided&lt;/code&gt;, &lt;code&gt;delivery_note.signed&lt;/code&gt;, &lt;code&gt;cmr.signed&lt;/code&gt;, &lt;code&gt;attachment.received&lt;/code&gt; (when the driver uploads a paper for the shipment).&lt;/p&gt;

&lt;p&gt;Every delivery carries &lt;code&gt;X-DecaFirma-Signature: sha256=&amp;lt;hex&amp;gt;&lt;/code&gt;, an HMAC-SHA256 of the raw body with the webhook secret. The trigger node checks it like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timingSafeEqual&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'crypto'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;verifyDecaFirmaSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;secret&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'missing'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9a&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'malformed'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sha256'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;secret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;given&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'hex'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;given&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nf"&gt;timingSafeEqual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;given&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'mismatch'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details matter. You sign and verify the &lt;strong&gt;raw bytes&lt;/strong&gt;, not the parsed JSON, because re-serialising can change the order of keys or the whitespace. And the length check comes before &lt;code&gt;timingSafeEqual&lt;/code&gt;, which throws on buffers of different length.&lt;/p&gt;

&lt;p&gt;The design choice with the most consequences is that &lt;strong&gt;a company has one webhook URL&lt;/strong&gt;. It keeps delivery simple and the history readable, but it means the n8n trigger and our Odoo module compete for it. When you activate a workflow, the trigger registers its URL with &lt;code&gt;POST /api/v1/webhook&lt;/code&gt;. If the company already sends webhooks somewhere else, the trigger refuses to take the URL over unless you turn on &lt;strong&gt;Replace Existing Webhook&lt;/strong&gt;. When you deactivate it, it only deletes the webhook if the URL is still its own. Silently stealing the Odoo connection because someone tested a workflow would be the worst possible failure.&lt;/p&gt;

&lt;p&gt;Failed deliveries are not retried, so the node also has &lt;strong&gt;Document → Get Many&lt;/strong&gt; with &lt;code&gt;since&lt;/code&gt;. A scheduled workflow that stores the last &lt;code&gt;changedAt&lt;/code&gt; and asks for everything after it catches whatever a webhook missed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Publishing the node
&lt;/h2&gt;

&lt;p&gt;The node itself has no runtime dependencies: the HTTP calls go through n8n's own request helper, and the signature check uses &lt;code&gt;crypto&lt;/code&gt;. Most of the work was in publishing it the way n8n wants for verified community nodes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Provenance is required.&lt;/strong&gt; n8n's checker (&lt;code&gt;npx @n8n/scan-community-package &amp;lt;package&amp;gt;&lt;/code&gt;) checks provenance, fetches the source from the commit the package says it was built from, and analyses it. A package published from a laptop has no provenance, so we publish from GitHub Actions with &lt;code&gt;npm publish --provenance&lt;/code&gt; on a version tag.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;lts/*&lt;/code&gt; will bite you.&lt;/strong&gt; Our first workflow used &lt;code&gt;node-version: 'lts/*'&lt;/code&gt;. On the day we published, that resolved to Node 26, and &lt;code&gt;isolated-vm&lt;/code&gt;, a native module that &lt;code&gt;n8n-workflow&lt;/code&gt; (a dev dependency of every node) pulls in through its expression runtime, failed to build. Running the scanner locally on Node 21 fails the same way. Pinning &lt;code&gt;node-version: '22'&lt;/code&gt; fixed both. In a release workflow, "whatever is newest today" is not a version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trusted publishing comes after the first publish.&lt;/strong&gt; npm only lets you set up a Trusted Publisher (OIDC from GitHub, no token) on a package that already exists. So the first version goes out with a short-lived token stored as a repository secret. After that you switch to OIDC and delete the token.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;In n8n: &lt;strong&gt;Settings → Community Nodes → Install&lt;/strong&gt; and enter &lt;code&gt;@francodesystems-npm/n8n-nodes-decafirma&lt;/code&gt;. The credential is an API key that starts with &lt;code&gt;dfk_&lt;/code&gt;; the credential test calls &lt;code&gt;GET /api/v1/series&lt;/code&gt;, which changes nothing. The full API reference is on the &lt;a href="https://decafirma.com/desarrolladores" rel="noopener noreferrer"&gt;developers page&lt;/a&gt;, and the node is MIT on &lt;a href="https://github.com/francodesystems/n8n-nodes-decafirma" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A typical flow is three nodes. A trigger from your shop or ERP, then &lt;strong&gt;Shipment → Create&lt;/strong&gt; with &lt;code&gt;issue: both&lt;/code&gt; and the order number as &lt;code&gt;reference&lt;/code&gt;, then send the driver the public URL and the customer the signing link. Going the other way, the &lt;strong&gt;DecaFirma Trigger&lt;/strong&gt; on &lt;code&gt;delivery_note.signed&lt;/code&gt; plus &lt;strong&gt;Document → Download PDF&lt;/strong&gt; puts the signed delivery note back in your ERP.&lt;/p&gt;

&lt;p&gt;If you integrate other countries' transport documents (eCMR, e-FTI), I'd like to hear how you handle corrections. The "same URL, new version" rule is the part I'd most like to compare.&lt;/p&gt;

</description>
      <category>n8n</category>
      <category>api</category>
      <category>webhooks</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Holded's API grew up in 2026: webhooks, an MCP server, and the quota nobody mentions</title>
      <dc:creator>Juan Cantón Rodríguez</dc:creator>
      <pubDate>Thu, 08 Oct 2026 06:44:38 +0000</pubDate>
      <link>https://dev.to/srcanton/holdeds-api-grew-up-in-2026-webhooks-an-mcp-server-and-the-quota-nobody-mentions-25lp</link>
      <guid>https://dev.to/srcanton/holdeds-api-grew-up-in-2026-webhooks-an-mcp-server-and-the-quota-nobody-mentions-25lp</guid>
      <description>&lt;p&gt;I build integrations on top of &lt;a href="https://francodesystems.com/en/holded-api-v2" rel="noopener noreferrer"&gt;Holded&lt;/a&gt;, the invoicing and accounting platform a lot of Spanish SMEs run on. For most of the last year, every Holded integration I shipped had the same shape: poll the API on a schedule, diff the results, push changes somewhere else.&lt;/p&gt;

&lt;p&gt;That changed this year. Holded's API v2 now has signed webhooks, and in August Holded shipped an official MCP server so Claude or ChatGPT can talk to your account. Both are good news. Both also come with details that will bite you if you only read the announcement. Here is what I have learned wiring them into real projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Webhooks exist now, but not for everything
&lt;/h2&gt;

&lt;p&gt;Holded sends webhooks when a &lt;strong&gt;contact, invoice or payment&lt;/strong&gt; is created, updated or deleted. Each delivery is signed with HMAC, so you can verify it came from Holded, and it carries an &lt;code&gt;x-holded-webhook-id&lt;/code&gt; header.&lt;/p&gt;

&lt;p&gt;Use that header. A webhook can arrive more than once (retries after a timeout are normal), and "I processed this invoice twice" is the most expensive bug in accounting integrations. My rule: store the webhook id, refuse to process one you have already seen, and only then do the work.&lt;/p&gt;

&lt;p&gt;What webhooks do &lt;strong&gt;not&lt;/strong&gt; cover matters just as much. There is no event for an invoice falling due. If your flow is "remind the customer three days before the due date" or "escalate invoices 15 days overdue", you still need a scheduled job that queries pending invoices every day. Webhooks replace part of your polling, not all of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Polling has a monthly price tag
&lt;/h2&gt;

&lt;p&gt;This is the one that surprised me. The Holded API has a &lt;strong&gt;monthly request quota that depends on the plan&lt;/strong&gt;, and every API key on the account shares it. At the time of writing, the documented quotas are 500 requests a month on Plus, 2,000 on Basic, 7,500 on Standard and 30,000 on Advanced.&lt;/p&gt;

&lt;p&gt;Now do the maths on a naive integration that polls every 5 minutes: 12 calls an hour, 288 a day, about &lt;strong&gt;8,640 a month&lt;/strong&gt;. One modest polling loop is already over the Standard quota, before you count the calls that actually do something.&lt;/p&gt;

&lt;p&gt;So the design order for a Holded integration in 2026 is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use webhooks for everything they cover.&lt;/li&gt;
&lt;li&gt;Poll only what has no event, and as rarely as the business allows (a daily due-date check, not a 5-minute one).&lt;/li&gt;
&lt;li&gt;Count your calls per month before you go live, against the customer's plan.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. An update replaces the whole record
&lt;/h2&gt;

&lt;p&gt;In API v2, a &lt;code&gt;PUT&lt;/code&gt; on a contact or an invoice replaces all its editable fields. If you send only the field you want to change, you wipe the rest.&lt;/p&gt;

&lt;p&gt;This shows up the moment you sync data back into Holded, for example marking a contact as unsubscribed after it opted out in your email tool. The safe pattern is read, merge, write the full object. Boring, but it is the difference between "we flagged the unsubscribe" and "we deleted the customer's address".&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The MCP server is real, and it is deliberately limited
&lt;/h2&gt;

&lt;p&gt;In August 2026 Holded published an official MCP server. You add it as a custom connector in Claude (and it also works in ChatGPT), authorise it with your Holded user, and choose between two profiles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Analytics:&lt;/strong&gt; read only. Good for "how much are we owed?" or "what did we invoice this quarter?".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operational:&lt;/strong&gt; can create contacts, CRM items, quotes, projects and inventory records. Accounting, invoices and taxes stay &lt;strong&gt;read only&lt;/strong&gt; even here.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I think that last restriction is exactly right. An issued invoice in Spain is not something you edit, you correct it with a corrective invoice, and with Verifactu that discipline is not optional. The raw API is a different story: a key with write permission on invoices can create, replace and delete them, including deleting up to 100 in a single call. If you build your own MCP server on the API, do not expose that. Scope the key per resource (read on invoices, write only on drafts), drop the delete tools entirely, and validate every amount against Holded before anything uses it.&lt;/p&gt;

&lt;p&gt;For a lot of small companies, the official connector in the analytics profile is all they need, and you do not need to build anything. Custom work starts to make sense when you want processes that run without anyone in the chat, validation against the company's own rules, or an audit log of every call. I wrote up where that line sits &lt;a href="https://francodesystems.com/integraciones/holded-claude" rel="noopener noreferrer"&gt;here&lt;/a&gt; (in Spanish).&lt;/p&gt;

&lt;h2&gt;
  
  
  5. No-code users get some of this for free
&lt;/h2&gt;

&lt;p&gt;If you use n8n, the &lt;a href="https://francodesystems.com/en/open-source/n8n-nodes-holded" rel="noopener noreferrer"&gt;verified Holded node&lt;/a&gt; I maintain covers the whole API v2 plus a webhook trigger, so you can start flows from Holded events instead of a schedule. The quota point above still applies inside n8n: a Schedule trigger every 5 minutes burns the same 8,640 calls a month.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Webhooks for contacts, invoices and payments: use them, and deduplicate by webhook id.&lt;/li&gt;
&lt;li&gt;No due-date event: keep one daily scheduled check.&lt;/li&gt;
&lt;li&gt;Count your API calls per month against the customer's plan before launch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;PUT&lt;/code&gt; replaces the whole record: read, merge, write.&lt;/li&gt;
&lt;li&gt;The official MCP server keeps invoices read only. Keep that rule in anything you build.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are migrating an older integration, I also keep a list of &lt;a href="https://francodesystems.com/en/blog/holded-api-v1-v2-migration-traps" rel="noopener noreferrer"&gt;traps when moving from Holded API v1 to v2&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I build these integrations at &lt;a href="https://francodesystems.com" rel="noopener noreferrer"&gt;Francodesystems&lt;/a&gt;. Happy to answer questions in the comments.&lt;/p&gt;

</description>
      <category>api</category>
      <category>webhooks</category>
      <category>mcp</category>
      <category>automation</category>
    </item>
    <item>
      <title>The ISO 27001 controls that actually matter when you connect two systems</title>
      <dc:creator>Juan Cantón Rodríguez</dc:creator>
      <pubDate>Sun, 12 Jul 2026 08:14:37 +0000</pubDate>
      <link>https://dev.to/srcanton/the-iso-27001-controls-that-actually-matter-when-you-connect-two-systems-4hon</link>
      <guid>https://dev.to/srcanton/the-iso-27001-controls-that-actually-matter-when-you-connect-two-systems-4hon</guid>
      <description>&lt;p&gt;I build integrations for a living: ecommerce to ERP, CRM to invoicing, and lately ERPs to AI agents. Every one of them has the same quiet security problem, and most "ISO 27001 for developers" content misses it because it stays at the policy level.&lt;/p&gt;

&lt;p&gt;Here is the thing nobody says out loud: &lt;strong&gt;integrating two systems means taking data out of the place where it lived protected and moving it across a network you do not control.&lt;/strong&gt; Names, tax IDs, amounts, addresses, emails. That journey is the attack surface. Not the database. The trip.&lt;/p&gt;

&lt;p&gt;You do not need to be ISO 27001 certified to care about this. Certification is a formal audit that makes sense when a client demands it. Applying the controls is what actually protects the data, and you can do it on the next integration you ship. So let me map the ISO 27001:2022 Annex A controls that land directly on integration work, in plain terms, with what I actually do for each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The controls, translated to integration reality
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A.8.24 Use of cryptography.&lt;/strong&gt; Data in transit goes over a network you do not own. In the clear, anyone on the path reads it. Rule: TLS 1.2+ end to end on every call, no plain HTTP between services, ever. Any intermediate copy (queue, staging, cache) is encrypted at rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.5.17 Authentication information.&lt;/strong&gt; The API key is the key to the house. Whoever holds it, gets in. So: keys in a secret manager, never in code or in the browser bundle, rotated on a schedule and on any suspicion of a leak. One credential per integration so you can revoke it in isolation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.5.15 / A.5.16 Access control and identity management.&lt;/strong&gt; The temptation is to reuse the admin key because "it works with everything". If it leaks, the whole ERP leaks with it. Real least privilege instead: each flow gets a credential scoped to exactly what it needs. Read-only if it only reads. Scope is a decision, not a default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.5.14 Information transfer.&lt;/strong&gt; A lazy integration drags a full record from one system to another "just in case". Every extra field is one more thing that can leak. Move only the fields the destination genuinely needs, and write down the data flow (what leaves, where to, on what legal basis).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.8.15 / A.8.16 Logging and monitoring.&lt;/strong&gt; Without traces, an integration is a black box. You cannot tell if an invoice was duplicated, if a webhook failed silently, or if someone is probing your credentials. Every sync leaves a queryable, tamper-evident record, and anomalies fire alerts: spikes in auth failures, stuck queues, retries that never resolve.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.5.19 / A.5.21 Suppliers and ICT supply chain.&lt;/strong&gt; This one flips the mirror. When I connect your systems, I become a supplier that touches your data. And behind me sits the hosting, the iPaaS, the payment gateway. All of them are in scope. That means a written data processing agreement and a real look at the sub-processors and where the data is hosted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.8.12 / A.5.34 Data leakage prevention and PII protection.&lt;/strong&gt; The place personal data leaks most often by accident is not the database. It is the logs. A full payload dumped into a log line exposes tax IDs, emails and addresses to anyone with log access. Log just enough to debug, with sensitive fields masked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.8.10 / A.8.11 Information deletion and data masking.&lt;/strong&gt; Integrations leave copies behind: queues, test environments, backups. Real customer data living in places nobody looks at again. Define retention per flow, delete for real when due, and work with masked or synthetic data outside production.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two questions I always get
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"Is n8n / Zapier / Make secure under ISO 27001?"&lt;/strong&gt; The tool alone does not give you control. The control is in how you use it, and the biggest variable is where the data lives. A cloud iPaaS puts that third party into your supply chain and routes your data through their infra. Self-hosted n8n keeps the data on your own server, which massively simplifies scope. (I maintain an open-source &lt;a href="https://francodesystems.com/en/open-source/n8n-nodes-holded" rel="noopener noreferrer"&gt;n8n node for Holded&lt;/a&gt;, MIT, precisely so people can automate without shipping their data to one more vendor.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"What about AI agents and MCP?"&lt;/strong&gt; New actor, same controls. When you connect an agent (say via MCP, the protocol that lets an assistant read and act on external systems with typed permissions), you are giving a model access to real data. Scoped read-only credentials when reading is enough, traceability of every action, minimisation of what the model sees, and control over which provider that data reaches. The framework does not change just because the caller is a model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest footer
&lt;/h2&gt;

&lt;p&gt;I am not going to tell you I am ISO 27001 certified, because I am not, and saying so without an accredited body's badge would be a lie. What I will tell you is that these controls are cheap to apply if you build them in from the start and expensive to retrofit after a leak. The certification is the paperwork. The controls are the actual security.&lt;/p&gt;

&lt;p&gt;Full version, with the framework reference table (93 controls, 4 themes, the 2013 to 2022 transition that closed in October 2025): &lt;strong&gt;&lt;a href="https://francodesystems.com/en/blog/iso-27001-integrations" rel="noopener noreferrer"&gt;francodesystems.com/en/blog/iso-27001-integrations&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you handle other people's data through integrations, which controls have bitten you in production? Curious to compare notes in the comments.&lt;/p&gt;

</description>
      <category>security</category>
      <category>api</category>
      <category>automation</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I didn't write my n8n node's 323 operations. I scraped the docs and generated them.</title>
      <dc:creator>Juan Cantón Rodríguez</dc:creator>
      <pubDate>Tue, 07 Jul 2026 08:24:16 +0000</pubDate>
      <link>https://dev.to/srcanton/i-didnt-write-my-n8n-nodes-323-operations-i-scraped-the-docs-and-generated-them-1pjn</link>
      <guid>https://dev.to/srcanton/i-didnt-write-my-n8n-nodes-323-operations-i-scraped-the-docs-and-generated-them-1pjn</guid>
      <description>&lt;p&gt;Last month my n8n community node for &lt;a href="https://francodesystems.com/open-source/n8n-nodes-holded" rel="noopener noreferrer"&gt;Holded&lt;/a&gt; — the ERP used by 100,000+ Spanish SMEs — got the &lt;strong&gt;verified&lt;/strong&gt; badge and became &lt;a href="https://n8n.io/integrations/holded/" rel="noopener noreferrer"&gt;the only Holded integration on n8n.io&lt;/a&gt;.&lt;br&gt;
A&lt;br&gt;
It covers &lt;strong&gt;42 resources and 323 operations&lt;/strong&gt; of the Holded API v2, plus a trigger node for 58 webhook events.&lt;/p&gt;

&lt;p&gt;Here's the part that matters: I hand-wrote almost none of it. This is the story of shipping a huge API surface as a solo dev by treating the node as a &lt;em&gt;compiler target&lt;/em&gt; instead of a codebase.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why bother with a node for a Spanish ERP?
&lt;/h2&gt;

&lt;p&gt;Spanish SMEs are migrating to n8n from Make and Zapier for a very unglamorous reason: &lt;strong&gt;per-operation pricing&lt;/strong&gt;. The moment you automate invoicing properly — say, an ecommerce store pushing 1,000+ orders a month into accounting — a per-task bill stops making sense. Self-hosting also plays well with GDPR anxiety.&lt;/p&gt;

&lt;p&gt;The blocker was that n8n had zero Holded connectivity. Everyone was gluing HTTP Request nodes to a quirky API. That's the gap.&lt;/p&gt;
&lt;h2&gt;
  
  
  The math that forbids hand-writing
&lt;/h2&gt;

&lt;p&gt;Holded's API v2 is big: invoices, contacts, products, stock, CRM funnels, projects, payroll, remittances… When I mapped it, I got &lt;strong&gt;591 endpoints across 42 resources&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An n8n node describes every operation declaratively: resource options, operation options, every parameter with its type, defaults, and &lt;code&gt;displayOptions&lt;/code&gt; controlling when it appears in the UI. Written by hand, that's maybe 60–80 lines per operation. Times 323.&lt;/p&gt;

&lt;p&gt;That's a ~25,000-line file I would have to &lt;em&gt;maintain by hand&lt;/em&gt; every time Holded touches their API. No.&lt;/p&gt;
&lt;h2&gt;
  
  
  The pipeline: scrape → spec → generate
&lt;/h2&gt;

&lt;p&gt;So the repo has a &lt;code&gt;spec/&lt;/code&gt; folder that most n8n nodes don't:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;spec/
├── scrape-v2.py        # scrapes the official API docs
├── v2-endpoints.json   # 72,000 lines: every endpoint, param, type
└── gen-v2.py           # 888 lines that write the node for me
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;scrape-v2.py&lt;/code&gt;&lt;/strong&gt; walks Holded's API reference and dumps every endpoint — path, method, params, body schema — into &lt;code&gt;v2-endpoints.json&lt;/code&gt; (~72k lines of structured truth).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;gen-v2.py&lt;/code&gt;&lt;/strong&gt; compiles that spec into &lt;code&gt;V2Generated.ts&lt;/code&gt;: &lt;strong&gt;22,000 lines&lt;/strong&gt; of n8n property descriptors — every resource, operation, and field, with correct &lt;code&gt;displayOptions&lt;/code&gt; wiring.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;173-line dispatcher&lt;/strong&gt; routes &lt;code&gt;(resource, operation)&lt;/code&gt; pairs to generic HTTP execution. The actual &lt;code&gt;.node.ts&lt;/code&gt; shell is 355 lines.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The generated file opens with the only comment that matters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// AUTO-GENERATED by spec/gen-v2.py from spec/v2-endpoints.json.&lt;/span&gt;
&lt;span class="c1"&gt;// Do not edit by hand — regenerate with `python3 spec/gen-v2.py`.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When Holded changes their API, I re-scrape, re-generate, diff, release. Maintenance went from "career" to "afternoon".&lt;/p&gt;

&lt;h2&gt;
  
  
  What codegen can't do (and what I still wrote by hand)
&lt;/h2&gt;

&lt;p&gt;Generation gets you &lt;em&gt;coverage&lt;/em&gt;. It does not get you &lt;em&gt;good UX&lt;/em&gt;. Three things stayed human:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Contact resource is fully handwritten.&lt;/strong&gt; It's the resource everyone touches first, and the generated version was technically correct but clumsy — search deserves first-class &lt;code&gt;email&lt;/code&gt; / &lt;code&gt;vatNumber&lt;/code&gt; / &lt;code&gt;phone&lt;/code&gt; fields, not a generic filter collection. High-traffic paths earn hand-polish; the long tail stays generated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Naming and grouping.&lt;/strong&gt; A dropdown with 42 resources is only usable if names match what users see in Holded's UI, not what the API paths say.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;n8n's lint rules.&lt;/strong&gt; &lt;code&gt;eslint-plugin-n8n-nodes-base&lt;/code&gt; has strong opinions (alphabetized options, description formats, casing). The generator had to learn them — fixing lint output &lt;em&gt;in the generator&lt;/em&gt; instead of in the generated file is the whole trick of this approach.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting the "verified" badge
&lt;/h2&gt;

&lt;p&gt;n8n's verification reviews your code before the node becomes installable on n8n Cloud (community nodes otherwise need self-hosting). What it costs you: strict linting, no runtime dependencies, real docs, and review iterations measured in days-to-weeks.&lt;/p&gt;

&lt;p&gt;What you get: distribution. Verified nodes show up in the in-app node panel for every n8n Cloud user, plus &lt;a href="https://n8n.io/integrations/holded/" rel="noopener noreferrer"&gt;a public integration page&lt;/a&gt;. For a niche B2B tool, that's the difference between "GitHub repo with 12 stars" and "discoverable by every n8n user who types your product's name".&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways if you're building a big-API node
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;If the API has &amp;gt;50 operations, don't type them. Generate them.&lt;/strong&gt; A one-day scraper plus a one-week generator beats months of typing and years of drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec first.&lt;/strong&gt; The intermediate JSON is the asset — the TS is disposable output. I can regenerate for a future n8n API version, or even for a different platform, from the same spec.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hand-write the top 10% by traffic.&lt;/strong&gt; Generated long tail, polished hot paths.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Teach the generator the linter's opinions.&lt;/strong&gt; Never fix generated files by hand, not even once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhooks are half the value.&lt;/strong&gt; The trigger node (18 objects / 58 events: &lt;code&gt;invoice.create&lt;/code&gt;, &lt;code&gt;stock.update&lt;/code&gt;, …) is what turns an ERP from "destination" into "event source".&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;n8n&lt;/strong&gt;: Settings → Community Nodes → &lt;code&gt;@francodesystems-npm/n8n-nodes-holded&lt;/code&gt; (or find "Holded" directly on n8n Cloud)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repo&lt;/strong&gt;: &lt;a href="https://github.com/francodesystems/n8n-nodes-holded" rel="noopener noreferrer"&gt;github.com/francodesystems/n8n-nodes-holded&lt;/a&gt; (MIT)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docs, coverage matrix and use cases&lt;/strong&gt;: &lt;a href="https://francodesystems.com/open-source/n8n-nodes-holded" rel="noopener noreferrer"&gt;francodesystems.com/open-source/n8n-nodes-holded&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;If you're migrating between Holded API v1 and v2, I wrote up &lt;a href="https://francodesystems.com/blog/holded-api-v1-v2-trampas-migrar" rel="noopener noreferrer"&gt;the 8 traps that will actually bite you&lt;/a&gt; (Spanish).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ready-to-import workflow templates (Shopify → invoices, Stripe → paid invoices, overdue-invoice chasing…) are landing on my n8n creator profile — I'll update this post with the links as they're approved.&lt;/p&gt;

&lt;p&gt;Questions about the codegen pipeline or the verification process — ask away in the comments. 🇪🇸&lt;/p&gt;

</description>
      <category>n8n</category>
      <category>opensource</category>
      <category>automation</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
