On your conversion page, you can configure order sending to Lomadee using the sendOrder method, accessible through the global window context using the lomadeePixel variable.
Product-Specific Discounts: These should be reflected in each product’s price field. For example, if a product has a 10% discount, the price should be 90% of the listPrice.
General Discounts: Discounts applied at checkout (such as coupons or payment method discounts) should be included in subItems with the key “Discount”. This discount should also be applied to the final product value. For example, if a 5% discount is applied for using a specific payment method, it should be applied to the final price of each product in the order.
Commissioning: Lomadee’s commissioning algorithm considers the final value of each product (price), not the total order value after general discounts, for commission calculation. Therefore, it’s crucial that product-specific discounts are correctly reflected in each item’s price. For example, if a 5% discount is applied for using a specific payment method, it should be applied to each item’s price.
The metadata field is an array that allows sending custom information for specific contexts. It can be used at different levels of the order structure:
Order level (order.metadata)
Customer level (customer.metadata)
Product level (items[].metadata)
Category level (items[].categories[].metadata)
Each item in the metadata array must follow the key and value structure: