Order

An order is represented as a order object with the following entries:

Attribute

Type

Required

Description

id

int or str

Required

The order id.

products

list of object with keys id: int or str, quantity: int, price: float

Required

The products in the order. Each product is an object with an ID, quantity, and unit price.

time

unix timestamp

Required

The time of the order as a Unix Timestamp.

email

str

Required for using our email and audience products.

The customer email.

customer

int or str

Required

The customer ID.