OrderPage
object
One page of orders. See the Pagination guide.
Fields
16 fields
idintegerRequiredThe order id.
external_order_idstring | nullRequiredThe order id in your system (or in the POS the order came from).
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"channelstringRequiredWhere the order came from.
public_apifor orders created through this API; other values name a POS or the seller app.seller_idintegerRequiredThe seller the order was made at. See List sellers.
location_idintegerRequiredThe location of the seller.
customer_idintegerRequiredThe customer the barcode belongs to.
is_staff_orderbooleanRequiredtruewhen the barcode was a staff barcode, so the staff discount applies.The business currency. Amounts in Rewards and Orders are in this currency.
One of
123totalnumberRequiredOrder total before Lynked discounts.
discountnumberRequiredLynked 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.What makes up the order's
discount. Line discounts have their own reasons initems[].discount_reasons.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.
10 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.
Rewards the order as a whole gave the customer; empty until the order is completed. Rewards of a line are in
items[].rewardsand are not repeated here.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.
created_atstring · date-timeRequiredupdated_atstring · date-timeRequired
next_cursorstring | nullRequiredPass as
cursorto get the next page;nullon the last page.