Improving DSO and DPO in Spanish SMEs: how touchless AP changes the cash cycle
ininvoice: DSO (Days Sales Outstanding) measures average collection days: (receivables / sales) × period days. DPO (Days Payable Outstanding) measures average payment days: (payables / purchases) × period days. The average Spanish SME has DSO 75-90 days and DPO 60-75 days. Law 9/2017 caps B2B payment at 60 days. Touchless AP does not stretch DPO; it brings it to the legal limit with discipline, without late-payment surcharges or losing discounts.
If you are CFO
DSO/DPO/CCC formulas and how to align them with your SME's real cash cycle on a single sheet.
If you are controller
Where DPO days are lost in a manual AP and how to recover them without paying late.
If you are CEO
90-day plan: how much working capital you free up with five concrete levers, without fighting suppliers.
Most Spanish SME CFOs know their DSO by heart. Late collections hurt every month. DPO is the other half of the equation and almost nobody looks at it with the same discipline, even though it moves just as much cash.
The typical error is to assume stretching DPO is always good. It is not. In Spain, Law 9/2017 amending 3/2004 against late payment caps B2B at 60 days. Going beyond has a financial cost, a reputational cost and, since 2022, the risk of exclusion from public tenders. And below, there is an optimum that is not "as late as possible": it is "the day before the contractual due date, capturing prompt-payment discounts when they pay off".
This article is for CFOs, controllers and treasury managers who want to move both KPIs together with operational discipline, not accounting tricks. The thesis: touchless AP does not stretch DPO aggressively; it stabilises it within the legal range and frees working capital without breaking supplier relationships.
What DSO and DPO are: formulas and cash cycle
Three formulas. All three belong in any serious treasury dashboard.
DSO = (receivables / period_sales) × period_days
DPO = (payables / period_purchases) × period_days
CCC = DSO + DIO − DPO (cash conversion cycle)
DIO is Days Inventory Outstanding, the stock component. For services companies DIO is zero. For distribution and manufacturing, it matters as much as DSO and DPO.
What moves real cash is the CCC. If your DSO is 80 days, DIO is 30 and DPO is 60, you are financing 50 days of operation out of your own pocket. Each day you cut DSO or raise DPO (within the legal cap) is one less day of financing.
For an SME billing EUR 5M/year with a 30% gross margin, moving CCC by 10 days equals freeing EUR 100,000 to EUR 140,000 of permanent working capital. It is not cost saving; it is cash returning to the balance sheet.
DSO and DPO benchmarks by sector in Spain
The ranges below are reasonable estimates for Spanish SMEs with 100-2,000 invoices/month, based on ranges published by APQC Open Standards Benchmarking and adjusted with data from the Bank of Spain late-payment observatory.
| Sector | Average DSO | Average DPO | Top quartile DPO (legal) |
|---|---|---|---|
| Distribution and wholesalers | 70-85 | 55-70 | 58-60 |
| Multi-location hospitality | 15-25 | 45-60 | 55-60 |
| Construction and subcontractors | 90-120 | 70-95 | 60 (legal cap) |
| Retail with warehouse | 5-15 | 50-65 | 58-60 |
| Professional services | 60-90 | 40-55 | 50-58 |
| Light manufacturing | 75-95 | 55-70 | 58-60 |
Two key readings. First, sectors like construction routinely operate above the 60-day legal cap: it is a structural infringement acknowledged by the observatory itself. Second, top quartile in DPO does not mean "as late as possible"; it means "as close to the contractual cap as possible without overshooting and without losing discounts".
Law 9/2017: the 60-day B2B cap
Law 9/2017 on Public Sector Contracts reformed Law 3/2004 on combating late payment. What you have to remember as a CFO in one sentence: the maximum payment term between private companies is 60 calendar days from delivery of the good or rendering of the service, with no possibility to extend by agreement.
Four operational consequences:
- Automatic late-payment interest. If you pay at 75 days, the supplier can claim ECB legal interest plus 8 points on the 15 days of excess. No prior demand required.
- Indemnity for collection costs. A minimum of EUR 40 per invoice not paid on time, plus additional documented costs.
- Public-tender risk. Law 18/2022 (Crea y Crece) reinforces that companies with systematic non-compliance of average payment terms can be excluded from contracts with the Administration.
- Reporting obligation in annual accounts. Companies required to audit publish PMP (average payment period) in their notes. Visible at BORME and commercial registers.
The Bank of Spain late-payment observatory publishes the average PMP of the Spanish business fabric quarterly. The consistent signal: missing the cap is widespread, especially in construction and distribution to the public sector, but the implicit financial cost rises every year.
Why touchless AP improves DPO without breaking the supplier relationship
In a typical manual SME AP, an invoice's cycle from receipt to ready-to-pay is 8-15 days. Those days do not go to useful DPO: they are days burned in internal queue, not in supplier credit.
The math is clear. If your contractual due date is 60 days and internal processing takes 12 days, you have two bad options:
- Option A. You pay at maturity (day 60). Your real DPO is 60, but the invoice has been visible to Treasury for 48 days and only 12 financing you.
- Option B. You pay when you process (day 12). Your real DPO is 12. You captured zero days of credit.
Touchless AP cuts those 12 days down to near-instant. That returns 10-12 days of useful DPO that previously vanished in internal queue. And, more importantly: it gives you early visibility of the real due date to schedule payments deliberately, not by urgency.
In addition, automatic three-way matching line by line (invoice, PO, delivery note) catches price and quantity differences before approving payment. An invoice with a variance outside tolerance is not paid blindly; it gets clarified with the supplier on day 3, not day 58. That reduces later credit notes, withholdings due to incidents and disputes that break average DPO. We cover this in depth in three-way matching.
Balancing DPO and supplier relationship: prompt-payment discounts
Stretching DPO to the legal cap is not always the optimal move. The formula to keep on your office wall:
cost_skipping_discount = (discount% / (100 - discount%)) × (360 / days_advanced)
Example: 2/10 net 60 (2% if you pay at 10 days, total at 60). The annualised cost of not taking the discount is:
(2 / 98) × (360 / 50) = 14.7% per year
If your cost of financing is 4.5% per year, capturing the discount gives you 10.2 net points. Skipping a 2/10 net 60 to stretch DPO destroys margin.
The operating rule: any prompt-payment discount above 8% annualised is accepted automatically; between 4% and 8%, case-by-case decision based on treasury position; below 4%, rejected and paid at maturity. Touchless AP allows this because it sees the invoice on day 1, not day 12.
Segmenting the payment policy: large vs small supplier
A single payment policy destroys relationships. Three minimum segments:
- Strategic suppliers (top 20% of spend). Pay on the exact contractual due date. No delay or free advance. You negotiate terms, you do not "stretch".
- Long tail (80% of count, 20% of spend). Operations dominate here. Self-employed and micro-SMEs with tight cash flow can hardly absorb 60-day payments. Paying at 30 days to this segment costs little absolute cash and buys service reliability.
- Multinationals with strong bargaining power. They impose their terms; the real lever is taking advantage of prompt-payment discounts when offered.
Business newspapers like Cinco Días have consistently documented that asphyxiating the long tail through excessive DPO is one of the typical drivers of structural late payment in Spain. An SME that operates above 60 days with self-employed suppliers is transferring treasury risk downstream and, eventually, generating insolvency on critical suppliers.
How much useful DPO do you lose in internal queue?
ininvoice ingests invoices from Gmail, cross-checks line by line against PO and delivery note and makes the invoice ready to pay in under 48 hours. Start free — 20 documents, no card and measure how many DPO days you recover in the first month.
Verifactu and DPO: real-time visibility of supplier credit
Verifactu, the AEAT's verifiable invoicing system, changes an important operational detail for treasury: invoices issued in verifiable mode arrive signed with QR and, when the issuer opts in, registered with the AEAT in real time.
For AP, this means three concrete things in DPO calculation:
- Certain issue date. The DPO contract clock starts with signed data, not with a manual stamp from the entry register.
- Zero duplicate ambiguity. Detection by tax ID + number + amount + signed fingerprint before approving payment. Zero double payments distorting real DPO.
- Early visibility of debt. Treasury sees supplier liabilities on day 1, not day 12. Schedules payments with full month and quarter horizon.
The measurable expected effect in a Spanish SME combining touchless AP + Verifactu + Peppol BIS: recovering 8-12 days of operational DPO simply because internal processing time stops being burned and shifts to financing with real supplier credit.
90-day plan to improve the cash cycle
Five levers in leverage order. The first three require no new software.
- Month 1: measure the baseline. Compute DSO, DPO and CCC for the last closed quarter. Get PMP per supplier (top 20 + long-tail aggregate). Identify how many payments are above the legal cap and how many prompt-payment discounts you lost due to slow processing.
- Month 1-2: close internal DPO leaks. Map the cycle invoice received → approved → ready-to-pay. Each day in internal queue is useful DPO lost. Set an SLA: approval within 48 h of receipt.
- Month 2: segmented payment policy. Top 20% spend = exact contractual maturity. Long-tail self-employed = 30 days. Multinationals = take advantage of discounts. Document and sign.
- Month 2-3: implement touchless AP. Automatic ingestion from email, QR/XML reading, line-by-line three-way matching, ERP export via API. Recover 10-12 days of operational DPO and gain early visibility of supplier liabilities.
- Month 3: monthly reporting to committee. DSO, DPO, CCC, PMP, % payments above 60 days, discounts captured vs lost. Without recurring reporting, KPIs dilute and you return to the initial situation in six months.
Expected result at 90 days in a well-managed SME: CCC reduced by 8-12 days, working capital freed between EUR 80,000 and EUR 200,000 in companies billing EUR 5-10M. The AP part of the work contributes half that figure; the other half comes from DSO and DIO.
CFO checklist: eight actions this quarter
Concrete, ranked by execution order:
- Compute DSO, DPO and CCC for the last closed quarter, broken down by spend family and supplier segment.
- Audit how many invoices are paid above 60 days. Absolute number and percentage. Compare with PMP published in annual accounts.
- Map the average time between receipt and "ready-to-pay". Identify the dominant bottleneck.
- Inventory prompt-payment discounts offered by top 20 suppliers and compute how many were lost in the last year due to slow processing.
- Define segmented payment policy (top spend / long tail / multinationals) and publish internally.
- Set internal SLA: approval within 48 h of receipt; payment on the exact contractual due date for top spend.
- Activate monthly reporting to the financial committee with the five metrics (DSO, DPO, CCC, PMP, % payments above 60 days).
- Evaluate touchless AP as a specific lever to recover useful DPO and gain early visibility of supplier liabilities.
Recover 10 days of operational DPO in 90 days?
Measure where your supplier credit days are being burned in internal queue. Try it with your real invoices and see the treasury cycle in the first month.
Frequently asked questions
- Is stretching DPO to the legal cap always a good idea?
- No. The optimum is to pay the day before the exact contractual due date, capturing prompt-payment discounts when their annualised cost exceeds your financing cost. Skipping a 2/10 net 60 costs 14.7% per year; financing through a bank at 4.5% is the better trade.
- What happens if I pay a B2B invoice at 75 days?
- You breach Law 9/2017. The supplier can claim ECB legal late-payment interest plus 8 points on the 15-day excess, plus EUR 40 minimum indemnity for collection costs. In companies required to audit, PMP is published in the notes.
- How does touchless AP affect real DPO?
- It recovers 10-12 days that in manual AP disappear in internal queue between receipt and "ready-to-pay". Contractual DPO does not change, but useful DPO (days financing you with real supplier credit) does.
- Is the same payment policy for all suppliers a good idea?
- No. Segment: top 20% spend at exact maturity, long-tail self-employed at 30 days, multinationals per contract. A single policy destroys critical relationships or gives away cash unnecessarily.
- How does Verifactu change DPO calculation?
- It provides a certain signed issue date, removes duplicate ambiguity and lets Treasury see supplier liabilities from day 1, not day 12. It improves the database on which DPO is computed; it does not change the formula.
- How much working capital does improving CCC by 10 days release?
- For an SME billing EUR 5M/year with a 30% gross margin, EUR 100,000-140,000 of permanent cash freed. It is not cost saving; it is working capital returning to the balance sheet without additional bank financing.
- Which complementary KPIs should I track alongside DSO and DPO?
- CCC (DSO + DIO − DPO), PMP (average payment period published in the notes), % payments above 60 days, prompt-payment discounts captured vs lost, AP exception rate. Together, those six tell the real treasury story.
- How do I start if I do not have modern AP software?
- Month 1, measure the baseline with an ERP-to-CSV export. Month 1-2, close internal leaks with a 48-h approval SLA. Month 2, define a segmented payment policy. Month 2-3, implement touchless AP. Month 3, monthly reporting to the committee. Without software you do not reach the ceiling, but without measuring the baseline you do not know what software would solve what.
Three things to remember
DSO hurts every month. DPO is often ignored. Both move exactly the same cash.
- The legal cap in Spain is 60 days B2B. It cannot be agreed otherwise. Operating above has financial, reputational and public-tender exclusion costs.
- Touchless AP does not stretch DPO aggressively; it recovers 10-12 days burned in internal queue between receipt and "ready-to-pay". Those days are real supplier credit, not accounting trickery.
- The optimum is not "as late as possible". It is "the day before the exact due date, capturing prompt-payment discounts when worthwhile". Without a segmented policy by supplier, you destroy the long tail or give away cash.
If you want to see how your useful DPO looks with automatic ingestion, structured reading and line-by-line matching, try ininvoice with your own invoices. You can also look at pricing and features in detail.
Related content
See a demo with my invoices
Connect Gmail. ininvoice ingests, cross-checks line by line and makes the invoice ready to pay in under 48 hours. You recover useful DPO without fighting suppliers.
Get startedFree plan: 20 documents per month · No card required · No lock-in