gitlabEdit

โš™๏ธServices

Docs-Dispatcher provides 7 core services for document generation and multi-channel dispatch. This guide explains what each service does, which providers are supported, and common use cases.

All Services at a Glance

Service
Endpoint
Providers
Purpose

/api/invoicing

4

Generate and send invoices via accounting platforms

/api/esign

3

Electronic signature workflows

/api/postal

1

Physical mail dispatch (print and post)

/api/sms

4

SMS notifications

/api/email

SMTP

Email dispatch

/api/file

Internal

Document generation only (no dispatch)

/api/upload

Internal

File upload and storage

Invoicing

Generate invoices, quotes, credit notes, and e-invoices through external accounting platforms.

What It Does

  • Generates invoice documents from templates

  • Creates invoice records in accounting systems

  • Supports multiple document types (invoice, quote, credit note)

  • Handles e-invoicing compliance (France)

Supported Providers (4)

Provider

providerName

Document Types

Webhooks

iPaidThat

ipaidthat

INVOICE, E_INVOICE, QUOTE, CREDIT

No

PennyLane

pennylane

INVOICE, E_INVOICE, QUOTE, CREDIT

No

Qonto

qonto

INVOICE, E_INVOICE, QUOTE, CREDIT

No

SuperPDP

superpdp

INVOICE, E_INVOICE, QUOTE, CREDIT

No

Document Types

  • INVOICE - Standard invoice

  • E_INVOICE - Electronic invoice (France, compliant with Chorus Pro)

  • QUOTE - Quote/Devis/Estimate

  • CREDIT - Credit note/Avoir

Common Use Cases

  1. Automated Billing - Generate and send invoices after order completion

  2. Quote Generation - Create quotes from CRM data

  3. Credit Notes - Issue refunds and adjustments

  4. E-Invoicing Compliance - Government-compliant electronic invoicing

Example Request

Response

eSign

Send documents for electronic signature through certified providers.

What It Does

  • Uploads documents for signature

  • Creates signature workflows with multiple signers

  • Tracks signature status

  • Provides legal compliance (eIDAS, etc.)

Supported Providers (3)

Provider

providerName

Webhooks

Compliance

Signaturit

signaturit

Yes

eIDAS, EU qualified

Universign

universign

Yes

eIDAS, EU qualified

Yousign

yousign

No

eIDAS, EU qualified

Signature Modes

  • Simple - Email-based signature (no authentication)

  • Advanced - SMS verification

  • Qualified - Certified identity verification (eIDAS compliant)

Common Use Cases

  1. Contract Signing - Employment contracts, NDAs, agreements

  2. Order Confirmations - Customer order acceptance

  3. Legal Documents - Deeds, powers of attorney

  4. Multi-Party Agreements - Multiple signers with sequential or parallel workflows

Example Request

Response

Webhook Events

When signature status changes:

Postal

Send physical mail (letters, invoices, contracts) via print-and-post providers.

What It Does

  • Generates print-ready documents

  • Prints and mails physical letters

  • Handles envelopes, postage, tracking

  • International shipping support

Supported Providers (1)

Provider

providerName

Webhooks

Coverage

MySendingBox

mysendingbox

Yes

France, Europe, International

Mail Types

  • Simple Letter - Standard mail

  • Registered - Tracked delivery with signature

  • International - Cross-border shipping

Common Use Cases

  1. Invoice Mailing - Physical invoices for non-digital customers

  2. Legal Notices - Registered mail for legal compliance

  3. Marketing - Promotional letters and brochures

  4. Government Correspondence - Official documents requiring physical delivery

Example Request

Response

Webhook Events

Tracking updates:

SMS

Send SMS notifications via multiple providers.

What It Does

  • Sends text messages to mobile phones

  • Supports international numbers

  • Delivery tracking

  • Sender ID customization

Supported Providers (4)

Provider

providerName

Webhooks

Coverage

Brevo

brevo

No

International

OVH

ovh

No

International

SMS Factor

sms_factor

No

International

SMS Magic

sms_magic

No

International

Message Types

  • Transactional - Order confirmations, OTPs, alerts

  • Marketing - Promotional messages (opt-in required)

Common Use Cases

  1. Order Notifications - Shipping updates, delivery alerts

  2. Appointment Reminders - Healthcare, services

  3. 2FA/OTP - Two-factor authentication codes

  4. Payment Alerts - Payment confirmations, invoices due

  5. Emergency Alerts - Critical system notifications

