calculate_vat
Calculate Portuguese VAT for a given amount, category, and region. Supports Mainland, Azores, and Madeira rates. Detects intra-community B2B reverse charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Net amount (ex-VAT) to calculate VAT on | |
| is_b2b | No | Whether the transaction is business-to-business | |
| region | No | Portuguese tax region | mainland |
| category | No | Portuguese tax category code (e.g. office_supplies, food_restaurant) | |
| counterpart_country | No | ISO 3166-1 alpha-2 country code of the counterpart |