Invoicing

How to make an invoice (and get paid) with help from AI

By AiKit17 min read

Self-employed woman creating an invoice on her computer with the help of AI.
Cover image generated with AiKit Image. The person shown does not exist.
Contents

All it takes is one missing detail for the invoice to be sent back and for you to get paid later. To know how to make an invoice, start with these details: number and series, date, your details and the client's with their tax ID (NIF), description, taxable base, VAT rate and amount, and total. AI checks they are all there and drafts the reminder if the client doesn't pay.

What details must an invoice include?

#

To keep an invoice from being sent back, it must include a number and series, a date, both parties' details with their NIF, a description of the work, the taxable base, the VAT and the total. These are the invoice requirements set by article 6 of the Invoicing Regulation (Reglamento de facturación), Royal Decree 1619/2012. Your client needs their NIF on the invoice to deduct the VAT you charge them, so without it they can ask you for a new one.

It's natural to feel uneasy leaving that check to AI, because if it misses a detail, the invoice comes back and you're the one left waiting to get paid. It helps to know how it works. An AI assistant is the app you use, such as ChatGPT, and it runs on one or more large language models (LLMs), which are what generate the answers. The model reads the PDF or the photo of the invoice and compares it with the list you give it.

It does that comparison well, because spotting what's missing or doesn't add up is a matter of reading carefully: a missing NIF, a date, a sum that doesn't match the total. For the arithmetic, some assistants, such as AiKit Chat, don't estimate the result: they calculate it with a tool. The tax treatment of your transaction, on the other hand, isn't decided by the model. Whether it carries VAT or withholding depends on your situation, which isn't written on the invoice, and your accountant is the one who confirms it.

The table lists every mandatory detail. The withholding row comes from a different law, Act 35/2006 on personal income tax (IRPF):

The first column shows the detail; the second, what to put; and the third, a common mistake that gets the invoice sent back.
DetailWhat to putCommon mistake
Number and seriesA sequential number within each series, with no gaps. Corrective invoices go in a separate seriesSkipping a number or mixing corrective invoices with ordinary ones
Date of issueThe day you issue the invoice, plus the date of the transaction if it's differentPutting only today's date when the work was done in another month
Your detailsFull name or registered company name, NIF and addressForgetting the NIF or leaving an old address
Client detailsName or registered company name, NIF and address. Always, if it's a company or self-employedUsing the trade name instead of the registered company name
DescriptionThe work you did, with quantity and unit price where applicableWriting “professional services” without saying which
Taxable baseThe price before tax, with discounts shown separatelyUsing a price that already includes VAT as the base
VAT rate and amountThe percentage you apply and the resulting amountShowing the amount without the rate, or vice versa
IRPF withholdingIf it applies, the percentage and the amount deductedApplying it to a private individual, who doesn't withhold
TotalBase plus VAT, minus withholding if there is anyAdding the withholding instead of subtracting it
Statement if there's no VATWhy it has none and which rule covers itLeaving VAT at zero without explaining why

With that list, AI can check the invoice for you. Attach the invoice and the list, and ask it to show you in a table what's missing or doesn't add up. Also ask it not to correct amounts or decide the VAT: you confirm that with your accountant. For example:

Prompt for the AI

You are my admin assistant. I'm attaching an invoice and pasting the list of details it must include. Check it detail by detail. Give me a table with three columns: detail, whether it's present or missing, and what to correct. Also check that the base, the VAT, the withholding and the total add up. Don't correct amounts: flag them. If you're unsure whether a transaction carries VAT, tell me and I'll check with my accountant. If any information is missing, ask me for it.

It gives you back that table with every detail marked, and if something doesn't add up, you'll know where the error is. Go through it with the invoice in front of you, because with a blurry photo it can misread a digit of the NIF. That way you stop the invoice going out incomplete and coming back just when you were counting on the payment. If you want to see what else AI can do in your business, start with the guide to AI for SMEs.

When is an invoice VAT-free or subject to withholding?

#

