Skip to main content

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 all UK tax adapters (product, delivery and payment) via the country preset:

import { registerUkTaxPlugins } from '@unchainedshop/plugins/presets/countries/uk';

registerUkTaxPlugins();

How It Works​

  1. Checks if the delivery location is in the UK VAT area (delivery address → billing address → order or request country; a price simulated for an order uses the delivery address of the order)
  2. Determines the tax category from the delivery provider's uk-tax-category configuration entry, falling back to STANDARD (20%)
  3. 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​

PropertyValue
Keyshop.unchained.pricing.delivery-uk-tax
Version1.0.0
Order Index80
Sourcepricing/delivery-uk-tax/adapter.ts