Delivery UK VAT
Applies UK VAT rates to delivery fees. Only activates for orders with delivery addresses in the UK VAT area (GB, IM).
Registration
import { pluginRegistry } from '@unchainedshop/core';
import { DeliveryUkTaxPlugin } from '@unchainedshop/plugins/pricing/delivery-uk-tax';
pluginRegistry.register(DeliveryUkTaxPlugin);
Or register both UK tax adapters (product + delivery) via the country preset:
import { registerUkTaxPlugins } from '@unchainedshop/plugins/presets/countries/uk';
registerUkTaxPlugins();
How It Works
- Checks if the order has a delivery address in the UK VAT area
- Determines the tax category from the delivery provider's
uk-tax-categoryconfiguration entry, falling back to STANDARD (20%) - Resolves the rate valid at order time from the bundled era table and applies it to the taxable delivery fee rows
Rate data and category semantics are shared with the Product UK VAT adapter (bundled uk-tax-rates.json, era-based, gov.uk-verified).
Configuration
mutation ConfigureDeliveryProvider {
updateDeliveryProvider(
deliveryProviderId: "provider-id"
deliveryProvider: {
configuration: [
{ key: "uk-tax-category", value: "zero" }
]
}
) {
_id
}
}
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.pricing.delivery-uk-tax |
| Version | 1.0.0 |
| Order Index | 80 |
| Source | pricing/delivery-uk-tax/adapter.ts |
Related
- Product UK VAT - UK VAT for products
- Delivery EU VAT - EU VAT for delivery fees