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.
Hello,
I have some questions to make the Inventory subscription a bit more clear to me.
{ "type": "inventory", "data": { "tiPartNumber": "TESTOPN", "genericPartNumber": "TESTGPN", "buyNowUrl": "">www.ti.com/.../TESTOPN", "quantity": 0, "pricing": [ { "currency": "USD", "priceBreaks": [ { "priceBreakQuantity": 1, "price": 1.003 } ] } ], "description": "Test product for test nofication", "minimumOrderQuantity": 1, "standardPackQuantity": 75, "exportControlClassificationNumber": "EAR99", "htsCode": "0123456789", "pinCount": 8, "packageType": "TESTOPN_8_SOIC_D", "packageCarrier": "TUBE", "customReel": false, "lifeCycle": "ACTIVE" }
{ "order": { "checkoutProfileId": "", "customerPurchaseOrderNumber": "", "endCustomerCompanyName": "", "expediteShipping": false, "customerOrderComments": [ { "message": "" } ], "lineItems": [ { "customerLineItemNumber": 1, "tiPartNumber": "NE555DR", "customerPartNumber": "", "customReelIndicator": false, "quantity": 1, "customerItemComments": [ { "message": "" } ] }, { "customerLineItemNumber": 2, "tiPartNumber": "LM358PWR", "quantity": 1 } ] } }
Thanks in advance.
Hi Far,
All, very good questions! Let me try and address them...
1. The "API request parameters" are optional parameters that you may want added to your API call. Most of the time, we have not seen this used by customers. You would not want to add ""tiPartNumber" as value 1 and "quantity" as value 2 as parameters. You need to specify these values as part of your JSON.
2. To check if your inventory subscription works properly, execute the Inventory Subscription test. If your API is configured properly, (completing the required fields in the "API setting), TI will send a response to you via an HTTP POST, and a successful message will read "accepted". Important: Be sure to click "Authorize" and input your credentials, before executing the test (see the steps below).
3. For Ordering products - If you order multiple parts and one is not available, the order request will fail. We are working to resolve this, but I do not have an estimate on when this will be available. For Inventory subscription is different because you are telling TI that you want to be alerted when these parts are available. So, it will not be rejected.
4. We are working to add API orders to Order History. That fix should be coming within the next 2 - 3 weeks.
Hope I addressed all of your questions. Feel free to reach out if you have more!
Hello Faye,
I thank you for your step-by-step answer to my questions. I have to apologize that still I need to raise some questions in the same order.
{"status":"failed", "responseCode":0, "message":"Could not extract response: no suitable HttpMessageConverter found for response type [class com.ti.dc.ticom.pushnotificationutil.model.NotificationResponse] and content type [text/html;charset=UTF-8]"}
which means everything went well!!! Based on the presented responses.
For a real case, If an item is present and you send a HTTP POST request with jason data! How the jason data looks like. I need to know that then I can extract the tiPartNumber and the available quantity. Based on that I can order the Item you have informed me about out of 3 items that I requested. This part is a bit unclear to me.
From another question I found this jason array. Is it true that if a part is produced and TI wants to inform us they send such jason array?!
{ "type": "inventory", "data": { "tiPartNumber": "TESTOPN", "genericPartNumber": "TESTGPN", "buyNowUrl": "">www.ti.com/.../TESTOPN", "quantity": 0, "pricing": [ { "currency": "USD", "priceBreaks": [ { "priceBreakQuantity": 1, "price": 1.003 } ] } ], "description": "Test product for test nofication", "minimumOrderQuantity": 1, "standardPackQuantity": 75, "exportControlClassificationNumber": "EAR99", "htsCode": "0123456789", "pinCount": 8, "packageType": "TESTOPN_8_SOIC_D", "packageCarrier": "TUBE", "customReel": false, "lifeCycle": "ACTIVE" }
The execution of a proper action from our side is related to the answer of this question.
I thank you for your patience and early response.
Far
Far,
If I missed an item, please provide more clarity. I may not be understanding your question.
Hi Faye,
In my case, the issue was adding some other lines to my code that was receiving your post request. Now, that I am saving the jason data sent by
https://transact.ti.com/v2/store/subscriptions/inventory/test in a .txt file, I am not receiving {"status":"failed", ...} anymore.
Thanks for your assistance.
**Attention** This is a public forum