Customs broker and transit invoice generator

Bill a customs clearance in two minutes: your fees and the DUM file are on the lines at 20%, and the duties you paid for the client go on a line of their own, at cost.

  • ICE, IF, RC and TP on the document, with the client's ICE
  • VAT 20% and 10% 2026 rates, totals per rate and the amount in words
  • A4 PDF in one click 5 styles, logo, stamp and RIB
  • Nothing is uploaded everything stays on this device

Nothing leaves your browser: no account, no server, no upload. Your profile, documents, logo and stamp are kept on this device only.

Your business

Kept on this device and filled in on every new document.

Logo

PNG, JPEG, SVG, WebP: 2 MB max.

Stamp or signature
Number and dates
Type
Client

Lines

Payment

Required details (article 145)

  • Number from a continuous series
  • Seller's identity (name, address)
  • Tax ID (IF) and business tax number
  • Seller's ICE
  • Date of the operation
  • Client's name, address and ICE
  • Nature, quantity and price
  • VAT shown separately or exemption
  • Payment method

My documents

Saved on this device. Export a backup to keep them elsewhere or move them to another device.

No saved documents yet. Click "Save" or print an invoice and it will show up here.

    How to write a customs broker invoice in Morocco

    A customs broker invoice in Morocco mixes two kinds of money. One part is your own pay: transit and clearance fees, the price of your work, which carries VAT. The other part is money you only passed through: duties and taxes paid to customs on the client's behalf, known as débours. Mixing the two is the classic error of the trade. This guide shows how to keep them apart under the General Tax Code (CGI), with an example you can rebuild above.

    What goes on the lines

    Picking "Customs broker (transit)" fills in the two lines that hold your fees:

    • Transit and clearance fees, usually a flat amount per file or per container, with the container or truck reference in the description.
    • File and declaration fees, for preparing and lodging the DUM, the single goods declaration filed with customs.

    Add the débours yourself below them, one line per receipt or one line per type (duties and import VAT, port charges), each with the receipt or DUM number. The preset's note already says that duties paid for the client are billed separately with receipts.

    VAT on transit fees: 20%

    Brokerage and services in general are subject to VAT under article 89-I-10°-b. No reduced rate in article 99-B names customs clearance, so your fees take the normal rate of 20% (article 99-A). It makes no difference whether the goods are imported or exported, or what rate the goods themselves carry: the rate on the line is the rate of your service.

    By default the VAT on your fees falls due when you are paid (article 95). If the client pays a provision before clearance, the part that pays your fees carries VAT when received.

    Débours: outside the taxable base

    Article 96-7° sets the taxable base of brokers, agents and other intermediaries at the gross amount of their fees, minus the expenses incurred for the client and reimbursed at identical cost. Those expenses are the débours. Re-billed at exactly what you paid, they carry no VAT from you.

    Practice that keeps this safe:

    • pay in the client's name and keep the customs receipt, then attach a copy to the invoice;
    • re-bill the exact amount, with no margin: anything added on top is a fee, at 20%;
    • put the débours on their own line, never folded into your fee.

    In the generator, set that line to "No VAT". The totals block then labels it "exempt or not registered", which is not quite right for débours: they are not exempt, they are simply outside your taxable base. So start the description with the word "Débours" and add a note such as "Débours re-billed at cost, outside the taxable base (CGI art. 96-7°)".

    Import VAT is paid at customs

    The VAT on imported goods is a different tax from the VAT on your fees. It falls due when the goods are cleared (article 121), on the customs value plus the import duties and taxes, and customs collects it just as it collects duties (article 122). When you pay it for the client, it is part of the débours, and the client's own accountant recovers it from the customs receipt, not from your invoice.

    Quote the DUM number on the invoice so that receipt, declaration and invoice point to one another. To estimate duties on a car before quoting, the car customs calculator gives a figure in a minute.

    Worked example: clearing an import container

    An importer in Nador asks you to clear a container at the port. Your transit fees are 2,000 MAD and the DUM file fees 500 MAD, both at 20%: the 20% base is 2,500.00 MAD and its VAT 500.00 MAD. You paid 18,000 MAD of duties and import VAT at customs for the client; that line is set to "No VAT", described as "Débours" with the receipt number, and the outside-the-base base reads 18,000.00 MAD. The client owes 21,000.00 MAD in total, of which 500.00 MAD is your VAT.

    DescriptionQtyUnitUnit price excl. VATVATTotal excl. VAT
    Transit and customs clearance fees, container MSKU 123456-7 1 flat fee 2,000.00 MAD 20% 2,000.00 MAD
    File and declaration (DUM) fees 1 flat fee 500.00 MAD 20% 500.00 MAD
    Débours: customs duties and import VAT paid for the client, DUM no. ..., at cost (receipt attached) 1 flat fee 18,000.00 MAD Exempt 18,000.00 MAD
    Total excl. VAT20,500.00 MAD
    VAT 20%500.00 MAD
    VAT-exempt lines0.00 MAD
    Total incl. VAT21,000.00 MAD
    Example prices for illustration, not market rates.

    Common mistakes

    • Charging 20% on the duties: the client pays VAT twice on the same money.
    • Adding a margin to the débours line: the margin is a fee and must be at 20%.
    • One total "clearance, all included" with no split, so no one can tell fee from débours.
    • No DUM number or receipt: the client cannot match your invoice to customs records.

    Clearing for an exporter or an importer? The import-export invoice page covers their own invoices, and the transport invoice page the road leg.

    Questions

    What VAT rate applies to customs broker fees in Morocco?

    The normal 20% rate (article 99-A). No reduced rate covers transit or clearance services.

    Do I charge VAT on duties I paid for my client?

    No, if you re-bill them at exact cost as débours. Article 96-7° takes them out of your taxable base. Keep the customs receipt.

    Why does the tool print "exempt" on the débours line?

    The tool has one zero option for every case. Write "Débours" in the description and add a note citing article 96-7°.

    Source: General Tax Code (CGI), 2026 edition

    Invoicing in Morocco in 2026: what an invoice must show, ICE and VAT

    A Moroccan invoice is more than a page with a total on it. The General Tax Code sets out what it must contain, and a business client can only deduct the expense with a proper invoice in its name. This guide covers how to make a compliant invoice, what ICE, IF, RC and TP mean, which VAT rates apply in 2026 and how long to keep invoices, whether you run a company, a shop or work as an auto-entrepreneur. It is written for foreign freelancers and businesses billing Moroccan clients as much as for locals.

    What a valid Moroccan invoice must show (article 145)

    Article 145-III requires invoices pre-numbered from a continuous series, or issued by software in a continuous series. On top of the usual commercial details, every invoice must show:

    1. the seller's identity;
    2. the seller's tax ID (IF) and business tax (taxe professionnelle) number;
    3. the date of the operation;
    4. the client's name or company name, address and ICE;
    5. the price, quantity and nature of the goods, work or services;
    6. the VAT amount, shown separately from the price, or the mention of the exemption or suspension regime;
    7. the payment references and method.

    The seller's ICE comes on top of this list (article 145-VIII). Taxpayers who are not traders must put their IF and business tax number on every document they give clients (article 145-VII). For a sale to a private customer, a till receipt can replace the invoice if it shows at least the date, the seller, the product or service, the quantity and the price.

    The "Required details" panel under the preview ticks these off as you fill in the form.

    ICE, IF, RC and TP explained

    • ICE (identifiant commun de l'entreprise, common business identifier): it must appear on your invoices and on every tax return (article 145-VIII), and a business without one cannot use the code's exemptions (article 164-I). For financial years starting from 1 January 2019, the client's ICE is required on the invoice too.
    • IF (identifiant fiscal, tax ID): the number given by the local tax office (article 145-III-2°).
    • TP (taxe professionnelle, still often called the patente): your assessment number for this local business tax, governed by law 47-06.
    • RC (registre de commerce, trade register): the registration number of traders and companies. Article 145 does not name it, but it is one of the usual commercial details, so add it if you are registered.
    • CNSS: optional on an invoice.

    Invoice (facture) or quote (devis)?

    A quote comes before the sale: it describes the work, its price and how long the offer stays valid, and the client accepts or declines it. The invoice comes after delivery: it is the document article 145 is about, the one your client records and uses to deduct the expense (article 146). A pro forma invoice, often asked for an advance payment or a file, works like a quote: it does not replace the final invoice.

    Keep two separate series, for example D-2026-001 for quotes and F-2026-001 for invoices: the generator numbers them for you: F-2026-002 follows F-2026-001, and quotes keep their own D- series. The invoice series must stay continuous, with no skipped or reused numbers.

    Moroccan VAT rates in 2026: 20% and 10%

    Since 1 January 2026, article 99 has only two rates: 20%, the standard rate, and 10%, the reduced rate (hotels, restaurants and other operations listed in article 99). The 2024 finance law set a step-by-step transition that ends this year (article 247-XXXXI):

    Operation20252026
    Electricity18%20%
    Electricity meter rental15%20%
    Passenger and goods transport, other than urban and road18%20%
    Urban transport and road transport12%10%
    Refined or cube sugar9%10%

    On the invoice, VAT is worked out per rate and then added up. An example from the generator: a service at 8,500 MAD excl. VAT at 20% and two units at 1,200 MAD excl. VAT at 10% give 10,900 MAD excl. VAT, 1,700 plus 240 MAD of VAT, and 12,840 MAD incl. VAT. For an exempt operation, pick "Exempt" on the line and write the exemption article in the terms: article 145 then asks for the exemption mention instead of the tax.

    The amount in words

    The closing line "Arrêtée la présente facture à la somme de", the invoice total written out in words, is a widespread habit in Morocco. It is not one of the article 145 details, but it heads off disputes about the total, because a figure is easier to alter than a sentence. The generator writes it for you in French, Arabic or English, with an optional Arabic line under a French or English invoice: 12,840 MAD becomes "douze mille huit cent quarante dirhams" in French and "اثنا عشر ألفاً وثمانمائة وأربعون درهماً" in Arabic, and centimes are written out too.

    Prefill lines for your trade

    The "Your activity" menu fills in typical lines for common trades in Nador: car rental, restaurant or café, hotel, construction, electrician or plumber, garage, aluminium joinery, customs broker, real estate agency, shop, web freelancer, transport, catering, hair and beauty, and import-export. Prices stay empty because they are yours to set, and everything can be edited.

    The suggested VAT rate follows the code: 10% for accommodation, restaurants and cafés, and road freight (article 99-B-1°), 20% for everything else (article 99-A). A retailer under 2,000,000 MAD turnover is outside VAT (article 89-I-2°) and exports are exempt (article 92-I-1°): pick "No VAT" then. The document style (classic, modern, minimal, elegant or bold accent) changes the layout, not the content: what you see is what prints.

    Invoices for auto-entrepreneurs

    Article 145 does not apply to individuals under the auto-entrepreneur scheme or the single professional contribution (paragraph XI), with one exception: like every taxpayer, they must have an email address (paragraph X). A business client still needs a proper invoice in its name to deduct the expense (article 146), so include your name, ICE, the date, a number from a continuous series and the details of the service.

    If you bill one client more than 80,000 MAD of services in a year, the surplus is subject to a 30% withholding: the auto-entrepreneur tax calculator shows what that costs, along with the quarter's CNSS contribution.

    How long to keep invoices: 10 years

    Article 211 requires you to keep, for ten years and at the place where you are taxed, copies of sales invoices or till receipts, proof of expenses and investments, and the accounting records. Accounts kept electronically are stored electronically. If records are lost, you must tell the tax inspector by registered letter within 15 days (30 days in case of force majeure).

    This generator keeps your documents in "My documents" on this device only, so export a JSON backup now and then and save every invoice as a PDF in a backed-up folder. Companies, taxpayers under the real or simplified net income regime and VAT-registered businesses must also use invoicing software that meets the criteria set by the tax administration (article 145-IX), with the details fixed by regulation for each sector. A free template helps you draft an invoice; it does not replace that system.

    For day-to-day bookkeeping, see our article on essential apps for Moroccan small businesses, and if you hire staff, the net salary calculator estimates what an employee takes home.

    Questions about invoices in Morocco

    What must an invoice show in Morocco?

    Under article 145 of the General Tax Code: a number from a continuous series, the seller’s identity with its IF, patente and ICE, the date, the client’s name, address and ICE, the nature, quantity and price of each product or service, VAT shown separately (or the exemption mention) and the payment method.

    Is the client’s ICE required on the invoice?

    Yes. For operations of financial years starting from 1 January 2019, article 145-III-4° requires the client’s name, address and common business identifier (ICE). The seller’s ICE has been required since 2016 (article 145-VIII).

    Which VAT rates go on an invoice in 2026?

    20% for most goods and services, 10% for the operations listed in article 99 of the code (restaurants, hotels, banking, some products). The 7% and 14% rates ended on 1 January 2026: electricity and transport other than urban and road transport moved to 20%, sugar and urban and road transport to 10%.

    Is my data sent anywhere?

    No. The maths runs in your browser, the logo and stamp are read and resized on your device, and your profile and documents stay in this browser’s local storage. Nothing is sent to a server. To move to another device, use “Export” then “Import”.

    How do I save the invoice as a PDF?

    Click “Print or PDF”, then choose “Save as PDF” as the printer. The page is A4 and only the invoice is printed, without the rest of the site.

    Sources

    More tools Auto-entrepreneur tax calculatorNet salary calculator