PagaFactu: Features
Invoice collection through Open Banking (PSD2), synchronous flow with collection URL and associated document.
PagaFactu is Zertiban's product for invoice collection through Open Banking (PSD2). It lets you generate a collection flow from an invoice and synchronously obtain the resources needed to execute it: the collection URL and the associated document in different formats.
It is designed to integrate directly with ERPs or invoicing systems, simplifying collection generation and the end-customer experience.
For the shared concepts of flows and operations, structure, states and transitions, see Flows and operations.
Integration options
PagaFactu offers three integration options depending on the level of control over collection generation and the end customer's document experience:
| Option | Description |
|---|---|
| Collection URL only | Only the link the end customer will use to complete the transfer is returned |
| URL + PDF with QR generated by Zertiban | The collection URL is returned together with a PDF automatically generated by Zertiban that includes the transfer details and a QR code linking to the collection URL |
| URL + PDF with appended page | The client sends their own invoice as a PDF and Zertiban returns the collection URL together with the same document enriched by adding a single extra page at the end with the QR and link |
PagaFactu features
| Feature | Description |
|---|---|
| Immediate collection | Standard SEPA transfers (D+1) or instant (SCT Inst, in seconds) |
| Scheduled collection | Type FUTURE_PAYMENT with requestedExecutionDate (minimum 1 business day in advance) |
| PDF generation with QR | By setting generateDocument: true, Zertiban returns the PDF as base64 in the response |
| Enrichment via appended page | A single additional page is appended at the end of the client's document, including the collection QR and direct link |
| Expiration control | Configurable between 1 and 156 days via expirationOffset |
| Operation cancellation | PUT/flow/v1/operations/{operationUuid}/cancel available in CREATED or OPENED states (if no transactions are in progress) |
| Reconciliation via externalId | The business identifier (e.g. invoice number) travels through the entire flow and webhook events |
PagaFactu functional flow
1. ERP: Flow creation
The client's system makes a single synchronous API call:
POST /pagafactu/v1/flows/pagafactuThis call sends:
- invoice data,
- amount,
- debtor details,
- and optionally the invoice PDF if using the appended-page document option.
Zertiban responds immediately with:
- a ready-to-use collection URL,
- the PDF with appended page (if applicable),
- flow and operation identifiers.
2. ERP: Collection distribution
Zertiban does not send communications to the end customer. The ERP is responsible for delivering the collection link through whichever channels it considers appropriate:
- SMS
- Integration in the invoice or customer portal
At this point, the ERP can send directly either:
- the collection URL, or
- the document generated by Zertiban.
The appended page is the same in all cases, since it is generated only once at flow creation and is part of the returned document, including the QR and the collection link.
3. End customer: Accessing the flow
The end customer accesses the flow in two equivalent ways:
- Opening the collection URL directly in their browser, or
- Scanning the QR included on the document's appended page.
Either way they reach the same collection experience hosted by Zertiban. Once inside:
- they select their bank,
- they start the collection process,
- the operation moves to the OPENED state.
CREATED → OPENED4. Bank: Authentication and authorization (PSD2)
The customer is redirected to their online banking to complete Strong Customer Authentication (SCA). During this process they:
- review the collection details,
- authorize the transfer,
- confirm the operation from their banking entity.
5. Zertiban: Collection confirmation
Once the bank confirms the operation, it transitions to the COMPLETED state and Zertiban emits the corresponding webhook:
{
"eventType": "OPERATION_COMPLETED",
"resource": {
"externalId": "INV-2026-001",
"status": "COMPLETED"
}
}6. ERP: Automatic reconciliation
The ERP receives the webhook and uses resource.externalId to:
- locate the invoice,
- mark it as collected,
- run accounting or business processes.
Synchronous system behavior
Flow creation in PagaFactu is fully synchronous:
- the collection URL is returned in the same API response,
- the document with appended page (if applicable) is returned in the same response,
- there are no asynchronous callbacks during the creation phase.
Delivery responsibility
Zertiban does not communicate with the end customer. The client's system is responsible for:
- generating and distributing the collection link or document,
- choosing the communication channel,
- managing the notification experience.
Zertiban acts as the engine for collection flow generation and bank execution.
Next steps
- Getting started: Onboarding, post-onboarding and the 6 configuration values
- Flows and operations: Shared concepts, structure, states and transitions
- Webhooks: Receive real-time notifications
- ZertiPay: Pay by bank payments with multiple operations or recipients
- Environments: Sandbox and production