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; seeunits-and-currency.
Steps #
- Add a rate with
POST /settings/tax-rates, givingcode,labelandrate_bps, in hundredths of a percent (1800 means 18 percent). Thekindissales,vat,gst,igst,cgst_sgst,cess,zero,exemptorother. A repeatedcodeanswersconflict. - For a composed rate such as CGST plus SGST, send
parts, each withcode,labelandrate_bps. The parts add up to the rate. The invoice shows each part on its own line. - Set validity with
valid_fromandvalid_to(YYYY-MM-DD). A rate applies to an invoice only when the invoice's issue date falls inside that window. - Choose the default rate for each kind of line with
POST /settings/tax-defaults, givingline_kind(labor,part,tow,storage,fee,subletorother) andtax_rate_id. A rate chosen on a line itself wins over the default. - Choose rounding with
tax_roundin the locale settings:invoicerounds tax once for each rate on the invoice and shares it across that rate's lines,linerounds tax on each line. Turn onprices_include_taxwhen your prices already contain tax. - Turn a rate off with
PATCH /settings/tax-rates/{id}andactiveset to false. Old invoices keep their figures. - 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.issuedonce. Each line carriesasset_ref. Calling finalize again answersalready_finalisedand 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_exportswith 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_bpsis outside 0 to 100000, the parts do not add up, a line points at a rate that does not exist for that date, ortocomes beforefrom.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 asYYYY-MM-DD.licence_read_only(403): finalizing refuses; exports stay open.