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: [TI-API] token not recognized between TI store v1 and v2 servers

Part Number: TI-API

Tool/software:

client_id=ctOFZBlcml9yG47yT77K0GQAFiX7GY3b
client_secret=5GfL9wrw????????
 I successfully get token but when using the store API:
curl --request GET --url 'transact.ti.com/.../AFE7799IABJ \
--header 'Authorization: Bearer EDEs3MRQY0Y4adbPyGCkEWq081LL'
API results in below error with status code 401:
{
  "fault": {
    "faultstring": "Invalid API call as no apiproduct match found",
    "detail": {
      "errorcode": "keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"
    }
  }
}
(edited)






Do you know what is wrong here?
  • Thanks Anna. TI IT team, may we please get a review for this case? Thanks. 

  • Let me pass more details about it. I'm able to get the access_token however I'm not able to create a new order. I'm passing the following details:

    client_id: MrEG4X4EG24ncJQIuUq7Te29KvnpGPUR

    {
      "order": {
        "checkoutProfileId": "13BF29DEA1362EB5E063DE21BB8B8633",
        "customerPurchaseOrderNumber": "test1",
    ...

    Response:

    {
        "fault": {
            "faultstring": "Invalid API call as no apiproduct match found",
            "detail": {
                "errorcode": "keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"
            }
        }
    }

    Especially it's strange because I'm able to get data from v1/store/products but NOT from v2/store/products (in this case I also received the 401 Unauthorized)

  • Please advise if you are still experiencing any issues. I am able to make product calls without errors, so, please let me know if you are still having any issues.   Thanks!

  • Hello Faye, this is Nils from the original request of Richard. 

    We just tested this and still have the same issue. How can we fix this?
    Best regards,
    Nils

  • Unfortunately still the same issue. I'm able to get data from V1 (transact.ti.com/.../AFE7799IABJ)

    {
        "Manufacturer": "Texas Instruments",
        "ProductIdentifier": "AFE7799IABJ",
        "GenericProductIdentifier": "AFE7799",
        "BuyNowURL": "https://www.ti.com/product/AFE7799/part-details/AFE7799IABJ",
        "Quantity": 2458,
        "Pricing": [
            {
                "Currency": "USD",
                "PriceBreaks": [
                    {
                        "PriceBreakQuantity": 1,
                        "Price": 729.928
                    },
                    {
                        "PriceBreakQuantity": 100,
                        "Price": 660.71
                    },

    but not from V2 (https://transact.ti.com/v2/store/products/AFE7799IABJ - in this case still I see: 

    {
        "fault": {
            "faultstring": "Invalid API call as no apiproduct match found",
            "detail": {
                "errorcode": "keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"
            }
        }
    }


    For both cases I'm using the same access token

  • Hi Anna,

    The v1 and v2 store APIs require you to use different keys. If you have not saved the key and secret for your v2 store API suite, you can regenerate them by going to the myTI dashboard ( https://www-sat.itg.ti.com/myti-dashboard/docs/mytidashboard ) and clicking "API keys and access"

    I hope that helps.

    Best regards,
    Paul

  • Regenerating the key solved the problem. Thanks

**Attention** This is a public forum