Docs
You are viewing:
Product Catalog 2.0
After you connect your Apple App Store or Google Play Store app to Chargebee, you may want to import historical purchases. This document explains how to import that data.
Use Chargebee's bulk import feature to import historical purchases, especially when migrating large volumes of subscription data from the Apple App Store or Google Play Store. Follow these steps to perform a bulk import:
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.
You can connect your app and generate the App ID by following these steps.customer[id]
is the Chargebee Customer ID to which the purchase will be linked.
Note: The customer ID must already exist in Chargebee for the bulk import to work.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.
After the operation is complete, Chargebee will notify you by email. You can also track progress as explained in the Bulk Operations documentation.
Note:
If a recorded purchase fails:
record_purchase_failed
event.Was this article helpful?