Skip to main content

Delivery Swiss Tax

Applies Swiss VAT rates to delivery fees. Only activates for orders with delivery addresses in Switzerland (CH) or Liechtenstein (LI).

Installation

import '@unchainedshop/plugins/pricing/delivery-swiss-tax';

How It Works

  1. Checks if the order has a delivery and address in CH/LI
  2. Resolves the tax category from delivery provider configuration
  3. Falls back to DEFAULT rate (8.1%) if not specified
  4. Calculates and adds tax to the delivery fee

Tax Categories

CategoryRate (2024+)Rate (pre-2024)
DEFAULT8.1%7.7%
REDUCED2.6%2.5%
SPECIAL3.8%3.7%

Configuration

Set the tax category on the delivery provider:

mutation CreateDeliveryProvider {
createDeliveryProvider(
deliveryProvider: {
type: SHIPPING
adapterKey: "shop.unchained.post"
configuration: [
{ key: "swiss-tax-category", value: "default" }
]
}
) {
_id
}
}

Activation Conditions

The adapter only activates when:

  • The order exists
  • Order delivery is set
  • Delivery address is in Switzerland or Liechtenstein

Adapter Details

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