Data Integration
Mandatory Events

Subscription Apps

10min

Purchase Click

When the user clicks on a button it may start the purchase.

This is not the after-purchase event so a user may terminate the purchase flow.

Properties

Name

Type

Required

Description

amount

Amount

Yes

Amount object with

packID

String

Yes

Id of the pack

items

Array of Premium Item

Yes

List of items (if specific items were purchased)

coupon

Coupon

No

Coupon if applied

Code Example

The following example includes optional properties too.

JS
TypeScript
Java
Kotlin
ObjectiveC
Swift
Dart


Consumable Purchase

When the user purchases a consumable content/item.

Properties

Name

Type

Required

Description

amount

Amount

Yes

Amount object with

packID

String

Yes

Id of the pack

items

Array of Premium Item

Yes

List of items (if specific items were purchased)

transactionID

String

Yes

TransactionId of the user purchase

coupon

Coupon

No

Coupon if applied

Code Example

The following example includes optional properties too.

JS
TypeScript
Java
Kotlin
ObjectiveC
Swift
Dart


Subscribe

When the user purchases a consumable content/item.

Properties

Name

Type

Required

Description

amount

Amount

Yes

Amount object with

packID

String

Yes

Id of the pack

items

Array of Premium Item

Yes

List of items (if specific items were purchased)

transactionID

String

Yes

TransactionId of the user purchase

type

String

Yes

subscription period like WEEKLY, MONTHLY, YEARLY.

coupon

Coupon

No

Coupon if applied

Code Example

The following example includes optional properties too.

JS
TypeScript
Java
Kotlin
ObjectiveC
Swift
Dart




Updated 25 Mar 2024
Did this page help you?