Docs

Log into read the version of docs relevant to your site.

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

  1. Go to Settings > Configure Chargebee > Taxes > Manage Tax profiles.
  2. On that page, each tax profile is listed with its ID in brackets.
  3. Use that ID (not the name) as the tax_profile_id parameter in your API call or bulk operation.

Was this article helpful?