One HTTP call · one finished PDF

Your documents, from your application. Send the data, get the PDF.

Invoices, credit and debit notes, payment requests, cash receipts, payslips, reports, inventory and contracts. Your application sends the document type and its data; the response is the PDF, with selectable text and real pagination.

POST /api/documents
curl -X POST https://docsgen.piensait.com/api/documents \
  -H "authorization: Bearer $DOCGEN_API_KEY" \
  -H "content-type: application/json" \
  -d @cuenta-de-cobro.json \
  -o cuenta.pdf

# 200 · content-type: application/pdf
document types via API
31
invoice designs
17
formats in the examples
43
call per document
1
Documents

Documents you can request today

Amounts use the same vocabulary across every design, so switching designs means changing one word.

17 designs

E-invoice

The printable rendering of an electronic sales invoice, on A4 or on an 80 mm POS receipt.
type factura
1 design

Credit note

The printable rendering of an electronic credit note.
type nota-credito
1 design

Debit note

The printable rendering of an electronic debit note.
type nota-debito
18 designs

Payment request

The document for those who are not required to issue invoices.
type cuenta-de-cobro
1 design

Quote

What you offer and at what price, before there is an order.
type cotizacion
5 designs

Commercial proposal

A multi-page pitch: a photo cover with the client, scope, plans and pricing.
type propuesta-comercial
1 design

Sales order

What a customer ordered, with quantities and total.
type pedido
1 design

Purchase requisition

What a department asks to buy, before the order.
type requisicion
1 design

Purchase order

What you order from a supplier, with its payment terms.
type orden-de-compra
1 design

Purchase invoice

A supplier purchase, with its tax breakdown.
type factura-de-compra
1 design

Equivalent document

A purchase from someone not required to issue invoices.
type documento-equivalente
1 design

Advance payment

A payment made up front, with what it is applied to.
type anticipo
1 design

Payment voucher

Money paid out to a payee, with what it covers.
type comprobante-de-egreso
1 design

Contract

Any template with placeholders: leases, employment, HOA minutes, notices and letters.
type contrato
2 designs

Cash receipt

Money received, with the invoices it is applied to.
type recibo-de-caja
1 design

Account statement

What a customer owes at a cut-off date: movements, aging and balance.
type estado-de-cuenta
1 design

Investment fund statement

A period's movements in cash and in units, with the closing balance, for the holder of an investment.
type extracto-de-fondo
5 designs

Tax certificate

What a withholding agent withheld from a third party in a tax year: income tax, VAT, local business tax, or the VAT invoiced.
type certificado-retencion
7 designs

Work order

Corrective or preventive maintenance: the asset, the tasks, the parts and the signatures.
type orden-de-trabajo
8 designs

Handover receipt

Who accepted a job, when and with which signature, with the order's handover history.
type soporte-de-recepcion
6 designs

Work permit

The authorization for a high-risk task, with its verified controls and its signatures.
type permiso-de-trabajo
5 designs

Asset tag

A machine's sticker: its code, its location and a QR code.
type etiqueta-de-equipo
7 designs

Safety inspection

A checklist for an area or a piece of equipment, with its findings and owners.
type inspeccion-de-seguridad
7 designs

PPE handover

Which protective equipment was handed to whom, with the receiver’s signature.
type entrega-de-epp
6 designs

Toolbox talk

The day's safe-work analysis, with its risks and the attendees signing.
type charla-preoperacional
6 designs

Payslip

Earnings, deductions and net pay for one person in a pay period, password-protected on request.
type colilla-de-nomina
1 design

Report

A table with the columns, rows and totals you send, portrait or landscape.
type informe
1 design

Goods receipt

What arrives at a warehouse, with its items, lots, serials and signatures.
type entrada-de-inventario
1 design

Goods issue

What leaves a warehouse and why, signed by whoever hands it over and whoever receives it.
type salida-de-inventario
1 design

Stock transfer

A transfer between two warehouses, with departure and arrival dates.
type traslado-de-inventario
1 design

Mailroom label

The document-intake label, with running number, date, sender, folios and a QR code.
type etiqueta-de-radicado
Examples

What the documents look like

Each example is a PDF composed by the same engine that answers the API, with sample data. Open one to see all its designs and download it.

See all examples
Integration

Nothing to install

What you integrate is an HTTP call: you send a JSON with the document type and its data, and the response is the PDF.

  • PHP, .NET, Java, Python, Node or a no-code automation: if it can make a POST, it can generate documents
  • Designs improve without you doing anything: no version to upgrade, no deployment to coordinate
  • Text is text: it can be selected, searched and copied, and the document paginates
  • Errors come back as JSON and say what is missing
Premium e-invoice generated by docsgen
Get started

Your first PDF in four steps

  1. Request your key

    Write to us and we hand it over. We don't store it anywhere: if you lose it, we issue a new one.
  2. Send the example as is

    Take the example for your document type and send it unchanged. That separates a connection problem from a data problem.
  3. Swap in your data

    Replace the example data with your real data, field by field.
  4. Call from your server

    Never from the browser: the key would travel inside JavaScript anyone can read.
Guarantees

What the service doesn't do, and won't

It may look like a limitation; it is a guarantee. Responsibility for every figure stays where the data lives: in your system.

It doesn't calculate

Amounts arrive prepared and get printed: no sums, no VAT. A total that doesn't add up is printed exactly as received.

It doesn't generate CUFE or CUDE

Nor authorized numbering or QR content: your certified e-invoicing provider produces them and they are drawn here. If missing, the document says so.

It doesn't assign numbers

You bring the document number. Numbering would make us the source of truth for your company's legal numbering.

It doesn't store documents

Composed, delivered and forgotten.
Can I generate several documents in one call?
Not today: one document per call. Batch generation is planned; if you need it, tell us when you start.
Can I call the API from the browser?
No. The key would travel inside JavaScript anyone can read. Your web app asks your backend for the document, and your backend asks us.
What if the total doesn't match the lines?
It is printed exactly as received. The service doesn't add up amounts or apply taxes.
Can payslips be password-protected?
Yes, with cifrar: true. The password is the employee's ID number, exactly as you send it.
Why is the first call slower?
The service sleeps when nobody calls it and starts on its own. From then on it responds in milliseconds.

Write to us and we'll hand you a key

With it, your first call returns a PDF today.