Example Request

Response

Limits

  • Message length: 160 characters (standard), 1530 characters (concatenated)

  • Rate limits: Vary by provider (typically 100-1000/minute)

  • International: Check provider for country support

Email

Send emails via SMTP with attachment support.

What It Does

  • Sends HTML/plain text emails

  • Supports attachments (generated documents)

  • CC/BCC recipients

  • Custom headers

Configuration

Email uses SMTP configuration (no external provider):

Common Use Cases

  1. Invoice Delivery - Send generated invoices via email

  2. Contract Distribution - Email signed documents

  3. Reports - Automated report distribution

  4. Notifications - System alerts, confirmations

Example Request

Response

File

Generate documents without external dispatch (pure document generation).

What It Does

  • Renders templates to PDF, DOCX, XLSX

  • No external provider calls

  • Returns document URL for download

  • Supports all printer engines

Printer Engines

Engine
Purpose
Output

Mustache

HTML templates โ†’ PDF

PDF

Twig2

HTML templates โ†’ PDF

PDF

Gotenberg

HTML/Office โ†’ PDF conversion

PDF

Docx

DOCX templating

DOCX

Xlsx

Excel templating

XLSX

Poppler

PDF โ†’ Images

PNG, JPG

Common Use Cases

  1. Document Preview - Generate without sending

  2. Download Links - Create documents for user download

  3. Archive - Generate for storage only

  4. Multi-Step Workflows - Generate first, dispatch later

Example Request

Response

Upload

Upload and store files (images, PDFs, documents).

What It Does

  • Accepts file uploads via multipart/form-data

  • Stores files in cloud storage

  • Returns permanent URLs

  • Supports file validation (size, type)

Supported File Types

  • Documents: PDF, DOCX, XLSX, TXT

  • Images: JPG, PNG, GIF, SVG

  • Archives: ZIP, TAR

Common Use Cases

  1. Attachment Storage - Store files referenced in other services

  2. User Uploads - Accept customer documents

  3. Media Library - Manage company assets

  4. Backup - Archive generated documents

Example Request

Response

Service Composition

Services can be chained together in a single request using composable endpoints.

Composition Pattern

Common Compositions

1. Invoice + Email

Generate invoice and email it:

2. Invoice + Email + Upload

Generate, email, and archive:

3. eSign + Email

Generate document, send for signature, email when signed:

Execution Order

Services execute sequentially:

  1. First service generates document

  2. Second service uses generated document

  3. Third service uses result from second

If any service fails, the chain stops and returns error.

Provider Capabilities Matrix

Quick reference for which providers support which features:

Invoicing

Provider
E-Invoice
Webhooks
Sandbox

iPaidThat

โœ…

โŒ

โœ…

PennyLane

โœ…

โŒ

โœ…

Qonto

โœ…

โŒ

โœ…

SuperPDP

โœ…

โŒ

โœ…

eSign

Provider
Qualified Signature
Webhooks
Multi-Signer

Signaturit

โœ…

โœ…

โœ…

Universign

โœ…

โœ…

โœ…

Yousign

โœ…

โŒ

โœ…

SMS

Provider
International
Sender ID
Delivery Receipt

Brevo

โœ…

โœ…

โœ…

OVH

โœ…

โœ…

โœ…

SMS Factor

โœ…

โœ…

โœ…

SMS Magic

โœ…

โœ…

โœ…

Choosing the Right Service

Decision Tree

Multi-Service Scenarios

Scenario
Services
Endpoint

Invoice customer by email

Invoicing + Email

/api/invoicing/email

Contract for signature

File + eSign

/api/file/esign

Invoice by postal mail

Invoicing + Postal

/api/invoicing/postal

Report via email with archive

File + Email + Upload

/api/file/email/upload

Code Examples

Example 1: Invoice with Qonto

Example 2: eSign with Universign

Example 3: SMS with Brevo

Summary

Docs-Dispatcher provides 7 services with 12+ external providers:

  1. Invoicing - Accounting platform integration (4 providers)

  2. eSign - Electronic signatures (3 providers)

  3. Postal - Physical mail (1 provider)

  4. SMS - Text messaging (4 providers)

  5. Email - SMTP dispatch (built-in)

  6. File - Document generation (internal)

  7. Upload - File storage (internal)

Each service can be used standalone or composed with others for powerful workflows. Choose providers based on your region, compliance needs, and feature requirements.

Last updated