Retrieve available tax calculators and perform tax calculations using configured tax providers (automatic or manual tax services).
From wix-ecom-coworknpx claudepluginhub itayher/wix-ecom-cowork --plugin wix-ecom-coworkThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Retrieve available tax calculators and perform tax calculations using configured tax providers (automatic or manual tax services).
df7c18eb-009b-4868-9891-15e19dddbe67${API_KEY}${SITE_ID}https://www.wixapis.com/tax-calculators/v1Endpoint: GET https://www.wixapis.com/tax-calculators/v1/tax-calculators
Get all configured tax calculation providers.
curl -X GET "https://www.wixapis.com/tax-calculators/v1/tax-calculators" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}"
Response:
{
"calculators": [
{
"id": "calculator-123",
"name": "Wix Automatic Tax",
"type": "AUTOMATIC",
"active": true,
"provider": "wix"
},
{
"id": "calculator-456",
"name": "TaxJar Integration",
"type": "EXTERNAL",
"active": false,
"provider": "taxjar"
}
]
}
Endpoint: POST https://www.wixapis.com/tax-calculators/v1/calculate-tax
Perform tax calculation for a cart/order.
curl -X POST "https://www.wixapis.com/tax-calculators/v1/calculate-tax" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" \
-H "Content-Type: application/json" \
-d '{
"calculation": {
"lineItems": [
{
"productId": "product-123",
"quantity": 2,
"price": 29.99,
"taxGroupId": "tax-group-456"
}
],
"shippingAddress": {
"country": "US",
"state": "CA",
"city": "Los Angeles",
"zipCode": "90001"
},
"billingAddress": {
"country": "US",
"state": "CA",
"city": "Los Angeles",
"zipCode": "90001"
}
}
}'
Response:
{
"taxCalculation": {
"totalTax": 5.24,
"currency": "USD",
"breakdown": [
{
"lineItemId": "item-1",
"taxAmount": 5.24,
"taxRate": 0.0875,
"jurisdiction": "California",
"taxName": "CA State Sales Tax"
}
]
}
}
Calculate tax for one product:
curl -X POST "https://www.wixapis.com/tax-calculators/v1/calculate-tax" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" \
-H "Content-Type: application/json" \
-d '{
"calculation": {
"lineItems": [{
"productId": "product-123",
"quantity": 1,
"price": 50.00
}],
"shippingAddress": {
"country": "US",
"state": "NY",
"zipCode": "10001"
}
}
}' | jq '{
subtotal: 50.00,
taxAmount: .taxCalculation.totalTax,
taxRate: (.taxCalculation.breakdown[0].taxRate * 100 | tostring + "%"),
total: (50.00 + .taxCalculation.totalTax)
}'
curl -X POST "https://www.wixapis.com/tax-calculators/v1/calculate-tax" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" \
-H "Content-Type: application/json" \
-d '{
"calculation": {
"lineItems": [
{"productId": "p1", "quantity": 2, "price": 29.99, "taxGroupId": "standard"},
{"productId": "p2", "quantity": 1, "price": 15.00, "taxGroupId": "standard"},
{"productId": "p3", "quantity": 3, "price": 8.50, "taxGroupId": "exempt"}
],
"shippingAddress": {
"country": "US",
"state": "CA"
}
}
}' | jq '{
subtotal: (29.99 * 2 + 15.00 + 8.50 * 3),
totalTax: .taxCalculation.totalTax,
itemBreakdown: [.taxCalculation.breakdown[] | {
item: .lineItemId,
tax: .taxAmount,
rate: (.taxRate * 100 | tostring + "%")
}]
}'
# Calculate tax for international order
curl -X POST "https://www.wixapis.com/tax-calculators/v1/calculate-tax" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" \
-H "Content-Type: application/json" \
-d '{
"calculation": {
"lineItems": [{
"productId": "product-123",
"quantity": 1,
"price": 100.00
}],
"shippingAddress": {
"country": "DE",
"city": "Berlin",
"zipCode": "10115"
}
}
}' | jq '{
country: "Germany",
subtotal: 100.00,
VATAmount: .taxCalculation.totalTax,
VATRate: (.taxCalculation.breakdown[0].taxRate * 100 | tostring + "%"),
total: (100.00 + .taxCalculation.totalTax)
}'
Provider: Wix Automatic Tax or external (TaxJar, Avalara)
Benefits:
Configuration:
# Check if automatic tax is enabled
curl -X GET "https://www.wixapis.com/tax-calculators/v1/tax-calculators" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" | jq '[.calculators[] | select(.type == "AUTOMATIC")]'
When to Use:
Setup:
Test tax calculation before checkout:
echo "🧪 Testing tax calculation..."
result=$(curl -s -X POST "https://www.wixapis.com/tax-calculators/v1/calculate-tax" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" \
-H "Content-Type: application/json" \
-d '{
"calculation": {
"lineItems": [{"productId": "test-product", "quantity": 1, "price": 100.00}],
"shippingAddress": {"country": "US", "state": "CA", "zipCode": "94102"}
}
}')
tax_amount=$(echo "$result" | jq -r '.taxCalculation.totalTax')
expected_tax=$(echo "100.00 * 0.0875" | bc)
echo "Calculated: $${tax_amount}"
echo "Expected: $${expected_tax}"
if (( $(echo "$tax_amount == $expected_tax" | bc -l) )); then
echo "✅ Tax calculation is correct"
else
echo "⚠️ Tax calculation mismatch"
fi
curl -s -X GET "https://www.wixapis.com/tax-calculators/v1/tax-calculators" \
-H "Authorization: ${API_KEY}" \
-H "wix-site-id: ${SITE_ID}" | jq '[.calculators[] | select(.active == true)] | {
provider: .[0].provider,
type: .[0].type,
name: .[0].name,
status: "✅ Active"
}'