PAdES signing and electronic consignment notes (Spanish DeCA and CMR)
Generates the DeCA and the CMR as PDF from a single consignment note model, collects each party's PAdES signature and provides a link and a QR code for inspection.
Moving from paper consignment notes to digital ones means generating the right PDF, collecting every party's signature and being able to show it at the roadside. This module handles the PAdES signature for consignment notes: it generates the DeCA (Spain's electronic road transport control document) for domestic transport and the CMR for international transport from the same data, and signs them in PAdES.
Who it is for
Transport software companies, carriers with in-house development and e-signature integrators. The DeCA follows Spanish transport rules; the CMR part works for international road transport.
What PAdES signing for consignment notes solves
- Two documents to maintain. The DeCA and the CMR come from the same data.
- Signatures that overwrite each other. Each party signs without invalidating the previous signatures.
- Roadside inspections. The officer opens the document with a QR code.
What it does
- Produces the DeCA, with the data required by Article 6 of Order FOM/2861/2012, or the CMR, depending on the scope of the transport.
- Checks the mandatory data before issuing, and handles versions and reissues for each leg.
- Signs in PAdES with the company's certificate, which is stored encrypted.
- Adds the signatures of the shipper, carrier, actual carrier and consignee without invalidating the previous ones, with a visible signature box and express consent.
- Lets pickup and delivery be signed by hand on screen from a link, and lets the signer report incidents.
- Validates the integrity, the signature and the certificate's validity period and, if you configure the trusted authorities, its chain.
- Publishes the DeCA with a link and a QR code for inspection, records who opens it and sends it to the driver by WhatsApp.
- Generates the container equipment interchange receipt (EIR).
Benefits
- Your application issues digital consignment notes without you building document signing.
- Each party signs at its own moment and the document stays valid.
- The driver has the DeCA on the phone and the inspector opens it right away.
Industry context
General industry data with its public source. These are not results of this product.
- The control document for public road freight transport "must necessarily be digital ten months after the entry into force" of Spain's Sustainable Mobility Act (Ley 9/2025), in force since December 5, 2025. Source: BOE (Spain's official gazette), "Ley 9/2025, de 3 de diciembre, de Movilidad Sostenible", eighth transitional provision, 2025.
What you get with each license
Price upon request, depending on license type and scope. Integration support and maintenance are contracted separately.
- The module code and the DeCA, CMR and EIR templates.
- Documentation to adapt it to your data model and your storage, with examples.
- A warranty against defects for the agreed period.
- Everything above, with the right to adapt and maintain it inside your product.
- The right to embed the asset in a commercial product of your own, identified in the contract.
- The right to distribute it to your customers as part of that product, without asking for authorization for each installation and with no limit on end customers, unless otherwise agreed.
- It does not include reselling or sublicensing it on its own.
- It is not exclusive, unless otherwise agreed.
- Maintenance, support and adaptations are contracted separately.
Technical specifications
Language and runtime: TypeScript 5.9 on Node.js. Minimum supported version: Node.js 20.9 (the one Next.js 16 declares).
Frameworks: Next.js 16.4 and React 19.2 for the PDF templates and the signing and inspection pages. Data access with Prisma 7.8.
Database: PostgreSQL. Minimum supported version: 15 (required by the module's database schema).
Operating systems: A server with Node.js.
Interface languages: Spanish.
Required infrastructure:
- PostgreSQL 15 or later.
- Document storage through Supabase Storage (cloud service or self-hosted).
- A headless Chromium browser on the server to generate the PDFs.
- The company's digital certificate in P12 or PFX.
- Publication at an HTTPS address for the inspection link and QR code.
- Meta's WhatsApp Business Platform to send the DeCA to the driver (optional; requires your own account).
Private deployment: It can run on its own on your infrastructure, with self-hosted Supabase Storage. Only sending the DeCA by WhatsApp needs a connection to an external service.
Main libraries:
| Library | Version | License |
|---|---|---|
| pdf-lib | 1.17.1 | MIT |
| @signpdf/signpdf, @signpdf/signer-p12, @signpdf/placeholder-plain and @signpdf/placeholder-pdf-lib | 3.3.0 | MIT |
| node-forge | 1.4.0 | BSD-3-Clause OR GPL-2.0 |
| playwright-core | 1.63.0 | Apache-2.0 |
| @sparticuz/chromium-min | 153.0.0 | MIT |
| qrcode | 1.5.4 | MIT |
| sharp | 0.35.5 | Apache-2.0 |
| react and react-dom | 19.2.6 | MIT |
| @prisma/client | 7.8.0 | Apache-2.0 |
| next | 16.4.2 | MIT |
Dependencies with specific license terms:
- @img/sharp-libvips-* 1.3 (libvips binaries used by sharp): LGPL-3.0-or-later; @img/sharp-win32-* and @img/sharp-wasm32 0.35: Apache-2.0 AND LGPL-3.0-or-later.
- node-forge 1.4: BSD-3-Clause OR GPL-2.0.
Compatibility and integrations: PAdES signing with PKCS#12 certificates (P12 or PFX), DeCA under Article 6 of Order FOM/2861/2012, CMR in PDF and the WhatsApp Cloud API (Graph API v21.0).
Redistribution terms
The asset's own code can be embedded in the licensee's commercial products under the embeddable module, source code and OEM licenses, on the terms of the contract. Specific terms apply to the libvips binaries used by sharp (LGPL-3.0-or-later) and to node-forge (BSD-3-Clause OR GPL-2.0); see the list under Technical specifications.
Installation requirements
A Node.js application with PostgreSQL, document storage compatible with Supabase Storage (in the cloud or self-hosted) and Chromium on the server to generate the PDFs. You need the company's certificate in P12 or PFX and, for WhatsApp, a WhatsApp Business account.
Frequently asked questions
What signature level does it offer?
An advanced electronic signature with the company's certificate, not a qualified one. It does not add a timestamp; if you need one, it can be combined with the RFC 3161 timestamping module (M-EVI-01).
Is it a certified eCMR or eFTI platform?
No. It generates the CMR as a signed PDF, but it is not a certified eCMR platform or eFTI platform under the eFTI Regulation (Regulation (EU) 2020/1056). Your advisor should check the templates against the Resolution of June 5, 2026 of Spain's Directorate General for Road and Rail Transport (Dirección General de Transporte por Carretera y Ferrocarril), which sets the features of electronic control documents.
Does it work offline on the road?
The QR code and the link need a connection. The signed PDF can be downloaded before setting off.
Is maintenance included?
No. DeCA rules change, and keeping the templates up to date is part of maintenance, which is contracted separately, like support.
Request
Request information on M-FIR-01
Fill in the form with the asset reference and the license type you're considering. I reply in writing. If you need to review code, tick the NDA box and we'll sign one before anything is shared.