{"name":"add-shipping-and-tax-rates","description":"Adds fixed delivery choices and Stripe Tax on an existing payment checkout, so the buyer picks postage and tax follows their address. Use this when the user wants shipping rates, delivery options, sales tax, VAT, GST, or tax on postage.","category":"backend","tags":["shipping","stripe","payments"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/add-shipping-and-tax-rates","api_url":"https://theskillvault.ai/api/skills/add-shipping-and-tax-rates","raw_url":"https://theskillvault.ai/api/skills/add-shipping-and-tax-rates/raw","body":"# Add shipping and tax rates\n\nThis skill adds delivery options and tax to a checkout you already have. It does not create the first payment session or the webhook. Use add-stripe-checkout for those. Use apply-stripe-best-practices when you want a review, not a build.\n\n## When to use\n- Buyers must pick standard or express delivery, with a price and a window.\n- You want Stripe Tax to add sales tax, VAT or GST from the address.\n- Postage itself should be taxed, not only the goods.\n\n## When not to use\n- You only need a single charge with no delivery and no tax.\n- You are choosing which Stripe product to use. That is the review skill.\n\n## Steps\n1. Write down each option: display name, amount in the smallest currency unit, currency, countries, and a minimum and maximum delivery window.\n2. Create a Shipping Rate in Stripe for each option, or pass `shipping_rate_data` on the session. Set `tax_behavior` to `exclusive` or `inclusive` on every rate. Match the same choice on your Prices.\n3. On the Checkout Session, set `mode` to `payment`. Pass `shipping_options` with those rate ids. Set `shipping_address_collection.allowed_countries` to the countries you actually ship to.\n4. In the Stripe Dashboard, turn on Stripe Tax, set your origin address, and add a registration for each place you must collect. With no registration, tax stays at zero.\n5. Set `automatic_tax: { enabled: true }` on the session. For digital goods with no delivery, collect the billing address instead of a shipping address so Tax still has a location.\n6. In the paid webhook, read the shipping amount, the rate id and the tax from the completed session. Store those on the order. Do not calculate a second tax figure in your own code.\n7. If a country has no rate, do not offer a session that ships there. Filter the options before you create the session.\n\n```ts\nconst session = await stripe.checkout.sessions.create({\n  mode: \"payment\",\n  line_items: [{ price: priceId, quantity: 1 }],\n  shipping_address_collection: { allowed_countries: [\"AU\", \"NZ\"] },\n  shipping_options: [{ shipping_rate: \"shr_...\" }],\n  automatic_tax: { enabled: true },\n});\n```\n\n## Gotchas\n- `shipping_options` are for payment mode. A subscription session will reject them.\n- Automatic tax fails the session when a shipping option has no `tax_behavior`.\n- Mixing inclusive and exclusive on one order makes the total hard to explain. Pick one.\n- A live registration is a business decision. Do not turn collection on for a country where you are not registered.\n- Carrier-calculated rates need Stripe's dynamic shipping flow. This skill is the fixed-rate path. Check the current Stripe docs before you build live carrier quotes.\n\n## Safety\n- Create the session on the server. The secret key stays in an environment variable, never in the browser or the repo.\n- The address collected for tax is personal data. Store only what the order needs, and do not log the full address.\n\n## Portability\nWorks with any backend Stripe supports. If you use another tax engine instead of Stripe Tax, still collect one address and still store the shipping choice on the order. Do not run two tax calculators on the same session.\n\n## Example prompt\n\"Add standard and express postage to my Stripe checkout, and charge GST from the delivery address with Stripe Tax.\"\n\n## Done when\n- The buyer sees only the delivery options for their country, with the right price.\n- The paid session records a shipping amount and a tax amount that match the Dashboard.\n- A test address in an unregistered country does not silently invent a tax figure.\n\n---\nHouse original by TheSkillVault (CC-BY-4.0).","files":[],"license":"CC-BY-4.0","license_name":"CC BY 4.0","license_url":"https://creativecommons.org/licenses/by/4.0/","attribution":"From TheSkillVault, https://theskillvault.ai, CC BY 4.0","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-shipping-and-tax-rates/raw' -o ~/'.claude/skills/add-shipping-and-tax-rates/SKILL.md'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-shipping-and-tax-rates/raw' -o '.cursor/skills/add-shipping-and-tax-rates/SKILL.md'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-shipping-and-tax-rates/raw' -o '.agents/skills/add-shipping-and-tax-rates/SKILL.md'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}