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

CreateOrder

object

An order, sent for the discount phase. Send the whole cart each time; a repeated request with the same external_order_id replaces the cart of the order in progress.

Fields

  • seller_idintegerRequired

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

    min 1

  • barcodestringRequired

    What identifies the customer, as a POS reads it: the customer's Lynked barcode, a voucher code, a staff barcode (staff discount applies), a phone number or an email.

    max 255 characters

  • external_order_idstringRequired

    The order id in your system. One order in progress per id.

    max 255 characters

  • external_discountnumber | null

    An order-level discount you applied yourself, outside Lynked.

    min 0

  • itemsarray of objectRequired

    at least 1 item

    10 fields
    • external_item_idstringRequired

      The line id in your system, unique within the order.

      max 255 characters

    • external_product_idstring | null

      max 255 characters

    • skustringRequired

      max 255 characters

    • categorystringRequired

      Category path, levels separated by /. Loyalty rules match on it.

      max 255 characters

    • product_namestringRequired

      max 255 characters

    • quantitynumberRequired

      greater than 0

    • totalnumberRequired

      Line total before Lynked discounts.

      min 0

    • taxnumber | null

      min 0

    • external_discountnumber | null

      A discount on this line you applied yourself, outside Lynked.

      min 0

    • supply_pricenumber | null

      Cost price of one unit. Staff discounts based on cost price use it.

      min 0