Introducing OpenTelemetry for Chargebee SDKs — trace every API call in any telemetry tool.
Chargebeechargebee API

Omnichannel one time orders

Represents a one-time in-app product purchase from Apple App Store or Google Play Store, normalized into Chargebee's omnichannel model.

Omnichannel one-time orders are typically created when you record a purchase and may be updated via store notifications (for example, refunds). Unlike subscriptions, one-time order items do not carry a recurring status field; cancellation is expressed via item cancelled_at / cancellation_reason.

Apple App Store: Parent id_at_source is the Transaction ID. Nested purchase_transaction.id_at_source is the same Transaction ID for the purchase row.

Google Play Store: Parent id_at_source is the purchase token. Nested purchase_transaction.id_at_source is the Order ID (GPA.…).

See omnichannel events for recording and cancel mappings, and omnichannel_transaction for price / transacted_at guidance.

Sample Omnichannel one time orderJSON

Omnichannel one time orders attributes

id
required, string, max chars=40

The ID generated by Chargebee for the recorded one-time order.

app_id
required, string, max chars=100

App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the app_id:

customer_id
optional, string, max chars=100

The id of the customer object that is associated with this one-time order.

id_at_source
required, string, max chars=500

The store-native identifier for this one-time order.

Apple App Store: The App Store Transaction ID for the purchase (same value as purchase_transaction.id_at_source for the initial purchase row).

Google Play Store: The Google Play purchase token for the one-time product purchase — not the Order ID. The Order ID (GPA.…) is on purchase_transaction.id_at_source.

origin
optional, string, max chars=3

Country code indicating where the one-time order originated, such as US for the United States.

source
required, enumerated string

The storefront where the one-time order was originally made and managed (apple_app_store or google_play_store).

Enum Values
apple_app_store

The source of the app is apple_app_store.

google_play_store

The source of the app is google_play_store.

created_at
required, timestamp(UTC) in seconds

Timestamp when the omnichannel_one_time_order was created in Chargebee.

resource_version
optional, long

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.

omnichannel_one_time_order_items

List of omnichannel_one_time_order_item objects in the one-time order.

purchase_transaction

Details of the purchase transaction associated with the one-time order.

Omnichannel one time order item attributes

id
required, string, max chars=40

Uniquely identifies an omnichannel_one_time_order_item.

item_id_at_source
required, string, max chars=100

Product identifier of the purchased item in the source store.

Apple App Store: App Store Connect product identifier (consumable, non-consumable, or non-renewing subscription product).

Google Play Store: Google Play in-app product ID for the one-time product.

item_type_at_source
optional, string, max chars=100

Product type as reported by the source store.

Apple App Store: Typically values such as consumable, non-consumable, or non-renewing subscription product types from App Store Connect / StoreKit.

Google Play Store: Typically the Google Play one-time product / in-app product type context.

quantity
optional, integer

The quantity of the omnichannel order item(s) purchased by the customer.

cancelled_at
optional, timestamp(UTC) in seconds

Timestamp when this specific omnichannel_one_time_order_item was cancelled in the source.

cancellation_reason
optional, enumerated string

The reason this omnichannel_one_time_order_item was cancelled (for example, refunded or revoked).

Enum Values
customer_cancelled

The customer cancelled / requested refund of the one-time purchase where the store reports a customer-initiated context.

customer_did_not_consent_to_price_increase

Not typically applicable to one-time orders; reserved for parity with subscription cancellation reasons.

refunded_due_to_app_issue

The one-time purchase was refunded due to an app issue.

Apple App Store: Commonly set for refund notifications with an app-issue refund reason.

Google Play Store: Not typically used for this reason code.

refunded_for_other_reason

The one-time purchase was refunded for another reason.

Apple App Store: Commonly set for refund notifications with a non-app-issue refund reason.

Google Play Store: Not typically used for this reason code.

merchant_revoked

The merchant revoked the one-time purchase / access.

Google Play Store: Commonly used for voided / revoked purchases.

Apple App Store: Can apply when access is revoked.

created_at
required, timestamp(UTC) in seconds

Timestamp when the omnichannel_one_time_order_item was created in Chargebee.

resource_version
optional, long

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.

Purchase transaction attributes

id
required, string, max chars=40

Unique identifier for the omnichannel_transaction.

id_at_source
required, string, max chars=100

The store-native identifier for this transaction.

Apple App Store: Transaction ID for this purchase.

Google Play Store: Order ID for this purchase (typically GPA.…). This is not the parent one-time order purchase token (omnichannel_one_time_order.id_at_source).

app_id
required, string, max chars=100

App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the app_id:

price_currency
optional, string, max chars=3

The three-letter ISO 4217 currency code associated with the transaction (price_currency), when price data is available.

price_units
optional, long

The whole units of the amount, when price data is available. For example: if price_currency is USD (two-decimal currency), then the unit value for USD 1.23 will be 1 if price_currency is JPY (zero-decimal currency), then the unit value for JPY 123 will be 123 if price_currency is BHD (three-decimal currency), then the unit value for BHD 1.234 will be 1

price_nanos
optional, long

The fractional price amount, in nanos (billionths of the currency unit), when price data is available. The value must be between 0 and +999,999,999 inclusive. For example: If price_currency is USD (two-decimal currency), then nanos value for USD 1.23 will be 230,000,000 If price_currency is JPY (zero-decimal currency), then nanos value for JPY 123 will be 0 If price_currency is BHD (three-decimal currency), then nanos value for BHD 1.234 will be 234,000,000

Apple App Store: Typically present.

Google Play Store: May be present when Google provides price data for the transaction; otherwise absent.

type
required, enumerated string

The type of transaction that occurred in the source.

Enum Values
purchase

Indicates that the transaction occurred for a purchase.

renewal

Indicates that the transaction was initiated as part of a renewal for a previously completed purchase. Not used for one-time orders.

transacted_at
optional, timestamp(UTC) in seconds

Timestamp when the transaction occurred in the source, when available.

Apple App Store: Typically present.

Google Play Store: May be present when Google provides purchase time; otherwise absent.

created_at
required, timestamp(UTC) in seconds

Timestamp when the transaction was created in Chargebee.

resource_version
optional, long

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.

linked_omnichannel_subscriptions

A list of omnichannel_subscription objects linked to this transaction.

linked_omnichannel_one_time_orders

A list of omnichannel_one_time_order objects linked to this transaction.