Make a purchase

Trigger when: any shopper hits button “Place an order” on Tiki app, after inputs delivery address and selects payment method.

1 - Host

Name

Value

URL

https://a.ants.vn/event

Method

POST

2 - Params

Param

Data Type

Description

Required

Sample Data

idsite

Long

to confirm source from tiki.vn. Values:

for testing: 677332133

or production: 643712461

yes

643712461

app_type

Integer

to identify device operation system.

Value:

for iOS: 1

for Android: 2

Other: 3

yes

1

app_version

String

to identify mobile app version.

4.34.1

uid

String

device advertising id (AAID, IDFA,...)

yes

click_bc

String

ANTS_CLICK_BEACON_VALUE. from beacon in ad response data (C1-A).

10650469598b1555206663

res

String

to get viewer’s screen resolution

1600x900

e_n

String

to identify shopper’s activity name. Value: Purchase

yes

Purchase

e_c

String

to identify shopper’s activity category. Value: product

yes

product

e_a

String

to identify shopper’s activity type. Value: purchase

yes

purchase

e_v

String

to identify shopper’s activity value. Default value: 0

time

Long

Client tracked time (Unix timestamp)

yes

1469006299389

resp_type

String

To specify response type. Value: json

Yes

json

3 - POST data

Data Type

Description

Required

Sample Data

uinf

JSON string

Contains shopper data

customer_id

hashed customer id, ad system can identify unique shopper across all platforms

yes

13960238

products

JSON string

Contains product data

id

Seller product id of each product in the order

yes

864115

sku

SKU of each product in the order

yes

5261971730647

name

Name of product that shopper adds to cart

yes

Tivi Samsung

brand

Brand of each product in the order

yes

Samsung

seller_id

Id of seller who offers the product

yes

12345

category

Full category path of the product that shopper is viewing

yes

Điện tử-Điện lạnh/Tivi/Tivi 4K

price

Listing price (in VND) of each product in the order

yes

4500000

quantity

Quantity of each product in the order

yes

1

extra

JSON string

Contains order data

order_id

Id of the order

yes

977895452

revenue

Total gross merchandise value (in VND) of the order.

yes

14500000

num_item

Total quantity of all product(s) in the order

yes

4

discount_amount

Total discount value (in VND) of the order

45000

promotion_code

The coupon code that is used in the order

4 - Samples

Sample Request

https://a.ants.vn/event?idsite=643712461&app_type=1&app_version=4.34.1&uid=10651554281&e_c=product&e_a=purchase&e_n=Purchase&e_v=0&time=1469006299389&click_bc=10650469598b1555206663&resp_type=json

Sample Post Data

{
"ecom_properties":{
"products":[
{
"id":"864115",
"sku":"5261971730647",
"name": "Tivi Samsung",
"quantity":1,
"brand":"Samsung",
"seller_id":"12345",
"price":4500000,
"category":"Điện tử-Điện lạnh/Tivi/Tivi 4K"
}
]
},
"uinf":{
"customer_id":"13960238"
},
"extra":{
"order_id":"977895452",
"revenue":14500000,
"num_item":4,
"discount_amount":45000,
"promotion_code":""
}
}

Last updated

Was this helpful?