Introducing the Chargebee CLI

Line items ID missing for tiered addons in the product catalog export

Problem Statement

This article helps you understand why line item IDs for tiered addons may appear missing in the product catalog export.

Solution

Scope

I can't see the Line item ID for the attached addon in the Product Catalog Export

Why are some of the addons missing their ID in the export file for the Product Catalog?

Summary

The Product Catalog Export for the Invoice Criteria contains all invoice-related attributes segregated into different export files for merchant analysis. The tiered addon line item ID is present in the file "LineItems.csv" instead of "LineItemTiers.csv".

Solution

When you export this file via Settings > Import & Export Data > Export data > Invoices > Select criteria to export, the resultant export is a ZIP file that contains various CSV files that denote the various entities and related attributes for the associated data present in the Chargebee environment.

Within this, there are two files named LineItems.csv and LineItemTiers.csv.

Going by the naming convention, it's implied that the file named "LineItemTiers.csv" will contain the tiered line item details.

This ID is present in the file called "LineItems.csv", in the column named "Line Item Id". Refer to this file for line item IDs, and to the file named "LineItemTiers.csv" for tier definitions for the relevant addons.

This information is crucial because the invoice criteria export is often used to analyze finances for a business and is a time-critical aspect of the product catalog export.