VAT/GST Treatment of Trading-Related Services
Determines the indirect tax treatment of the services a trading entity buys —
exchange and clearing fees, brokerage, exchange connectivity, co-location,
market data, software licences, management recharges — and works out how much of
the VAT/GST on them the entity can actually recover.
Two things drive the answer: what the service is (an exempt financial supply,
or a taxable one) and where the supplier and the recipient belong (domestic,
or an import triggering a reverse charge). On top of that sits the partial
exemption ratio, because a trading entity's largely exempt income means most of
its input VAT is a real cost, not a timing difference.
Engineering guidance, not tax advice. This skill encodes how to build and verify the
bookkeeping and the checks around it; it does not determine anyone's tax position. Confirm
the treatment with a qualified tax professional in the relevant jurisdiction before relying
on its output for a filing.
When to Use
Use this skill when processing vendor invoices, preparing a periodic VAT/GST
return, or auditing the indirect tax leakage in a trading entity's cost base
across UK HMRC, EU member states, Singapore IRAS and Australia ATO.
The engine:
- Classifies an invoice as
EXEMPT, STANDARD_RATED, REVERSE_CHARGE or
OUT_OF_SCOPE (assess_invoice_tax).
- Self-assesses both reverse-charge legs — output VAT for UK return Box 1 and
the ratio-restricted input tax claim for Box 4.
- Computes the pro-rata recovery ratio with the statutory rounding-up rule
applied where it exists (
set_partial_exemption_ratio).
- Quantifies unrecoverable input VAT as an expense hitting trading PnL.
- Aggregates a period return summary, keeping every per-invoice
determination in
summary.assessments for the audit trail
(generate_vat_return_summary).
Every assessment carries a warnings tuple naming the determinations the engine
could not make from the category alone.
When NOT to Use
- As the place-of-supply analysis itself. The engine assumes the modelled
taxable services follow the B2B general rule (VATA 1994 s.7A; Directive
Art 44). It flags, but cannot resolve, the immovable-property exception for
exclusive-use co-location (CJEU C-215/19 A Oy).
- To split a bundled exchange invoice. Exchange execution may be exempt
while membership, port, connectivity and technology charges on the same
invoice are standard-rated (HMRC VAT Notice 701/49 para 6.9). The split is a
human determination; the engine warns and gives you a category for the
standard-rated half.
- Across currencies. No FX conversion is performed. Amounts must be
pre-converted to a single currency at the correct statutory rate and date, and
the return is filed in the tax jurisdiction's own currency.
- For credit notes, refunds or negative amounts. Rejected by design rather
than silently signed through the recovery arithmetic.
- For special methods (PESM), annual adjustments, the capital goods scheme,
the UK reg 106 de minimis test, VAT groups, or the Australian reduced input
tax credit regime. None are modelled.
- As the Australian apportionment method. The ATO prescribes no turnover
pro-rata; GSTR 2006/3 requires a "fair and reasonable" method, with direct
estimation preferred.
- As tax advice or a filed return. It produces indicative figures for a tax
function to review, not a submission.
Prerequisites
- Python 3.10+, standard library only.
- An accounts payable ledger providing, per invoice:
invoice_id,
vendor_name, vendor_jurisdiction, entity_jurisdiction,
service_category and a VAT-exclusive net_amount_usd, all amounts already
in one currency.
- The entity's taxable and exempt turnover for the period, with UK "specified
supplies" (exempt Grp 5 services to non-UK customers, SI 1999/3121) counted as
taxable.
- A view on whether the entity is entitled to a full input tax credit — this
determines whether Singapore's and Australia's reverse charge regimes apply
at all.
Workflow
- Set the recovery ratio first. Call
set_partial_exemption_ratio(taxable_supplies_usd, exempt_supplies_usd, rounding)
— or pass a known percentage to the constructor. Choose rounding by
jurisdiction: UP_WHOLE_PERCENT for UK and EU entities (reg 101(4);
Art 175(1)), UP_TWO_DECIMALS where UK reg 101(5) applies (residual input
tax over £400,000/month on average), NONE for Singapore and Australia. The
default is NONE, so a UK/EU entity that leaves it unset under-recovers.
- Ingest invoices as
TradingExpenseInvoice records. Split bundled
exchange invoices before ingestion, booking the standard-rated lines as
EXCHANGE_MEMBERSHIP_CONNECTIVITY_FEE.
- Assess each invoice with
assess_invoice_tax(invoice). The order of
determination is: exempt financial supply first (an exempt import carries no
reverse charge), then the cross-border test, then domestic treatment.
- Resolve the warnings. Each entry marks something the category could not
settle — a bundled exchange invoice, an exclusive-use co-location contract, a
Singapore/Australia entitlement question, US sales tax. Clear them before the
return is filed; do not treat a warned determination as final.
- Generate the return summary with
generate_vat_return_summary(invoices).
Map total_output_vat_usd to UK Box 1 and total_recoverable_input_vat_usd
to Box 4, then add output VAT on the entity's own sales — the engine
covers the purchase ledger only. Post
total_unrecoverable_vat_expense_usd to PnL and retain
summary.assessments.
Common Pitfalls
- Treating every exchange invoice as exempt. HMRC VAT Notice 701/49 para 6.9:
"Basic admission or membership charges are taxable at the standard rate…
The liability of other charges depends on exactly what is being done by the
exchange for the charge." Booking the whole invoice as exempt loses the input
tax recovery on the standard-rated element.
- Reverse-charging an exclusive-use co-location cage. CJEU C-215/19 A Oy
turned on the customer having no exclusive right of use of a defined
space. A dedicated cage or suite can flip the supply into the
immovable-property rule, taxable where the data centre sits — meaning a local
VAT registration obligation, not a reverse charge, and a mis-filed return in
two jurisdictions if you get it wrong.
- Assuming the reverse charge is universal. Singapore's imported-services
regime and Australia's GST Act Div 84 both apply only where the recipient is
not entitled to a full input tax credit. A fully-recovering SG or AU entity
is outside them; a UK or EU entity is inside regardless of recovery position.
- Declaring only the net reverse-charge cost. The self-assessed output VAT
belongs in Box 1 and the restricted claim in Box 4. Netting them off
understates declared output tax even though the cash effect is identical.
- Skipping the statutory rounding-up. A raw 20.4% ratio is 21% under UK
reg 101(4) and EU Art 175(1). Using the raw figure systematically
under-recovers input VAT.
- Leaving specified supplies out of the numerator. Exempt Grp 5 supplies to
non-UK customers carry recovery under SI 1999/3121; parking them in the exempt
bucket understates the ratio.
- Assuming 100% recovery on co-location and market data. A trading entity
with largely exempt income recovers only its pro-rata share; the rest is a
permanent PnL cost, not a receivable.
- Filing in the wrong currency. VAT/GST is declared in the tax
jurisdiction's currency. This engine does no FX conversion — a ledger in USD
assessed at 20% does not produce a filable UK figure.
- Changing the ratio mid-batch.
generate_vat_return_summary applies
whatever ratio the engine currently holds, so re-running it after a ratio
change silently produces different numbers for the same invoices.
Verification
Run the unit test suite. It covers exempt financial services, the exchange
membership split, domestic standard-rated supplies, cross-border reverse charge
including the self-assessed output VAT leg and recipient-rate selection, the
Singapore/Australia full-credit carve-out, statutory rounding (whole percent,
two decimals, the 100% cap and the exact-percentage guard), fail-closed rate
lookup for unmapped or non-enum jurisdictions, ratio validation, and return
summary aggregation with its audit trail:
python -m unittest discover -s skills/vat-gst-treatment-of-trading-related-services/scripts
Repository-wide checks:
python tools/validate_skills.py
python tools/run_all_tests.py
Related Skills
transfer-pricing-for-multi-entity-trading-operations
multi-jurisdiction-tax-residency-implications
record-keeping-requirements-for-tax-audit-defense
market-data-entitlement-and-licensing-per-venue
exchange-fee-tier-and-rebate-structure-analysis
1---2name: vat-gst-treatment-of-trading-related-services3description: >-4 Use when classifying a trading entity's vendor invoices for VAT or GST across UK, EU,5 Singapore and Australia: exempt financial supply, standard-rated, cross-border reverse6 charge or out of scope, and the input tax that is actually recoverable.7license: Apache-2.08metadata:9 source: https://skillmd.com/skills/himanshuj16/vat-gst-treatment-of-trading-related-services10 domain: algorithmic-trading11 subdomain: tax-accounting-reporting-global12 tags: vat, gst, reverse-charge-mechanism, rcm, partial-exemption, input-tax-recovery, place-of-supply, trading-expenses, tax-accounting13 brokers_frameworks: "VATA 1994 (ss.7A, 8, 26, Sch 9 Grp 5); VAT Regulations 1995 (SI 1995/2518) reg 101; VAT (Input Tax) (Specified Supplies) Order 1999 (SI 1999/3121); EU VAT Directive 2006/112/EC (Arts 44, 47, 135, 174-175, 196); HMRC VAT Notice 701/49; IRAS GST Reverse Charge Regime; A New Tax System (GST) Act 1999 Div 84 (Australia); Python Standard Library"14 version: "2.0.0"15 author: algo-trading-skills-contributors16---1718# VAT/GST Treatment of Trading-Related Services1920Determines the indirect tax treatment of the services a trading entity buys —21exchange and clearing fees, brokerage, exchange connectivity, co-location,22market data, software licences, management recharges — and works out how much of23the VAT/GST on them the entity can actually recover.2425Two things drive the answer: what the service *is* (an exempt financial supply,26or a taxable one) and where the supplier and the recipient *belong* (domestic,27or an import triggering a reverse charge). On top of that sits the partial28exemption ratio, because a trading entity's largely exempt income means most of29its input VAT is a real cost, not a timing difference.3031> **Engineering guidance, not tax advice.** This skill encodes how to build and verify the32> bookkeeping and the checks around it; it does not determine anyone's tax position. Confirm33> the treatment with a qualified tax professional in the relevant jurisdiction before relying34> on its output for a filing.3536## When to Use3738Use this skill when processing vendor invoices, preparing a periodic VAT/GST39return, or auditing the indirect tax leakage in a trading entity's cost base40across **UK HMRC**, **EU member states**, **Singapore IRAS** and **Australia ATO**.4142The engine:4344- Classifies an invoice as `EXEMPT`, `STANDARD_RATED`, `REVERSE_CHARGE` or45 `OUT_OF_SCOPE` (`assess_invoice_tax`).46- Self-assesses **both** reverse-charge legs — output VAT for UK return Box 1 and47 the ratio-restricted input tax claim for Box 4.48- Computes the **pro-rata recovery ratio** with the statutory rounding-up rule49 applied where it exists (`set_partial_exemption_ratio`).50- Quantifies **unrecoverable input VAT** as an expense hitting trading PnL.51- Aggregates a **period return summary**, keeping every per-invoice52 determination in `summary.assessments` for the audit trail53 (`generate_vat_return_summary`).5455Every assessment carries a `warnings` tuple naming the determinations the engine56could not make from the category alone.5758## When NOT to Use5960- **As the place-of-supply analysis itself.** The engine assumes the modelled61 taxable services follow the B2B general rule (VATA 1994 s.7A; Directive62 Art 44). It flags, but cannot resolve, the immovable-property exception for63 exclusive-use co-location (CJEU C-215/19 *A Oy*).64- **To split a bundled exchange invoice.** Exchange execution may be exempt65 while membership, port, connectivity and technology charges on the same66 invoice are standard-rated (HMRC VAT Notice 701/49 para 6.9). The split is a67 human determination; the engine warns and gives you a category for the68 standard-rated half.69- **Across currencies.** No FX conversion is performed. Amounts must be70 pre-converted to a single currency at the correct statutory rate and date, and71 the return is filed in the tax jurisdiction's own currency.72- **For credit notes, refunds or negative amounts.** Rejected by design rather73 than silently signed through the recovery arithmetic.74- **For special methods (PESM), annual adjustments, the capital goods scheme,75 the UK reg 106 de minimis test, VAT groups, or the Australian reduced input76 tax credit regime.** None are modelled.77- **As the Australian apportionment method.** The ATO prescribes no turnover78 pro-rata; GSTR 2006/3 requires a "fair and reasonable" method, with direct79 estimation preferred.80- **As tax advice or a filed return.** It produces indicative figures for a tax81 function to review, not a submission.8283## Prerequisites8485- Python 3.10+, standard library only.86- An accounts payable ledger providing, per invoice: `invoice_id`,87 `vendor_name`, `vendor_jurisdiction`, `entity_jurisdiction`,88 `service_category` and a VAT-exclusive `net_amount_usd`, all amounts already89 in one currency.90- The entity's taxable and exempt turnover for the period, with UK "specified91 supplies" (exempt Grp 5 services to non-UK customers, SI 1999/3121) counted as92 **taxable**.93- A view on whether the entity is entitled to a full input tax credit — this94 determines whether Singapore's and Australia's reverse charge regimes apply95 at all.9697## Workflow98991. **Set the recovery ratio first.** Call100 `set_partial_exemption_ratio(taxable_supplies_usd, exempt_supplies_usd, rounding)`101 — or pass a known percentage to the constructor. Choose `rounding` by102 jurisdiction: `UP_WHOLE_PERCENT` for UK and EU entities (reg 101(4);103 Art 175(1)), `UP_TWO_DECIMALS` where UK reg 101(5) applies (residual input104 tax over £400,000/month on average), `NONE` for Singapore and Australia. The105 default is `NONE`, so a UK/EU entity that leaves it unset under-recovers.1062. **Ingest invoices** as `TradingExpenseInvoice` records. Split bundled107 exchange invoices before ingestion, booking the standard-rated lines as108 `EXCHANGE_MEMBERSHIP_CONNECTIVITY_FEE`.1093. **Assess each invoice** with `assess_invoice_tax(invoice)`. The order of110 determination is: exempt financial supply first (an exempt import carries no111 reverse charge), then the cross-border test, then domestic treatment.1124. **Resolve the warnings.** Each entry marks something the category could not113 settle — a bundled exchange invoice, an exclusive-use co-location contract, a114 Singapore/Australia entitlement question, US sales tax. Clear them before the115 return is filed; do not treat a warned determination as final.1165. **Generate the return summary** with `generate_vat_return_summary(invoices)`.117 Map `total_output_vat_usd` to UK Box 1 and `total_recoverable_input_vat_usd`118 to Box 4, then **add output VAT on the entity's own sales** — the engine119 covers the purchase ledger only. Post120 `total_unrecoverable_vat_expense_usd` to PnL and retain121 `summary.assessments`.122123## Common Pitfalls124125- **Treating every exchange invoice as exempt.** HMRC VAT Notice 701/49 para 6.9:126 "Basic admission or membership charges are taxable at the standard rate…127 The liability of other charges depends on exactly what is being done by the128 exchange for the charge." Booking the whole invoice as exempt loses the input129 tax recovery on the standard-rated element.130- **Reverse-charging an exclusive-use co-location cage.** CJEU C-215/19 *A Oy*131 turned on the customer having **no** exclusive right of use of a defined132 space. A dedicated cage or suite can flip the supply into the133 immovable-property rule, taxable where the data centre sits — meaning a local134 VAT registration obligation, not a reverse charge, and a mis-filed return in135 two jurisdictions if you get it wrong.136- **Assuming the reverse charge is universal.** Singapore's imported-services137 regime and Australia's GST Act Div 84 both apply only where the recipient is138 *not* entitled to a full input tax credit. A fully-recovering SG or AU entity139 is outside them; a UK or EU entity is inside regardless of recovery position.140- **Declaring only the net reverse-charge cost.** The self-assessed output VAT141 belongs in Box 1 and the restricted claim in Box 4. Netting them off142 understates declared output tax even though the cash effect is identical.143- **Skipping the statutory rounding-up.** A raw 20.4% ratio is 21% under UK144 reg 101(4) and EU Art 175(1). Using the raw figure systematically145 under-recovers input VAT.146- **Leaving specified supplies out of the numerator.** Exempt Grp 5 supplies to147 non-UK customers carry recovery under SI 1999/3121; parking them in the exempt148 bucket understates the ratio.149- **Assuming 100% recovery on co-location and market data.** A trading entity150 with largely exempt income recovers only its pro-rata share; the rest is a151 permanent PnL cost, not a receivable.152- **Filing in the wrong currency.** VAT/GST is declared in the tax153 jurisdiction's currency. This engine does no FX conversion — a ledger in USD154 assessed at 20% does not produce a filable UK figure.155- **Changing the ratio mid-batch.** `generate_vat_return_summary` applies156 whatever ratio the engine currently holds, so re-running it after a ratio157 change silently produces different numbers for the same invoices.158159## Verification160161Run the unit test suite. It covers exempt financial services, the exchange162membership split, domestic standard-rated supplies, cross-border reverse charge163including the self-assessed output VAT leg and recipient-rate selection, the164Singapore/Australia full-credit carve-out, statutory rounding (whole percent,165two decimals, the 100% cap and the exact-percentage guard), fail-closed rate166lookup for unmapped or non-enum jurisdictions, ratio validation, and return167summary aggregation with its audit trail:168169```bash170python -m unittest discover -s skills/vat-gst-treatment-of-trading-related-services/scripts171```172173Repository-wide checks:174175```bash176python tools/validate_skills.py177python tools/run_all_tests.py178```179180## Related Skills181182- `transfer-pricing-for-multi-entity-trading-operations`183- `multi-jurisdiction-tax-residency-implications`184- `record-keeping-requirements-for-tax-audit-defense`185- `market-data-entitlement-and-licensing-per-venue`186- `exchange-fee-tier-and-rebate-structure-analysis`