An invoice is VAT-free only in the cases the law provides for, and it carries withholding when a professional invoices a company or another self-employed person (autónomo). Getting this right stops it being sent back or someone paying too much. The reason lies in how the two taxes work: you pay the VAT you charge over to the Spanish Tax Agency (Agencia Tributaria), and your client pays the withholding to it as an advance on your personal income tax.

When an invoice has no VAT, it must say why and cite the rule, since without that statement the zero tax looks like an oversight. The most common cases are these:

  • Exempt transactions: such as some healthcare or educational activities. They are listed in article 20 of Act 37/1992 on VAT, and the statement cites that article.
  • Services to a company in another EU country with an intra-Community VAT number: They are not exempt: they carry no Spanish VAT because the client declares the tax in their own country. The invoice says so with the wording “reverse charge” (inversión del sujeto pasivo).
  • Clients outside the EU: depending on the type of service. Check with your accountant.
  • Canary Islands, Ceuta and Melilla: where VAT doesn't apply, but IGIC or IPSI does instead. Even so, whether your invoice goes without VAT depends on where the transaction is deemed to take place.

As a general guide, VAT is 21% (standard), 10% (reduced) or 4% (super-reduced). Withholding, if you're a professional, is usually 15%, or 7% in the year you start and the following two. The 7% only applies if you've told the client, because they're the one who applies the withholding. Private individuals don't withhold, as they aren't required to.

If you ask AI to decide among so many nuances, it will give you the most likely answer for a similar case, which may not be yours. Instead, ask it to explain which case you might fall into and what to ask your accountant. Once they confirm it, AI drafts the statement for you:

Prompt for the AI

I'm invoicing a service to a company in France with an intra-Community VAT number. Explain in which cases it would go without VAT and what wording it would need. Also tell me what to ask my accountant. Don't decide for me. If any information is missing, ask me for it.

How do you make an invoice step by step?

#

You make an invoice step by step, starting from what you agreed with the client and what you actually did. It's best to issue it the day you finish the work, because the client can't pay an invoice they don't have yet.

It's tempting to leave it until the end of the month, when you have a moment. It seems to make no difference, but as the days go by the extras get forgotten, like the extra hour or the change the client asked for by email. And missing just one means you've worked those hours for free.

To issue invoices without leaving anything out, we recommend this order: AI cross-checks the details and prepares the draft, and you decide and issue it.

Example

Imagine you're self-employed and design websites for businesses.

You've just delivered a company's corporate website. During the project, the client asked you by email for some changes that weren't in the quote. This is how you'd get to the invoice:

1. Cross-check what you've done against what you quoted. Paste the accepted quote, your time notes and the emails with the changes into the assistant. Ask it to list what's still to be invoiced, because an extra agreed by email doesn't appear in the quote.

2. Prepare the fixed details. Take the next number in your series, with no gaps: here, F-2026-014. Add the date and check your details and the client's, including their NIF. You set the numbering yourself, because it comes from your invoice register and AI can't see it.

3. Ask AI for the draft, with the VAT and withholding your accountant has confirmed. If you don't give it them, the model uses the most likely ones, which may not be the right ones for your case:

Prompt for the AI

You're the person who handles my invoicing. I'm pasting the accepted quote and the extras. Prepare the draft of invoice F-2026-014, with one line per item. Apply 21% VAT and 15% withholding. Calculate the VAT amount, the withholding and the total, and show me the workings. Set payment due in 30 days by bank transfer. Don't change the prices in the quote. If any information is missing, ask me for it.

4. Check the draft against the list of details and the review prompt from the first section. Pay particular attention to the client's NIF and to the base being the quote plus the extras. An error that slips through here forces you to issue a corrective invoice later.

5. Issue the invoice from your invoicing software and send it as a PDF, with the payment terms written on it. Also note the due date, because the first reminder goes out from it if the client doesn't pay.

With those steps, the example invoice, generated with AI, would look like this table:

