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.

TI-API: Inventory subscriptions API and order history

Part Number: TI-API

Hello,

I have some questions to make the Inventory subscription a bit more clear to me.

  • In the Inventory subscription API setting, what are "API request parameters"? It means if I add the"tiPartNumber" as value 1 and "quantity" as value 2, then when an item is available you are sending Jason data which consists of the values for these parameters?!
  • If I do not assign any value for "API request parameters" then the Jason data you are sending has such a structure?! I do not know how to check if my inventory subscription works properly!

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"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,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • If I want to order several products in a format like what is below if one of the items is not available can I purchase the other item?! Or since one of the items is not available my request will be rejected ?! I want to know the answer to this question for both cases using inventory subscription and none inventory method.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"order": {
"checkoutProfileId": "",
"customerPurchaseOrderNumber": "",
"endCustomerCompanyName": "",
"expediteShipping": false,
"customerOrderComments": [
{
"message": ""
}
],
"lineItems": [
{
"customerLineItemNumber": 1,
"tiPartNumber": "NE555DR",
"customerPartNumber": "",
"customReelIndicator": false,
"quantity": 1,
"customerItemComments": [
{
"message": ""
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • The last problem that I encountered is that if I order something I receive emails to proceed with the purchase but the orders are not appearing on my order history page.

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.

    • An example would make this part very clear to me. But anyway I leave this part blank and consider it as solved.
    • I subscribed 3 items in the inventory subscription and all were successful. I received the same response as you showed in the picture. But now when I run  'https://transact.ti.com/v2/store/subscriptions/inventory/test' I get this as answer.

    Fullscreen
    1
    2
    3
    4
    5
    6
    {"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]"}
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    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?!

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    {
    "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,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    The execution of a proper action from our side is related to the answer of this question.

    • About the order history my problem is solved.  Thank you

    I thank you for your patience and early response. 

    Far

  • Far,

    • Your first three call were successful - I can see those tests in the system.  The errors are not successful.  It looks like TI could not process your HTTP call.  Can you please provide me with all of the details of your push call...."https:........????".  And, can you send me the details highlighted below:

    •  For sample code/examples, please reference this FAQ.
    • The push notifications for Inventory Subscription API is designed specifically for pushing JSON push notifications via an HTTP POST to an API the customer has created.

    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