This resource provides a unified representation of one-time order data across multiple sources , such as the Apple App Store and Google Play Store. It maps the underlying data one-to-one into Chargebee's omnichannel format. Functioning as a middleware , this solution ensures the data is delivered in a consistent, standardized format as presented.
Note: This resource specifically represents in-app product purchases made via the Apple App Store and Google Play Store.
{
"id": "__test_oto_HmbXw88UrgaSKYa",
"app_id": "__test_gp_app_Hmdm904Upz2fet9",
"customer_id": "1mLtfx5Urfuna02JE",
"id_at_source": "bhggcokdffngjojmihfobjke",
"origin": "US",
"source": "google_play_store",
"created_at": 1753191402,
"resource_version": 1753191402443,
"object": "omnichannel_one_time_order",
"omnichannel_one_time_order_items": [
{
"id": "__test_otoi_HmbXw88UrgaSKab",
"item_id_at_source": "coin",
"quantity": 1,
"resource_version": 1753191402445,
"object": "omnichannel_one_time_order_item"
}
],
"purchase_transaction": {
"id": "__test_ot_HmbXw88UrgaSKGZ",
"id_at_source": "GPA.3346-4067-5254-30096",
"app_id": "__test_gp_app_Hmdm904Upz2fet9",
"price_currency": "USD",
"price_units": 5,
"price_nanos": 0,
"type": "purchase",
"transacted_at": 1753191346,
"created_at": 1753191402,
"resource_version": 1753191402000,
"object": "omnichannel_transaction"
}
}App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the app_id:
The id
of the customer
object that is associated with this one time order.
The identifier of the one_time_purchase 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
.
Country code indicating where the one-time order originated, such as US
for the United States.
The source
where the one-time order was originally made and managed.
Indicates timestamp when the omnichannel_one_time_order
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. This attribute will be present only if the resource has been updated after 2016-09-28.
list of omnichannel_one_time_order_items in the omnichannel one time order
Details of the purchase transaction associated with the one-time order.
Indicates timestamp when this specific omnichannel_one_time_order_item
was cancelled
in the source
.
The fractional price amount, in nanos (billionths of the currency unit).
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
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
App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the app_id:
The identifier of the one time order 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
.
A list of omnichannel_subscription
objects linked to this transaction. Each entry represents a subscription associated with the transaction.
A list of omnichannel_one_time_order
objects linked to this transaction. Each entry represents a one-time order associated with the transaction.
Retrieves an omnichannel_one_time_order object using its omnichannel_one_time_order_id. You can obtain the omnichannel_one_time_order_id for any successfully recorded purchase in Chargebee by using the List Omnichannel One-Time Orders API.
Retrieves a list of omnichannel_one_time_orders
objects.