Order

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

AttributeTypeRequiredDescription
idint or strRequiredThe order id.
productslist of object with keys id: int or str, quantity: int, price: float and optionally profit: floatRequiredThe products in the order. Each product is an object with an ID, quantity unit price, and optionally the profit earned on the product.
timeunix timestampRequiredThe time of the order as a Unix Timestamp.
customerint or strRequiredThe customer ID.
emailstrOptionalNeeded for using our Auto-Email and Audience products.The customer email.
status

enum:

CONFIRMED
SENT
DELIVERED
RETURNED
CANCELLED

OptionalStatus of the order.