New in Chargebee: Explore Reveal and understand your payment performance end-to-end.Try Now
Docschargebee docs
HomeBillingCPQPaymentsRevRecGrowthReveal
Support

Product Updates


  • Release Notes

Getting Started


  • Overview
  • Chargebee Billing Data Centers
  • Object Relationship Model
  • Understanding Sites
  • Chargebee Tech Glossary
  • Articles and FAQ

Implementing Chargebee


  • Implementation Guide
  • Go-live Checklist
  • Articles and FAQ

Agentic AI


  • Chargebee Copilot
  • MCP Servers

Developer Resources


  • Developer Resources Overview
  • API Explorer
  • Articles and FAQ

Chargebee Apps


  • Chargebee Apps CLI Developer Guide

Product Catalog


  • Product Catalog Overview
  • Coupons
  • Articles and FAQ

Subscriptions


  • Working with Subscriptions
  • Billing
  • Orders
  • Articles and FAQ

Customers


  • Managing Customers
  • Account Hierarchy
  • Email Notifications
  • Branding
  • Configure Multiple Languages
  • Articles and FAQ

Entitlements


  • Entitlements Overview
  • Features Overview
  • Feature Management
  • Managing Product Entitlements
  • Subscription Entitlements
  • Customer Entitlements
  • Grandfathering Entitlements
  • Articles and FAQ

Usage Based Billing


  • Understanding Usages
  • Setting up Usage Based Billing
  • Usage Alerts
  • Prepaid credits

Invoices and Credit Notes


  • Invoices
  • Credit Notes
  • Quotes [Legacy]
  • Transactions
  • Articles and FAQ

Taxes


  • Overview
  • Configuring Taxes
  • Country-specific Taxes
  • Articles and FAQ

Hosted Capabilities


  • Overview
  • Hosted Checkout
  • Hosted Self-Serve Portal
  • Hosted Pages Features
  • Additional Hosted Pages
  • Payment Components
  • Pricing Table
  • Managing Payments with Chargebee.js
  • Mobile-Optimized Hosted Pages
  • Articles and FAQ

Site Configuration


  • Users & Roles
  • Custom Fields & Metadata
  • Approvals
  • Mandatory Fields
  • File Attachments & Comments
  • Advanced Filter Options
  • Multicurrency Pricing
  • Multi-decimal Support
  • Configuring Reason Codes
  • Events and Webhooks
  • API Keys
  • Time Zone
  • Time Machine
  • Transfer Configurations
  • Articles and FAQ

Multi Business Entity


  • Multi Business Entity Overview
  • Customer Transfer Overview
  • Articles and FAQ

Mobile Subscriptions


  • Overview
  • Omnichannel Subscriptions
  • Omnichannel One-Time Orders
  • Mobile Subscriptions (Legacy)

Reports and Analytics


  • RevenueStory
  • Home Dashboard
  • Frequently Asked Questions
  • FAQs for Classic Reports Sunset
  • Articles and FAQ

Integrations


  • Sales
  • Customer Support and Success
  • Finance
  • Tax
  • eInvoicing
  • Marketing
  • Stitch
  • Collaboration
  • Contract Management
  • Ecommerce Management
  • Articles and FAQ

Data Privacy & Security


  • Two Factor Authentication
  • SAML Single Sign-On
  • System for Cross-Domain Identity Management (SCIM)
  • EU-GDPR
  • Consent Management
  • Personal Data Management
  • Compliance Certificates
  • HIPAA Guidelines
  • PCI Recommendations and Integration Types
  • Articles and FAQ

Data Operations


  • Bulk Operations
  • Migration
  • Articles and FAQ
  1. Billing
  2. Taxes
  3. Articles and FAQ
  4. Configuring Taxes
  1. Billing
  2. Taxes
  3. Articles and FAQ
  4. Configuring Taxes

How to apply different tax rates to the different line items of my subscriptions on my invoice via API?

Problem Statement

You want to know how to apply different tax rates to the different line items of my subscriptions on my invoice via api.

Solution

Scope

Can my line items in a subscription have different tax rates?

Can I apply tax rates as per the product type and generate an invoice?

Summary

Suppose you have different charges added to your subscription and you want each item line to have different tax rates, you can achieve that via API and have the invoice created with the tax rates applied.

Note: tax profiles must be created and you can apply tax only from the settings which are set on your tax profiles. Read more about tax profilesĀ here

Solution

Step 1: Create the desired tax profile with the label tax and tax rate

For example, this country has 3 tax profiles.

image

And each tax profile has labeled tax and rates defined

image
image

Step 3: Use the API for creating invoices for items and one-time charges and pick the invoice attributes and [tax attributes for the invoice

](https://apidocs.chargebee.com/docs/api/invoices/invoice-object#taxes)

image
image
image

Step 4: Generate the invoice now for your charge and line items via API and give the amount for the tax rate as you have defined and the exact name matching to the label tax under your tax profiles.

For example: Here the secondary tax profile is used.

image

Step 5: Check for the invoice being generated and the tax applied to the line items

image

Related Articles

Is 0% a valid tax rate of VAT ?
Uploading customized tax settings (CSV)
Update your EU VAT number in Chargebee to avoid being charged EU VAT in your invoice
What is consistent pricing in Chargebee?
How to configure Inclusive or Exclusive taxes in Chargebee?
I want to shift from an exclusive tax to inclusive tax, is that possible?
The tax value is different or incorrect
Tax line item not showing on the invoice
Managing tax rate changes
I'm selling products which are subject to different tax rates in the same taxable country

Show more

Was this article helpful?