ChargebeeAPI

In app subscriptions

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

subscription_id
required, string, max chars=100

The id of the subscription for which the receipt was sent.

customer_id
optional, string, max chars=100

The id of the customer object to which the subscription belongs.

plan_id
optional, string, max chars=100

The id of the plan-item price of the subscription.

store_status
optional, enumerated string

The status of the subscription for the store

Possible Enum Values
in_trial

When the subscription is in trial.

active

When the subscription is active.

cancelled

When the subscription is cancelled.

paused

When the subscription is paused.

invoice_id
optional, string, max chars=100

The id of the invoice generated in Chargebee