This resource unifies representation of the subscription data across multiple sources , such as the Apple App Store and Google Play Store. It provides one-to-one mapping of underlying data into Chargebee's omnichannel format. Acting as a middleware , the solution delivers data in a unified format as it is presented.
Note: This resource represents in-app subscriptions made on Apple App Store and Google Play Store.
Sample Omnichannel subscriptionJSON
Omnichannel subscriptions attributes
The ID generated by Chargebee for the recorded subscription purchase.
The identifier of the subscription in the source.
For Apple App Store, it is the Transaction ID
of the initial_purchase_transaction
.
App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the app_id:
- For Apple, follow these steps.
- For Google, follow these steps.
The source
where the purchase is originally made and managed.
When source of the application is Apple App Store
When source of the application is Google Play Store
The id
of the customer
object that is associated with this purchase.
Indicates timestamp when the omnichannel_subscription
created in Chargebee.
Version number of this resource. The resource_version
is updated with a new timestamp in milliseconds for every change made to the resource.
Items associated with the omnichannel_subscription.
Omnichannel subscription item attributes
The parent name of the product ID in the source
.
Status of the omnichannel_subscription_item.
Learn more
about status and their mapping with the store's status.
When the subscription associated with the omnichannel_subscription_item
is active
When the subscription associated with the omnichannel_subscription_item
is expired
When the subscription associated with the omnichannel_subscription_item
is cancelled
When the subscription associated with the omnichannel_subscription_item
is in_dunning
.
When the subscription associated with the omnichannel_subscription_item
is in_grace_period
.
When the subscription associated with the omnichannel_subscription_item
is paused
.
The renewal status for the omnichannel_subscription_item
.
The auto-renewal of omnichannel_subscription_item
is disabled.
The auto-renewal of omnichannel_subscription_item
is enabled.
Start of the current billing period of the subscription item. It is applicable only if the status
is active
.
End of the current billing period of the subscription item. It is applicable only if the status
is active.
Note: This timestamp can be considered closest to the next_billing_at timestamp as Apple does not provide information on the next renewal. Apple can renew the subscription 24 hours before it expires, and after entering the billing retry state, it can attempt to renew the subscription for up to 60 days. Learn more .
Indicates timestamp when the subscription associated with the omnichannel_subscription_item
was expired
in the source
Specifies the reason for the subscription expiration.
Indicates a billing error, such as the customer's payment information being invalid.
Indicates that the product was unavailable for purchase at the time of renewal.
Indicates that the subscription associated with the item expired for an unspecified reason.
Indicates timestamp when the subscription associated with the omnichannel_subscription_item
was cancelled
in the source
The reason of canceling the subscription.
Indicates that the subscription was voluntarily cancelled by the customer.
Indicates that the customer did not consent to the price increase for the subscription item.
Indicates that the subscription was cancelled and refunded due to the app issue.
Indicates that the subscription was cancelled and refunded for another reason.
Indicates that the merchant revoked access to the subscription.
Indicates timestamp when the grace period of subscription associated with the omnichannel_subscription_item
expires in the source
Indicates timestamp when the subscription automatically resumes after being set to paused
.
Indicates whether the omnichannel_subscription_item
has any scheduled changes.
Version number of this resource. The resource_version
is updated with a new timestamp in milliseconds for every change made to the resource.
Represents the omnichannel_subscription_item_offers
associated with the omnichannel_subscription_item
.
This field contains information about the upcoming renewal. It is present only if the source
provides renewal information (currently available only for Google Play Store purchases) and the omnichannel_subscription_item
's auto_renew_status
is set to on
to renew for the next term. Otherwise, this field is absent.
Initial purchase transaction attributes
The identifier of the subscription in the source.
For Apple App Store, it is the Transaction ID
of the initial_purchase_transaction.
For Google Play Store, it is the Order ID
of the initial_purchase_transaction
.
App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the app_id:
- For Apple, follow these steps.
- For Google, follow these steps.
The whole units of the amount.
For example:
if currencyCode is USD (i.e. two decimal currency), then the unit value for USD 1.23 will be 1
if currencyCode is JPY (i.e. zero decimal currency), then the unit value for JPY 123 will be 123
if currencyCode is BHD (i.e. three decimal currency), then the unit value for BHD 1.234 will be 1
The fractional price amount, in nanos (billionths of the currency unit), for the next renewal.
The value must be between 0 and +999,999,999 inclusive.
For example:
If currencyCode is USD (i.e. two decimal currency), then nanos value for USD 1.23 will be 230,000,000
If currencyCode is JPY (i.e. zero decimal currency), then nanos value for JPY 123 will be 0
If currencyCode is BHD (i.e. three decimal currency), then nanos value for BHD 1.234 will be 234,000,000
Omnichannel subscription transaction type that describes the transaction
Indicates that the transaction occurred for a purchase.
Indicates that the transaction was initiated as part of a renewal for a previously completed purchase.
Timestamp denoting the time when the transaction occurred in source
Version number of this resource. The resource_version
is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
A list of omnichannel_subscription
objects linked to this transaction. Each entry represents a subscription associated with the initial purchase transaction.