Important:
These APIs operate asynchronously. When you receive a successful response code from an API call, it indicates only the successful submission of your request, not the completion of the operation.
Using In-app Subscriptions, you can track subscriptions you sell and service via in-app purchase channels such as Apple's App Store and Google's Play Store. Call this API to notify Chargebee of new subscription purchases. Chargebee responds by creating corresponding subscriptions. You can make the API call directly from the client-side application or from your server. In the case of the Apple App Store and Google Play Store integration, you can also configure Chargebee to receive server notifications from Apple and Google to keep subscriptions up-to-date.
Note:
After creating a subscription in Chargebee using the process purchase command API, Chargebee manages it in real-time using notification events from Apple or Google. To enable these notifications, generate a notification URL using these links - Apple and Google and configure it in their respective stores.
In-app subscriptions are read-only
The subscriptions created via the Process Purchase Command API are managed by Apple or Google in response to actions taken by your subscribers via their respective accounts. Chargebee only keeps track of these subscriptions: creating and modifying them in response to events happening against the original subscriptions. Consequently, these subscriptions cannot be modified by you via the Chargebee admin console or the Subscriptions API.
Sample In app subscriptionJSON
In app subscriptions attributes
The id
of the subscription
for which the receipt was sent.
The id
of the customer
object to which the subscription belongs.
The status of the subscription for the store
When the subscription is in trial.
When the subscription is active.
When the subscription is cancelled.
When the subscription is paused.