API vs Product Card "Coming for Customers" discrepancy

markguertinmarkguertin Posts: 59Member
Just found an interesting difference here.

When viewing a product card for a specific SKU I see different numbers for "Coming for Customers" than I do with the API and I think I figured out why (and I'm wondering if this is related to others issues I'm seeing).

The product card from the Lightspeed App shows 2 units coming for customers, the API returns 1 unit coming for customers.  The difference is that 1 unit is on an invoice and 1 unit is on an order.  The Lightspeed app is showing the count for units that are on both orders and invoices, the API is showing the numbers for units on invoices only and not taking anything on orders into account.

4 comments

  • markguertinmarkguertin Posts: 59Member
    Of note this also means that the API is returning different numbers than the app for "Coming for Stock" as well, as the item that is on the order still shows as "Coming for Stock" via the API.
  • jamesratcliffejamesratcliffe Posts: 160Administrator, Lightspeed Staff moderator
    The "Coming for Customers" quantity is the total unreceived quantity of that product from all PO lines that are linked to an order request.

    "Coming for Stock" is the total unreceived quantity of that product from all PO lines that are not linked to an order request.

    Quantities from invoices shouldn't factor into either equation.

    Do you have specific examples of products where these numbers vary between the client app and the API? We can open a support ticket to look into it.
    James Ratcliffe
    API Integrations Specialist
    Lightspeed HQ
  • markguertinmarkguertin Posts: 59Member
    Yes, I did have specific ones when I posted this, but the products have since been received.  Pretty sure I can recreate this one to file a bug, I will contact you directly when I can reproduce this one.
  • jamesratcliffejamesratcliffe Posts: 160Administrator, Lightspeed Staff moderator
    That would be perfect. Thanks.
    James Ratcliffe
    API Integrations Specialist
    Lightspeed HQ
Sign In or Register to comment.