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 both UK tax adapters (product + delivery) via the country preset:

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

registerUkTaxPlugins();

How It Works​

  1. Checks if the order has a delivery address in the UK VAT area
  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