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.
Can't acquire order from test link even if quantity is available.
store/order/test response
{ "orderInfo": { "orderNumber": "", "cartID": "C325530990", "checkoutProfileId": "", "currencyCode": "USD", "orderDate": "2022-09-08T00:14:01Z", "orderEntry": "API", "customerPurchaseOrderNumber": "2022-09-08T08:14:01Z", "orderStatus": "", "orderedBy": "Jānis ", "endCustomerCompanyName": "", "application": "Wired networking", "endEquipment": "Campus & branch switches", "intendedForMilitary": "No", "isProductionOrder": false, "totalOrderSummary": { "subTotal": 132180.72, "estimatedDiscountAmount": 0.0, "estimatedShippingCost": 0.0, "estimatedTaxes": 0.0, "orderTotal": 132180.72 }, "discounts": null, "lineItems": [ { "tiLineItemNumber": "0", "customerLineItemNumber": "1", "tiPartNumber": "AFE7799IABJ", "customerPartNumber": "AFE7799IABJ1", "tiPartDescription": "Quad-channel RF transceiver with dual feedback paths", "partType": "IC", "htsCode": "", "coCode": "", "quantity": 200, "shippedQuantity": 0, "unitPrice": 660.71, "netPrice": 132142.0, "dateCode": null, "batchCode": null, "status": "", "fees": null, "discounts": null, "packageInformation": { "carrier": "JEDEC TRAY (5+1)", "delivery": [ { "type": "Box or tray", "quantity": 200 } ] }, "waiverAvailable": "false", "trackingAndShipping": [ { "shippingFreightAccount": "TI", "trackingNumbers": [ { "shippingFromCountryCode": "Singapore", "serviceLevel": "", "shipDate": null, "masterTracking": null, "leg1Carrier": null, "leg1Tracking": null, "leg1TrackingURL": null, "leg2Carrier": null, "leg2Tracking": null, "leg2TrackingURL": null }, { "shippingFromCountryCode": "Shenzhen", "serviceLevel": "", "shipDate": null, "masterTracking": null, "leg1Carrier": null, "leg1Tracking": null, "leg1TrackingURL": null, "leg2Carrier": null, "leg2Tracking": null, "leg2TrackingURL": null } ], "invoices": [ ], "creditMemo": null } ], "customerItemComments": null, "notifications": [ { "topic": "Custom Reel", "detail": "Sorry, custom reel option is not available. Your request is being fulfilled with cut tape package carrier" } ] }, { "tiLineItemNumber": "1", "customerLineItemNumber": "2", "tiPartNumber": "NE555DR", "customerPartNumber": "NE555DR2", "tiPartDescription": "Single Precision Timer", "partType": "IC", "htsCode": "", "coCode": "", "quantity": 484, "shippedQuantity": 0, "unitPrice": 0.08, "netPrice": 38.72, "dateCode": null, "batchCode": null, "status": "", "fees": null, "discounts": null, "packageInformation": { "carrier": "LARGE T&R", "delivery": [ { "type": "Cut tape", "quantity": 484 } ] }, "waiverAvailable": "false", "trackingAndShipping": [ { "shippingFreightAccount": "TI", "trackingNumbers": [ { "shippingFromCountryCode": "Shenzhen", "serviceLevel": "", "shipDate": null, "masterTracking": null, "leg1Carrier": null, "leg1Tracking": null, "leg1TrackingURL": null, "leg2Carrier": null, "leg2Tracking": null, "leg2TrackingURL": null }, { "shippingFromCountryCode": "US", "serviceLevel": "", "shipDate": null, "masterTracking": null, "leg1Carrier": null, "leg1Tracking": null, "leg1TrackingURL": null, "leg2Carrier": null, "leg2Tracking": null, "leg2TrackingURL": null } ], "invoices": [ ], "creditMemo": null } ], "customerItemComments": null, "notifications": [ { "topic": "Custom Reel", "detail": "Sorry, custom reel option is not available. Your request is being fulfilled with cut tape package carrier" } ] } ], "shippingAddress": { "firstName": "Janis", "lastName": "Strautins", "company": "Mikrotik", "addressLine1": "214I Brivibas iela", "addressLine2": null, "city": "Riga", "stateRegion": "vidzeme suburb", "postalCode": "1039", "regionCode": "LV", "region": "Latvia", "email": "strautins@mikrotik.com", "phoneNumber": "26 167 775", "companyUrl": "www.mikrotik.com" }, "billingAddress": { "firstName": "Janis", "lastName": "Strautins", "company": "Mikrotik", "addressLine1": "214I Brivibas iela", "addressLine2": null, "city": "Riga", "stateRegion": "vidzeme suburb", "postalCode": "1039", "regionCode": "LV", "region": "Latvia", "email": "strautins@mikrotik.com", "phoneNumber": "26 167 775", "companyUrl": "www.mikrotik.com" }, "payment": { "type": null, "method": null, "bankTranferApproverEmail": null }, "taxInfo": { "taxExemption": false }, "vatDetails": [ { "type": "PVN", "details": [ { "customerTaxId": "40003286799", "customerName": null, "registrationAddress": null, "contactPhone": null, "contactMobilePhone": null, "contactEmail": null, "bankName": null, "bankAccountNumber": null } ] } ], "orderComments": [ { "message": "Testing" } ], "notifications": [ ] }, "errors": [ { "errorCode": "ERR-TICOM-ORDER-API-0004", "type": "Application", "section": "lineItems", "field": null, "reason": "Part number requested quantity is out of stock", "message": "Resubmit the request with a different quantity. Check the inventory levels for availability", "data": [ { "customerLineItemNumber": "1", "tiPartNumber": "AFE7799IABJ", "quantity": "200", "availableQuantity": "355" }, { "customerLineItemNumber": "2", "tiPartNumber": "NE555DR", "quantity": "484", "availableQuantity": "484" } ] } ] }
Errors about unavailable quantity, but in error object we can see that quantity for purchase is available.
{ "customerLineItemNumber": "1", "tiPartNumber": "AFE7799IABJ", "quantity": "200", "availableQuantity": "355" }, { "customerLineItemNumber": "2", "tiPartNumber": "NE555DR", "quantity": "484", "availableQuantity": "484" }
order as from documentation https://api-portal.ti.com/order-api#/TI%20store%20test%20order/post_store_orders_test on Code 422
Hi Janis,
through our research we see that you have been approved and have been testing in our test Sandbox environment.
The API endpoint you attempted to connect with via the TI store API is an access method no longer supported as of August 29, 2022. We apologize for any inconvenience caused. Without the newest access using new valid credentials from your myTI account, you will not get an order or an accurate view of inventory using your sandbox credentials.
To get access to the TI store API Suite, where you will find the POST store/order/test - you will now need to create a myTI company account. The new company account feature offers a connected, seamless purchasing experience for your procurement colleagues. Within your newly created company account, you can make a new request for API access. Create a myTI company account here. Or for more information about our APIs, take a look at API overview page.
After your API key request has been approved, check out the API portal. Any additional questions, please refer to the E2E support forum, available in English or Chinese (中文).
We look forward to doing business with you via API.
I do not see the connection between question and this answer.
Please explain why I am getting Response code 422 with error
"errors": [ { "err orCode": "ERR-TIC OM-ORDER-API-000 4", "type": "Application", "section ": "lineItems", "f ield": null, "reas on": "Part number requested quant ity is out of st ock", "message": " Resubmit the req uest with a diff erent quantity. Check the invent ory levels for a vailability", "data": [ { "customerL ineItemNumber": " 6", "tiPartNumber ": "NE555DR", "qua ntity": "200", "av ailableQuantity": "494" }, { "custom erLineItemNumber ": "5", "tiPartNum ber": "AFE7799IAB J", "quantity": "2 00", "availableQu antity": "355" } ] } ]
when quantity is less than availableQuantity.
Why part number requested is out of stock?
In start of thread, question store/order/test actual link is store/orders/test as from documentation, it was a typo, problem persists.
Hi Janis
sorry for the misunderstanding on my part. I truly apologize, I understand you have our v1 test sandbox order APIs and our new v2 TI API Order suite.
Yes - you are correct in what the v2 store/orders/test link will display in the error- as you indicated. Thank you for sharing this to us, (we will strive to get a better error msg response for this error code of 422) this error is not as explanatory as it needs to be.
What it is not explaining is that due to the low inventory qty for both these materials which is less than 500 in this scenario, these material have had a limit set of qty 10 to be able to place an order. In our v1 Order API suite there was not a qty limit - but now in v2 API Order suite customers will experience limits when inventory stock is low.
You can check the material itself to see if a limit has been set by going to our ti.com website and entering in the product your interested in buying - it will display the limit if one has been set. (see the example below)
Additionally if you change your qty to 10 or less you will get past the existing 422 error but then encounter a different error related to your Apruve credentials - as we encountered during our testing research.
We are working actively with Apruve to resolve the issue: The Apruve team has indicated that they've noticed an issue in the Apruve system where the ID in the Settings>User Profile page is populating the ID from the first application, whether that ID is valid or not. Until that issue is fixed by Apruve , please use the Apruve ID displayed in the URL address bar after you have logged into Apruve for your account, this should be the source of truth.
Please let me know if this has answered your questions, and thank you for sharing the 422 error msg that needs enhanced.
Thank you!
Fast fix, suggestion would be to add Product limit quantity to Response Error Data object.
Something like:
{ "customerLineItemNumber": " 6", "tiPartNumber ": "NE555DR", "quantity": "200", "availableQuantity": "494", "limit": "10" }
But yes, Textual information would clear all doubts.
Thank you for your input, I have submitted the enhancement to the text wording and also asked if limit would be possible to be included in our Response error data object as suggested.
**Attention** This is a public forum