A company that sells to other companies in Spain on invoice terms is bound by Ley 3/2004, the law that sets payment periods, default interest and compensation for late payment in commercial transactions. The same applies when an English-speaking team runs the shop and the buyers are Spanish businesses. This page covers what the law says and what a B2B WooCommerce build has to do with it.
I am Mariusz Szatkowski, a WooCommerce developer who has used WordPress since 2006 and works from Gdynia. I work solo, remote and written only, and the storefront layout is either my design or yours. This is a description of how the build handles the statute, not legal advice: which law governs a given cross-border contract is a question for your lawyer. More about what I build is on the WooCommerce developer overview.

Photo: paolotrabattoni.it, CC BY 2.0, Wikimedia Commons.
#What is Ley 3/2004 and who does it cover?
Ley 3/2004 of 29 December is titled “por la que se establecen medidas de lucha contra la morosidad en las operaciones comerciales”. Article 1 says its purpose is to combat late payment of monetary debts and abuse, to the creditor’s detriment, in setting payment periods in commercial transactions that involve delivery of goods or provision of services between companies or between companies and the administration. The text on the BOE site is a consolidated version whose last update was published on 1 October 2014.
Article 2 defines a company as any natural or legal person acting in the exercise of an independent economic or professional activity. A sole trader counts. Article 3 excludes payments in transactions that involve consumers, debts under insolvency proceedings and some payment instruments such as cheques and bills of exchange.
For a shop this means the order form has to tell a company from a consumer. The rules below apply to the first and not to the second.
#What payment periods does the law set?
Article 4 sets the periods:
- Default: thirty calendar days. If the contract fixes no date or term, the debtor pays within thirty calendar days after receiving the goods or services, even if the invoice arrived earlier.
- Invoice delivery: fifteen days. Suppliers must get the invoice or equivalent payment request to the customer before fifteen calendar days have passed from the effective receipt of the goods or services.
- Acceptance procedure: thirty days at most. If the law or the contract provides a procedure to verify that the goods or services conform, it cannot exceed thirty calendar days from receipt. Payment then falls thirty days after the acceptance or verification.
- Agreed extension: sixty days at most. The parties may extend the periods by agreement, but never beyond 60 calendar days.
- Summary invoices. Invoices can be grouped over a period of no more than fifteen days, counting from the middle of the period, with payment within sixty days from that date.
- Electronic invoices. Where the contract fixes a term, receipt of the invoice by electronic means starts the count, provided the identity and authenticity of the signer, the integrity of the invoice and its reception are guaranteed.
Article 2 adds that payment periods count all calendar days of the year, and that agreements excluding holiday periods from the count are void.
#When does interest run, and how high is it?
Under article 5 the debtor falls into default and owes the agreed or legal interest automatically on missing the agreed or legal period, with no notice of maturity or demand from the creditor. Article 6 sets two conditions for the creditor: it has fulfilled its contractual and legal obligations, and it did not receive the amount on time, unless the debtor proves it is not responsible for the delay. For instalment plans, interest and compensation are calculated only on the overdue amounts.
Article 7 says the interest is the one in the contract and, absent an agreement, the legal rate: the European Central Bank rate at its most recent main refinancing operation before the first day of the calendar half-year, plus eight percentage points. That rate applies for the following six months, and the Ministry publishes the result in the BOE each half-year.
#What compensation can the creditor claim?
Article 8 gives the creditor a fixed sum of 40 euros, added to the principal debt in all cases and without a request. The creditor can also claim for all duly proven collection costs that exceed that sum. The debtor does not owe the compensation if it is not responsible for the delay.
#What can the invoice terms not say?
Article 9 declares void a clause or practice on the payment date or term, the default interest or the compensation, when it is manifestly abusive to the creditor given all circumstances. Three cases are void in every case: clauses contrary to the conditions for claiming interest in article 6, clauses that exclude default interest, and clauses that exclude the compensation in article 8. Interest agreed at a level 70 percent below the legal rate is considered abusive, unless proven otherwise. A judge who finds a clause void integrates the contract under article 1258 of the Civil Code.
Article 10 allows a retention of title clause, under which the seller keeps ownership of the goods until full payment, if it was expressly agreed before delivery.
The practical result for a shop: its standard terms cannot waive late payment interest or the fixed compensation, and cannot set a payment period above 60 days. If your buyers ask for longer terms in a negotiation, that is a contract matter outside the shop.
#What must a B2B WooCommerce build reflect?
This is my translation of the statute into shop tasks. Wording of terms is for your lawyer.
- Company or consumer, recorded at checkout. A buyer type or company field, with a tax number for companies. Invoice terms are offered only to the first group.
- A payment term per customer group. Thirty days as the default, an agreed term up to sixty days for named accounts, and no value above sixty accepted in the settings.
- A due date computed from receipt, not from the order. The law counts from receipt of the goods or services, so the build needs the carrier’s delivery confirmation as a dated event. WooCommerce’s own order statuses do not capture it, because Completed only means you fulfilled the order.
- An invoice sent inside fifteen days. The invoice is generated and emailed on delivery confirmation, with a stored send date, so you can show when it reached the customer.
- A status for invoiced and unpaid. WooCommerce documents that Direct Bank Transfer puts the order On hold until you verify the money has arrived, and that On hold also holds orders waiting on delayed payment methods such as SEPA Direct Debit. For account customers the build adds a clear status with the due date on it.
- Reminders from the due date. Interest runs automatically, so a reminder does not create the claim. It tells the customer the date has passed and what is now owed. The reminder email shows the principal, interest at the rate valid for the half-year and the fixed 40 euros, using a rate table that is updated twice a year from the BOE.
- Terms that match the law. The terms page and the invoice footer state the payment term, and do not exclude interest or compensation.
- Acceptance windows. If your contracts include a verification procedure, the build stores it with a cap of thirty days and starts the payment term from its end.
#Which payment methods fit invoice terms?
The WooCommerce documentation for Direct Bank Transfer says the customer starts the payment in their bank, the order goes to On hold, and bank details, including IBAN and BIC, are shown on the order received page and in the order email. For B2B that makes a transfer with the invoice number as reference the base method. A card or a gateway such as a direct debit suits customers who pay on order and need no terms. A buyer on account pays by transfer, and matching the transfer to the order by reference is part of the scope, because late payment interest depends on a provable date of receipt of the money.
#Checklist for B2B invoice terms
- Record company or consumer at checkout and apply the terms only to companies.
- Set the default term to thirty calendar days and cap agreed terms at sixty.
- Count the term from receipt of the goods, using the carrier’s delivery event.
- Send the invoice before fifteen days have passed since receipt and store the date.
- Show the due date on the order, the invoice and in the account.
- Do not exclude default interest or the fixed compensation in the terms.
- Keep a half-year rate table taken from the BOE.
- Send reminders from the due date with interest and the fixed sum shown.
#How a project with me runs
You send the shop URL, your current invoice terms and the account customers you invoice. Replies come by email within 24 hours on working days, and a written scope with my stated assumptions follows my questions. I build on a staging copy, test with sandbox payments and a set of test accounts with different terms, and you accept in writing before launch. After launch you can add maintenance as an option, see WordPress website maintenance. I work remotely and in writing only, and I do not hold meetings.
#Send me the shop and your invoice terms
If you run a B2B shop in Malaga or sell to Spanish companies from abroad, write to me through the contact page. Send the shop URL, your goal, the deadline, the current stack and your current invoice terms. The first written estimate is free and comes back to you by email.