The Lynked Public API is in development. Endpoints will appear here as they go live.

OrderItem

object

A line of an order.

Fields

  • idintegerRequired

    The line id in Lynked.

  • external_item_idstring | nullRequired

    The line id in your system. null for some orders that came from a POS.

  • skustringRequired
  • categorystringRequired

    Category path, levels separated by /.

  • product_namestringRequired
  • quantitynumberRequired
  • totalnumberRequired

    Line total before Lynked discounts.

  • discountnumberRequired

    Lynked discount on this line only (for example a stamp voucher or a product discount). The order's discount is separate and not included here.

  • discount_reasonsarray of DiscountReasonRequired

    What makes up this line's discount.

    3 fields
    • typeDiscountReasonTypeRequired

      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"

    • amountnumberRequired

      The amount of this discount.

    • descriptionstringRequired

      A short text about the discount, as the dashboard shows it.

  • rewardsarray of OrderRewardRequired

    Rewards this line gave the customer; empty until the order is completed.

    3 fields
    • typeRewardTypeRequired

      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"

    • valuenumberRequired

      How much of the reward was given — points, stamps, or the value of a voucher; see type.

    • descriptionstringRequired

      A short text about the reward, as the dashboard shows it.