OrderItem
object
A line of an order.
Fields
idintegerRequiredThe line id in Lynked.
external_item_idstring | nullRequiredThe line id in your system.
nullfor some orders that came from a POS.skustringRequiredcategorystringRequiredCategory path, levels separated by
/.product_namestringRequiredquantitynumberRequiredtotalnumberRequiredLine total before Lynked discounts.
discountnumberRequiredLynked discount on this line only (for example a stamp voucher or a product discount). The order's
discountis separate and not included here.What makes up this line's
discount.3 fields
What gave a discount. New values may be added; treat an unknown one as a generic discount.
One of
"voucher""stamp_voucher""stamp_voucher_extra""time_limited_voucher""product_discount_for_all""product_discount_group""multi_buy_discount""customer_condition""staff_member_discount""staff_rule_discount""staff_conditions""staff_supply_price_discount""staff_cash_discount""staff_percentage_scanned_by_seller""undefined"amountnumberRequiredThe amount of this discount.
descriptionstringRequiredA short text about the discount, as the dashboard shows it.
Rewards this line gave the customer; empty until the order is completed.
3 fields
What the reward is. New values may be added; treat an unknown one as a generic reward.
One of
"points""point_scale_by_option""point_by_pos_rule""stamp""stamp_by_pos_rule""first_check_in""voucher""bonus_voucher""stamp_voucher""time_limited_voucher""stamp_by_sku"valuenumberRequiredHow much of the reward was given — points, stamps, or the value of a voucher; see
type.descriptionstringRequiredA short text about the reward, as the dashboard shows it.