Get started
Color

Tax rates and invoice tax

Enter your own tax rates, choose defaults and rounding, finalize invoices with tax, and export the UK VAT worksheet.

For
OwnerAccountant
Hosting
Any hosting
Devices
All devices
Business
All businesses

Checked against Pop Dispatch 0.1.0

You will be able to enter the tax rates you charge, set which rate applies to each kind of invoice line, finalize an invoice so its tax is fixed, and export the UK VAT worksheet. Pop Dispatch never seeds a tax rate. You type each one in, so every rate on an invoice is one you chose.

Before you start #

  • Entering rates and settings needs the owner or manager role. Finalizing invoices and exporting need a role in the money group (owner, manager or advisor).
  • Set the country and currency first with PATCH /settings/locale; see units-and-currency.

Steps #

  1. Add a rate with POST /settings/tax-rates, giving code, label and rate_bps, in hundredths of a percent (1800 means 18 percent). The kind is sales, vat, gst, igst, cgst_sgst, cess, zero, exempt or other. A repeated code answers conflict.
  2. For a composed rate such as CGST plus SGST, send parts, each with code, label and rate_bps. The parts add up to the rate. The invoice shows each part on its own line.
  3. Set validity with valid_from and valid_to (YYYY-MM-DD). A rate applies to an invoice only when the invoice's issue date falls inside that window.
  4. Choose the default rate for each kind of line with POST /settings/tax-defaults, giving line_kind (labor, part, tow, storage, fee, sublet or other) and tax_rate_id. A rate chosen on a line itself wins over the default.
  5. Choose rounding with tax_round in the locale settings: invoice rounds tax once for each rate on the invoice and shares it across that rate's lines, line rounds tax on each line. Turn on prices_include_tax when your prices already contain tax.
  6. Turn a rate off with PATCH /settings/tax-rates/{id} and active set to false. Old invoices keep their figures.
  7. Finalize an invoice with POST /invoices/{id}/finalise. The answer shows the currency, subtotal, tax and total.

What finalizing does #

  • Each line stores a snapshot: the rate, its percentage, its label and the tax amount.
  • The invoice gets a per-rate breakdown with the taxable amount and tax for each rate, and the tenant's currency.
  • Pop Dispatch announces invoice.issued once. Each line carries asset_ref. Calling finalize again answers already_finalised and announces nothing more.
  • A void invoice or one with payments does not change.

UK VAT worksheet #

POST /export/uk-vat with from and to returns the nine-box worksheet as CSV for that period, covering the invoices issued in it. Add the figures from your books (purchases_ex_vat_cents, vat_reclaimed_cents and the others) in the request. The route sits under /export, so it works when the license is read-only. Pop Dispatch records the export against each invoice it covers, so you can trace a file back to its invoices.

India files #

The India e-invoice and e-way bill files are still to be built, because their published schemas could not be read. Pop Dispatch holds no draft of them.

Technical details
  • Money is integer minor units. Rates are in basis points (rate_bps, 0 to 100000).
  • Tax is computed by a pure engine in the core. Rates are read for the invoice's issue date, and lines with no taxable flag and no rate count as exempt.
  • Records of exports sit in invoice_exports with the file name and a SHA-256 of the file. Running the same export again records nothing twice.
  • The worksheet follows the box meanings published by the UK tax authority.

If something goes wrong #

  • validation_failed (422): rate_bps is outside 0 to 100000, the parts do not add up, a line points at a rate that does not exist for that date, or to comes before from.
  • conflict (409): the invoice is void or has payments, or the rate code exists.
  • not_found (404): no such invoice or rate.
  • invalid_date (422): write dates as YYYY-MM-DD.
  • licence_read_only (403): finalizing refuses; exports stay open.