Docs
Once your Apple App Store or Google Play Store app is connected to Chargebee, you might want to import historical purchases into Chargebee. This document guides you through the process of importing that data.
You can import historical purchases into Chargebee using the bulk import capability. This method is ideal when migrating large volumes of subscription data from the Apple App Store or Google Play Store. Follow the steps to perform a bulk import of historical purchases:
Use the Bulk Operations to bulk import your historic subscriptions.
While selecting the operation in bulk import, choose the Recorded Purchases operation from the dropdown, and then select Record a purchase. This operation internally uses the Record a Purchase API to import subscription data.
Prepare your data file in the following format:
recorded_purchase[app_id]
field is the Connected App ID for the app whose purchases you're importing. customer[id]
is the Chargebee Customer ID to which the purchase will be linked. apple_app_store[transaction_id]
column.apple_app_store[receipt]
and apple_app_store[product_id]
columns instead.google_play_store[purchase_token]
column.Proceed with the rest of the steps until the bulk import is processed.
Once the operation is complete, you'll be notified via email. You can also track progress as explained here.
For recorded purchases that fail:
record_purchase_failed
event.