Each invoice field and its content. The issuer and the client are fictitious.
FieldContent
NumberF-2026-014
Date of issue5 October 2026
Issuer (fictitious)[Designer's name] · NIF: [Issuer's NIF] · [Address]
Client (fictitious)[Client company] · NIF: [Client's NIF] · [Address]
ItemCorporate website design
Taxable base€1,200
VAT (21%)€252
IRPF withholding (15%)−€180
Total payable€1,272
Due date4 November 2026 (30 days)
Payment methodBank transfer to [IBAN]

As for e-invoicing, for now a PDF sent by email is still valid, as long as the client accepts it. Mandatory e-invoicing between businesses is a separate matter, with its own timetable.

As for the deadline, article 11 of the Invoicing Regulation distinguishes two cases. If the client is a company or self-employed, the invoice is issued before the 16th of the month following the transaction. If it's a private individual, at the time of the transaction.

Bear in mind, though, that an example or template made with AI is not invoicing in compliance with VeriFactu. VeriFactu requires invoicing software to record each invoice so that it can't be altered without leaving a trace. A standalone document doesn't keep that record, so use adapted invoicing software to issue your invoices.

What type of invoice do you need?

#

The type of invoice you need depends on the transaction: it's almost always the ordinary one, and the other three cover specific cases. Getting it right first time saves redoing it, because each type requires different details and the corrective invoice goes in its own series.

For each type, when it's used and what changes compared with the ordinary invoice.
TypeWhen it's usedWhat changes
Ordinary or fullThe norm when invoicing companies and self-employed peopleIncludes all the details in the table in the first section
Simplified (formerly “ticket”)Amounts up to €400 including VAT, or up to €3,000 in some sectors, such as hospitality or retailDoesn't require the client's details, unless they ask for them
CorrectiveTo correct an invoice already issuedThe original isn't deleted or edited; it goes in its own series and cites the invoice it corrects
Pro formaTo send an offer or preview what will be invoicedIt isn't an invoice and has no tax validity

A pro forma lets the client approve an amount before you start. The ordinary invoice is issued afterwards.

A common question comes up once the invoice has been sent. If the designer's F-2026-014 went out with the client's NIF wrong, the first temptation is to open the PDF and change it. An issued invoice, however, can't be deleted or edited. It stays as it is and you issue a corrective invoice, in its own series, that cites F-2026-014.

If you're not sure which type fits your case, tell AI about it: it will explain it and prepare an example for you.

Prompt for the AI

I sent invoice F-2026-014 with the client's NIF wrong. Tell me what type of invoice I need to correct it and prepare an example with fictitious data. If any information is missing, ask me for it.

What should you do if the client doesn't pay?

#

If the client doesn't pay, chase the invoice as soon as it falls due and raise the tone step by step, because each step leaves more of a written record. Unpaid invoices are work you've already paid for yourself: your hours, your expenses and, generally, the VAT, which is declared on the invoice issued even if you haven't been paid yet.

Between businesses and self-employed people, the Late Payment Act 3/2004 (Ley 3/2004 de morosidad) sets the payment period. If no other period was agreed, it's 30 days, counted from when you provide the service and not from the invoice date. If one was agreed, 60 days at most.

Once the period has passed, the law lets you claim the late-payment interest it sets and €40 in collection costs per invoice. This law doesn't apply to a private client, so your letters don't cite it.

To chase an unpaid invoice, these are the usual steps. Between one and the next, 7 or 15 days is a suggested pace, not a rule:

  1. Friendly reminder on the due date: AI will draft a short payment reminder, with the number, amount and date, because the delay may simply be an oversight.
  2. Firmer follow-up if there's no reply: AI will raise the tone while staying polite and ask for a specific payment date, since a committed date is easier to chase.
  3. Formal written claim: AI will draft the letter with the amount, the due date and, if the client is a company or self-employed, the references to Act 3/2004.
  4. Formal demand by burofax (certified letter): It serves as proof that you made the claim and when. Before going to court you must have tried to reach an agreement, and your accountant or a lawyer will tell you whether this letter is enough to prove it. AI will prepare the text and you'll send it yourself.
  5. Payment order procedure (proceso monitorio) if they still don't pay: It's the court route for claiming a documented debt, such as an overdue invoice, and this is where your accountant or a lawyer comes in.

At each step, AI adapts the tone if you give it one of your emails with that client, because that way it imitates how you write instead of guessing a style. Then you send it yourself from your email. If your email is connected to the assistant with read-only permission, it can read your messages with that client but not send any. This is how you'd ask for the first reminder for F-2026-014:

Prompt for the AI

You're the person who handles my payments. I'm attaching invoice F-2026-014, which fell due on 4 November 2026. I'm also pasting an email I wrote to this client. Write a short payment reminder, with the invoice number, amount and due date. Give me the subject line and the body of the email. Use the tone of the email I'm pasting. Don't threaten legal action. Don't make up amounts or dates. If any information is missing, ask me for it.

It gives you the subject and body, ready to paste into your email. Before sending it, check that the amount is €1,272 and not the €1,200 base, because it's the first thing the client will look at. AI can't see whether you've already been paid, so the next step is your call. If client emails are piling up, we explain how to organise them in the guide to business productivity with AI.

What shouldn't you leave to AI when invoicing?

#

You shouldn't leave AI the decisions that set how much you pay or what risk you take on. The model generates what's likely from what you give it, and your tax situation isn't on the invoice.

These cases are still yours or your accountant's:

  • Deciding whether a transaction is exempt or what withholding applies to you. AI explains the possible cases, but the answer depends on information your accountant has.
  • Accepting a figure or rate without checking it. Even if it calculates with a tool, the starting figure may have been copied wrong, and then the total comes out wrong too.
  • Issuing the invoice from a standalone document. The draft is for checking. The invoice comes from adapted invoicing software, which is what keeps it on record.
  • Sending a claim with threats or legal deadlines without checking it. A wrongly cited deadline costs you credibility if the case ends up in court.
  • Pasting client data into an assistant without knowing who can see it. If your client is an individual, their data is protected by the General Data Protection Regulation (GDPR). First, check who has access to those conversations and what the provider does with them.

The rule for the whole process is this: AI explains, organises and drafts; your accountant decides.

How does AiKit help you invoice and get paid?

#

To apply this guide you need two things: an assistant that checks and drafts with your documents, and VeriFactu-ready software that issues the invoice. The tax side is still your accountant's job.

In AiKit, both are in the same suite. Chat checks the PDF before you send it, prepares quotes and drafts reminders and claims. It reads your Gmail or Outlook email if you connect it, but sends nothing: you do that. In this training video you can see how it reads a PDF invoice; it appears there under its former name, AiKit Plus. AiKit Desk creates and sends invoices that comply with VeriFactu, and with TicketBAI in the Basque Country, and generates e-invoices in Facturae format.

Where should you start this week?

#

Start with the invoices you've already issued, because a missing detail in them can delay a payment. Run the last three through the review prompt from the first section and note what's missing. If one you've already sent has an error, remember it's corrected with a corrective invoice, not by editing the original. Then sort the overdue ones by date and prepare the first reminder for the oldest. To bring AI into other areas of your business, go back to the guide to AI for SMEs.

It depends on what you use them for. Today you can write them in Word or Excel if they include all the mandatory details. Under VeriFactu, according to the Tax Agency, using them only to write, print and save the invoice doesn't make them an invoicing system. If you use invoicing software, it will have to be adapted. Your accountant will tell you how it affects you.

It depends on who you're invoicing. For a private individual, at the time of the transaction. For a company or a self-employed person, before the 16th of the month following the transaction, under article 11 of the Invoicing Regulation. So a job finished on 5 October 2026 could be invoiced up to 15 November. Even so, issuing it when you finish gets the client the invoice they need to pay you sooner.

It depends on which part. Drafting and checking it, yes: an assistant does that with the details you give it. Issuing it depends on the software. A document generated by a standalone assistant works as a draft, but it isn't invoicing in compliance with VeriFactu. In AiKit, the invoice is created and sent from Desk, which complies with VeriFactu, and Chat helps you prepare the details and check it beforehand. VAT and withholding are decided by your accountant.