How to find the ID of a tax profile in your Chargebee site?
Problem Statement
You need the tax profile ID for the Update plan bulk operation or API, but you see the error "The Primary referenced in parameter plan[tax_profile_id] is not present" when using the profile name.
Solution
The tax profile ID is the unique ID for each tax profile. Use this ID (not the profile name like "Primary" or "Secondary") when updating plans via Bulk operations or APIs. Using the name causes the error.
Steps to Set It Up
- Go to Settings > Configure Chargebee > Taxes > Manage Tax profiles.
- On that page, each tax profile is listed with its ID in brackets.
- Use that ID (not the name) as the
tax_profile_idparameter in your API call or bulk operation.
Was this article helpful?