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

Order

object

An order, from any channel (POS, seller app, online shop or this API).

Fields

  • idintegerRequired

    The order id.

  • external_order_idstring | nullRequired

    The order id in your system (or in the POS the order came from).

  • statusOrderStatusRequired
    • in_progress: discounts are calculated; the order waits to be completed or canceled.
    • completed: rewards are applied.
    • canceled: the order was canceled before completion.

    One of "in_progress""completed""canceled"

  • channelstringRequired

    Where the order came from. public_api for orders created through this API; other values name a POS or the seller app.

  • seller_idintegerRequired

    The seller the order was made at. See List sellers.

  • location_idintegerRequired

    The location of the seller.

  • customer_idintegerRequired

    The customer the barcode belongs to.

  • is_staff_orderbooleanRequired

    true when the barcode was a staff barcode, so the staff discount applies.

  • currencyCurrencyRequired

    The business currency. Amounts in Rewards and Orders are in this currency.

    One of 123

  • totalnumberRequired

    Order total before Lynked discounts.

  • discountnumberRequired

    Lynked discount on the order as a whole (for example a value voucher). It is separate from the line discounts in items[].discount: it does not include them and is not split over the lines.

  • discount_reasonsarray of DiscountReasonRequired

    What makes up the order's discount. Line discounts have their own reasons in items[].discount_reasons.

    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.

  • itemsarray of OrderItemRequired
    10 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.

  • rewardsarray of OrderRewardRequired

    Rewards the order as a whole gave the customer; empty until the order is completed. Rewards of a line are in items[].rewards and are not repeated here.

    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.

  • created_atstring · date-timeRequired
  • updated_atstring · date-timeRequired