Special Order Lookup?

rsirotarsirota Member Posts: 104

In retail when you go to a PO and a special order on that PO you can click the print icon for a line item which gives you a special order receipt. This receipt has a number on the bottom that for us starts with 2400000XXXXXX and a regular receipt starts with 2200000. I am trying to look up this special order via the API based on the 24XXX number but I can not figure out if I can. I need to get the person who ordered this special order.

Any help on doing the search?

Best Answer

  • lancemuzlancemuz Member Posts: 34 ✭
    Answer ✓

    Looks like for special orders the customer ID is embedded in the barcode. For example 2400000265658 is for customerID 26565. I'm assuming that the last digit is a checksum. For sales barcodes it looks like it embeds the saleID. So 2200000884275 is for saleID 88427.

    You can query special orders by customerID with https://api.lightspeedapp.com/API/Account/[account #]/SpecialOrder.json?customerID=X That will return all special orders for a particular customer so you'll want to filter for the itemID. The best way I can think to do that is using the following and then filter the results for the itemID https://api.lightspeedapp.com/API/Account/[account #]/SpecialOrder.json?customerID=X&load_relations=["SaleLine.Item"]

    Lance Muzslay


    Optimal Inventory & Operations


Sign In or Register to comment.