OrderPlacedEventProperties

Hierarchy

Index

Properties

Optional cart_id

cart_id: undefined | string

A unique identifier for the cart. If no value is passed, a default value is assumed (shared across cart/checkout/order events) for user cart mapping. Cannot exceed 255 characters in length.

currency

currency: string

Default USD. Currencies should be represented as an ISO 4217 currency code. Supported currency symbols include: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTC, BTN, BWP, BYR, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EEK, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MTL, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XAG, XAU, XCD, XDR, XOF, XPD, XPF, XPT, YER, ZAR, ZMK, ZMW, and ZWL. Any other provided currency symbol will result in a logged warning and no other action taken by the SDK.

Optional discounts

discounts: any[]

A detailed list of discounts applied to the order.

Optional metadata

metadata: undefined | { order_number?: undefined | string; order_status_url?: undefined | string; payment_gateway_names?: string[]; referring_site?: undefined | string; tags?: string[] }

Additional metadata about the product viewed. Keys are limited to 255 characters in length, cannot begin with a $ character, and can only contain alphanumeric characters and punctuation. Total size of metadata cannot exceed 50KB.

order_id

order_id: string

A unique identifier for the order that was placed. Cannot exceed 255 characters in length.

products

The products in the order.

source

source: string

The source the event is derived from. Cannot exceed 255 characters in length.

Optional total_discounts

total_discounts: undefined | number

The total amount of discounts applied to the order (ex: 12.99).

total_value

total_value: number

The total monetary value of the order (ex: 12.99).