A unified representation of Transaction across multiple source.
Apple App Store
The price value reflects the price you configured in App Store Connect, which the system records at the time of transaction (transacted_at) after the discount if any offers are applied.
Important For financial and accounting purposes, use the App Store Connect reporting tools. For more information, see Download financial reports and Overview of reporting tools. Learn more about price in Apple App Store.
Google Play Store
The Google Play Store does not provide the transaction amount or the purchase time. As a result, the system does not record the price value or time of the transaction(transacted_at).
Sample Omnichannel transactionJSON
Omnichannel transactions attributes
The id of the transaction in the 'source'. For Apple App Store, it is the 'Transaction ID' of the initial subscription 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 three-letter ISO 4217 currency code associated with the transaction
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 fraction part of the amount.
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
Omni-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.