Retail API Ignores Discount

jtellierjtellier Member Posts: 56

Please let me know if something is wrong here but within a order creation post I add a Discount like the following but the "Discount" never shows in LightSpeed...


1 comment

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 882 moderator

    Hi @jtellier,

    Thank you for contacting us.

    What you need to do when adding a discount to the item is add the discountID field to the SaleLine. My example below:

    {
      "employeeID": 1,
      "registerID": 1,
      "completed": "true",
      "shopID": 1,
      "customerID" : 10,
      "SaleLines": {
        "SaleLine": [
            {
            "itemID": 5,
            "unitQuantity" : 1,
            "tax": true,
            "unitPrice": "100",
            "taxClassID": 1,
            "discountID": "9"
            }
        ],
        "Discount": [
            {
            "discountID": "9",
            "name": "€10 Discount",
            "discountAmount": "-10"
            }
        ]
      },
      "SalePayments": {
        "SalePayment": {
            "amount": 90,
            "paymentTypeID": 1
        }
      }
      
    }
    

    In UI


    I hope this helps.

Sign In or Register to comment.