This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Accuracy of available quantities and rejected orders

We have an application trying to order as much as possible (up to a given threshold) of a certain product using APIv2.

When 1475 pieces have been shown as available an order for that qty was submitted and an order number with status "PROCESSING" returned. However, the inventory interface continued to return 1475 available items (without a limit), so another order was created and so on. If I try to GET /store/orders/Txxxxxxxx return status is 404.

This is unsatisfying for two reasons:

a) in another thread (Data Actualization TI API Inventory stock & Order API) I read this:

If you are using the /store/products/{tiPartNumber} API, yes, the inventory that is returned back is accurate, at the time that the API call executes.

Now this is exactly what we were doing before each order, but still the 1475 pieces have been returned every time.

b) if an order is created but not successfully completed I'd expect the API call to return order information with  orderStatus: cancelled instead of treating this order as if it never existed; codes 404 triggers error handlers on our end (invalid product/order number), whereas we would like to track the status once we have a valid order number.

What is the expected way to handle this task (order a given qty of a product with a smaller qty showing up as available)?

  • Just in case this is useful for tracing the problem: The two items concerned so far are:

    LM96063CISD/NOPB (1475 pcs, Oct 18th)

    TUSB2077APTR (4995 pcs, Oct 20th)

  • Hi Paul,

    What you experienced is not the expected behavior, and we do not expect you to see this behavior again.

    There was an issue that occurred between October 13 and October 20 where we experienced a delay in order entry acceptance for TI store API orders. We are working through these orders and have put high priority and urgency on their fulfillment. Unfortunately, for some of these orders the inventory has been depleted during this one week timeframe and the orders therefore had to be cancelled.

    I'm sorry for the inconvenience, but you should see the expected behavior for similar orders in the future.

    Thanks and best regards,
    Paul

**Attention** This is a public forum