This thread has been locked.

TI-API: Documentation about store orders V1 vs V2

Part Number: TI-API


Question 1.
POST request /store/orders

IS V1 ApruveAccountId is the same as V2 checkoutProfileId?

Question 2.
POST request /store/orders

 V1 lineItems [object...] holds field CustomerExpectedUnitPrice, can't find equivalent field in v2 documentations.

Documentations I am looking at https://api-portal.ti.com/order-api#/TI%20store%20production%20order/post_store_orders
https://api-portal.ti.com/sites/default/files/apidoc_specs/TIStoreOrderV2-openapi_22.yaml

Also in V2 missing CustomerSoldToIdentifier,CustomerShipToIdentifier, are they redundant for V2?


is there a mechanism how I can be sure about the price of the product based on priceBreakQuantity like in V1 with CustomerExpectedUnitPrice? 


Thank you!
 

  • Janis:

    Thanks for reaching out to API Support. 

    ApruveAccountId that we use in v1 is not same as checkoutProfileId for v2. Customer will see the checkoutProfileId once they go through onboarding steps as outlined here.
    Once you have gone through creating and fill out the Checkout Profile you will get the ID. And that ID than can be used as checkoutProfileId when making the call.

    “CustomerExpectedUnitPrice” field is no longer needed for v2 as the unit price will be used that is at the time of purchase. This is same behavior as  customers see if they buy online via TI store.

    For v2 we don’t need CustomerSoldToIdentifier,CustomerShipToIdentifier any  more… that need will be fulfilled by Checkout Profile that customer creates. You could create multiple check checkout profile based on your different ShipTo location. 

    For more info you can read this FAQ’s on “Checkout Profile”.

  • On https://www.ti.com/checkoutprofile/web/addresses/edit/4307 -> save

    Sorry! We are currently doing site maintenance.

    This part of the TI website is currently undergoing scheduled system maintenance.
    We apologize for the inconvenience and ask that you try again later. 

    Can't create Checkout profiles because of missing Tax ID in dropdown.

    Trying post on store/orders/test request without correnct checkoutProfileId getting Internal Error.

    10:43:18.068 [reactor-http-epoll-3] DEBUG reactor.netty.http.client.HttpClient - [41c27a32-1, L:/10.55.8.125:52970 - R:transact.ti.com/184.85.144.54:443] WRITE: 213B
             +-------------------------------------------------+
             |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
    +--------+-------------------------------------------------+----------------+
    |00000000| 50 4f 53 54 20 2f 76 32 2f 73 74 6f 72 65 2f 6f |POST /v2/store/o|
    |00000010| 72 64 65 72 73 2f 74 65 73 74 20 48 54 54 50 2f |rders/test HTTP/|
    |00000020| 31 2e 31 0d 0a 75 73 65 72 2d 61 67 65 6e 74 3a |1.1..user-agent:|
    |00000030| 20 52 65 61 63 74 6f 72 4e 65 74 74 79 2f 31 2e | ReactorNetty/1.|
    |00000040| 30 2e 31 38 0d 0a 68 6f 73 74 3a 20 74 72 61 6e |0.18..host: tran|
    |00000050| 73 61 63 74 2e 74 69 2e 63 6f 6d 0d 0a 61 63 63 |sact.ti.com..acc|
    |00000060| 65 70 74 3a 20 2a 2f 2a 0d 0a 43 6f 6e 74 65 6e |ept: */*..Conten|
    |00000070| 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 |t-Type: applicat|
    |00000080| 69 6f 6e 2f 6a 73 6f 6e 0d 0a 41 75 74 68 6f 72 |ion/json..Author|
    |00000090| 69 7a 61 74 69 6f 6e 3a 20 42 65 61 72 65 72 20 |ization: Bearer |
    |000000a0| 33 30 53 6a 41 38 73 32 35 7a 74 53 53 53 74 30 |30SjA8s25ztSSSt0|
    |000000b0| 4a 59 58 4a 6b 4a 34 44 78 6c 4f 52 0d 0a 63 6f |JYXJkJ4DxlOR..co|
    |000000c0| 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 3a 20 35 37 |ntent-length: 57|
    |000000d0| 30 0d 0a 0d 0a                                  |0....           |
    +--------+-------------------------------------------------+----------------+
    10:43:18.069 [reactor-http-epoll-3] DEBUG reactor.netty.http.client.HttpClient - [41c27a32-1, L:/10.55.8.125:52970 - R:transact.ti.com/184.85.144.54:443] WRITE: 570B
             +-------------------------------------------------+
             |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
    +--------+-------------------------------------------------+----------------+
    |00000000| 7b 22 4f 72 64 65 72 22 3a 7b 22 63 68 65 63 6b |{"Order":{"check|
    |00000010| 6f 75 74 50 72 6f 66 69 6c 65 49 64 22 3a 22 54 |outProfileId":"T|
    |00000020| 45 53 54 49 4e 47 5f 52 45 51 55 45 53 54 22 2c |ESTING_REQUEST",|
    |00000030| 22 63 75 73 74 6f 6d 65 72 50 75 72 63 68 61 73 |"customerPurchas|
    |00000040| 65 4f 72 64 65 72 4e 75 6d 62 65 72 22 3a 22 32 |eOrderNumber":"2|
    |00000050| 30 32 32 2d 30 39 2d 30 36 54 31 30 3a 34 33 3a |022-09-06T10:43:|
    |00000060| 31 38 5a 22 2c 22 65 6e 64 43 75 73 74 6f 6d 65 |18Z","endCustome|
    |00000070| 72 43 6f 6d 70 61 6e 79 4e 61 6d 65 22 3a 22 4d |rCompanyName":"M|
    |00000080| 69 6b 72 6f 74 69 6b 22 2c 22 65 78 70 65 64 69 |ikrotik","expedi|
    |00000090| 74 65 53 68 69 70 70 69 6e 67 22 3a 66 61 6c 73 |teShipping":fals|
    |000000a0| 65 2c 22 63 75 73 74 6f 6d 65 72 4f 72 64 65 72 |e,"customerOrder|
    |000000b0| 43 6f 6d 6d 65 6e 74 73 22 3a 5b 7b 22 6d 65 73 |Comments":[{"mes|
    |000000c0| 73 61 67 65 22 3a 22 54 65 73 74 69 6e 67 20 22 |sage":"Testing "|
    |000000d0| 7d 5d 2c 22 6c 69 6e 65 49 74 65 6d 73 22 3a 5b |}],"lineItems":[|
    |000000e0| 7b 22 63 75 73 74 6f 6d 65 72 4c 69 6e 65 49 74 |{"customerLineIt|
    |000000f0| 65 6d 4e 75 6d 62 65 72 22 3a 31 2c 22 74 69 50 |emNumber":1,"tiP|
    |00000100| 61 72 74 4e 75 6d 62 65 72 22 3a 22 41 46 45 37 |artNumber":"AFE7|
    |00000110| 37 39 39 49 41 42 4a 22 2c 22 63 75 73 74 6f 6d |799IABJ","custom|
    |00000120| 65 72 50 61 72 74 4e 75 6d 62 65 72 22 3a 22 41 |erPartNumber":"A|
    |00000130| 46 45 37 37 39 39 49 41 42 4a 31 22 2c 22 63 75 |FE7799IABJ1","cu|
    |00000140| 73 74 6f 6d 52 65 65 6c 49 6e 64 69 63 61 74 6f |stomReelIndicato|
    |00000150| 72 22 3a 74 72 75 65 2c 22 71 75 61 6e 74 69 74 |r":true,"quantit|
    |00000160| 79 22 3a 32 30 30 2c 22 63 75 73 74 6f 6d 65 72 |y":200,"customer|
    |00000170| 49 74 65 6d 43 6f 6d 6d 65 6e 74 73 22 3a 5b 7b |ItemComments":[{|
    |00000180| 22 6d 65 73 73 61 67 65 22 3a 22 31 22 7d 5d 7d |"message":"1"}]}|
    |00000190| 2c 7b 22 63 75 73 74 6f 6d 65 72 4c 69 6e 65 49 |,{"customerLineI|
    |000001a0| 74 65 6d 4e 75 6d 62 65 72 22 3a 32 2c 22 74 69 |temNumber":2,"ti|
    |000001b0| 50 61 72 74 4e 75 6d 62 65 72 22 3a 22 4e 45 35 |PartNumber":"NE5|
    |000001c0| 35 35 44 52 22 2c 22 63 75 73 74 6f 6d 65 72 50 |55DR","customerP|
    |000001d0| 61 72 74 4e 75 6d 62 65 72 22 3a 22 4e 45 35 35 |artNumber":"NE55|
    |000001e0| 35 44 52 32 22 2c 22 63 75 73 74 6f 6d 52 65 65 |5DR2","customRee|
    |000001f0| 6c 49 6e 64 69 63 61 74 6f 72 22 3a 74 72 75 65 |lIndicator":true|
    |00000200| 2c 22 71 75 61 6e 74 69 74 79 22 3a 31 2c 22 63 |,"quantity":1,"c|
    |00000210| 75 73 74 6f 6d 65 72 49 74 65 6d 43 6f 6d 6d 65 |ustomerItemComme|
    |00000220| 6e 74 73 22 3a 5b 7b 22 6d 65 73 73 61 67 65 22 |nts":[{"message"|
    |00000230| 3a 22 32 22 7d 5d 7d 5d 7d 7d                   |:"2"}]}]}}      |
    +--------+-------------------------------------------------+----------------+
    10:43:18.069 [reactor-http-epoll-3] DEBUG reactor.netty.http.client.HttpClient - [41c27a32-1, L:/10.55.8.125:52970 - R:transact.ti.com/184.85.144.54:443] FLUSH
    10:43:18.069 [reactor-http-epoll-3] DEBUG reactor.netty.http.client.HttpClient - [41c27a32-1, L:/10.55.8.125:52970 - R:transact.ti.com/184.85.144.54:443] READ COMPLETE
    10:43:18.077 [reactor-http-epoll-3] DEBUG reactor.netty.http.client.HttpClient - [41c27a32-1, L:/10.55.8.125:52970 - R:transact.ti.com/184.85.144.54:443] READ COMPLETE
    10:43:18.515 [scheduling-1] DEBUG c.m.purchase.ti.runner.TiRunner - Service halted: false
    10:43:18.526 [scheduling-1] DEBUG c.m.purchase.ti.runner.TiRunner - Service lock Acquired: false
    10:43:18.526 [scheduling-1] DEBUG c.m.purchase.ti.runner.TiRunner - singleRunInstance doFinally: onComplete
    10:43:18.616 [reactor-http-epoll-3] DEBUG reactor.netty.http.client.HttpClient - [41c27a32-1, L:/10.55.8.125:52970 - R:transact.ti.com/184.85.144.54:443] READ: 776B
             +-------------------------------------------------+
             |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
    +--------+-------------------------------------------------+----------------+
    |00000000| 48 54 54 50 2f 31 2e 31 20 35 30 30 20 49 6e 74 |HTTP/1.1 500 Int|
    |00000010| 65 72 6e 61 6c 20 53 65 72 76 65 72 20 45 72 72 |ernal Server Err|
    |00000020| 6f 72 0d 0a 53 65 72 76 65 72 3a 20 41 70 61 63 |or..Server: Apac|
    |00000030| 68 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 |he..Content-Type|
    |00000040| 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 |: application/js|
    |00000050| 6f 6e 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 |on..Content-Leng|
    |00000060| 74 68 3a 20 33 39 32 0d 0a 41 63 63 65 73 73 2d |th: 392..Access-|
    |00000070| 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 2d 4f 72 |Control-Allow-Or|
    |00000080| 69 67 69 6e 3a 20 2a 0d 0a 41 63 63 65 73 73 2d |igin: *..Access-|
    |00000090| 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 2d 48 65 |Control-Allow-He|
    |000000a0| 61 64 65 72 73 3a 20 61 75 74 68 6f 72 69 7a 61 |aders: authoriza|
    |000000b0| 74 69 6f 6e 2c 20 78 2d 72 65 71 75 65 73 74 65 |tion, x-requeste|
    |000000c0| 64 2d 77 69 74 68 2c 20 63 6f 6e 74 65 6e 74 2d |d-with, content-|
    |000000d0| 74 79 70 65 2c 20 61 63 63 65 70 74 0d 0a 41 63 |type, accept..Ac|
    |000000e0| 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 4d 61 78 |cess-Control-Max|
    |000000f0| 2d 41 67 65 3a 20 33 36 30 30 30 30 30 0d 0a 41 |-Age: 3600000..A|
    |00000100| 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c |ccess-Control-Al|
    |00000110| 6c 6f 77 2d 4d 65 74 68 6f 64 73 3a 20 47 45 54 |low-Methods: GET|
    |00000120| 2c 20 50 4f 53 54 2c 20 50 55 54 2c 20 44 45 4c |, POST, PUT, DEL|
    |00000130| 45 54 45 0d 0a 58 2d 53 46 2d 43 4f 52 53 3a 20 |ETE..X-SF-CORS: |
    |00000140| 74 72 75 65 0d 0a 44 61 74 65 3a 20 54 75 65 2c |true..Date: Tue,|
    |00000150| 20 30 36 20 53 65 70 20 32 30 32 32 20 30 37 3a | 06 Sep 2022 07:|
    |00000160| 34 33 3a 31 38 20 47 4d 54 0d 0a 43 6f 6e 6e 65 |43:18 GMT..Conne|
    |00000170| 63 74 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a 0d 0a |ction: close....|
    |00000180| 7b 0d 0a 20 20 22 65 72 72 6f 72 73 22 20 3a 20 |{..  "errors" : |
    |00000190| 5b 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 |[..    {..      |
    |000001a0| 22 65 72 72 6f 72 43 6f 64 65 22 20 3a 20 22 45 |"errorCode" : "E|
    |000001b0| 52 52 2d 54 49 43 4f 4d 2d 4f 52 44 45 52 2d 41 |RR-TICOM-ORDER-A|
    |000001c0| 50 49 2d 47 45 4e 2d 30 35 30 30 22 2c 0d 0a 20 |PI-GEN-0500",.. |
    |000001d0| 20 20 20 20 20 22 73 65 63 74 69 6f 6e 22 20 3a |     "section" :|
    |000001e0| 20 22 47 65 6e 65 72 69 63 22 2c 0d 0a 20 20 20 | "Generic",..   |
    |000001f0| 20 20 20 22 74 79 70 65 22 20 3a 20 22 56 61 6c |   "type" : "Val|
    |00000200| 69 64 61 74 69 6f 6e 22 2c 0d 0a 20 20 20 20 20 |idation",..     |
    |00000210| 20 22 72 65 61 73 6f 6e 22 20 3a 20 22 57 65 20 | "reason" : "We |
    |00000220| 65 6e 63 6f 75 6e 74 65 72 65 64 20 61 20 74 65 |encountered a te|
    |00000230| 63 68 6e 69 63 61 6c 20 69 73 73 75 65 20 69 6e |chnical issue in|
    |00000240| 20 70 72 6f 63 65 73 73 69 6e 67 20 79 6f 75 72 | processing your|
    |00000250| 20 72 65 71 75 65 73 74 2e 22 2c 0d 0a 20 20 20 | request.",..   |
    |00000260| 20 20 20 22 6d 65 73 73 61 67 65 22 20 3a 20 22 |   "message" : "|
    |00000270| 54 68 65 20 41 50 49 20 69 73 20 74 65 6d 70 6f |The API is tempo|
    |00000280| 72 61 72 69 6c 79 20 75 6e 61 76 61 69 6c 61 62 |rarily unavailab|
    |00000290| 6c 65 2e 20 50 6c 65 61 73 65 20 72 65 74 72 79 |le. Please retry|
    |000002a0| 2c 20 69 66 20 74 68 65 20 69 73 73 75 65 20 70 |, if the issue p|
    |000002b0| 65 72 73 69 73 74 73 2c 20 50 6c 65 61 73 65 20 |ersists, Please |
    |000002c0| 63 6f 6e 74 61 63 74 20 54 49 20 63 75 73 74 6f |contact TI custo|
    |000002d0| 6d 65 72 20 73 75 70 70 6f 72 74 20 2d 20 68 74 |mer support - ht|
    |000002e0| 74 70 73 3a 2f 2f 73 75 70 70 6f 72 74 2e 74 69 |tps://support.ti|
    |000002f0| 2e 63 6f 6d 2f 63 73 6d 22 0d 0a 20 20 20 20 7d |.com/csm"..    }|
    |00000300| 0d 0a 20 20 5d 0d 0a 7d                         |..  ]..}        |
    +--------+-------------------------------------------------+----------------+


    I know that this would not work on production link, but definitely should not be 500


    P.S.
    I suggest you to think about Development profiles. I don't have access to business profiles and its kind of waste of time to create new profile to be later deleted.

  • Need help to create checkout profile with missing * Tax ID

  • I got over Tax ID,  but my checkout profile is Incomplete. All green but still Incomplete.

    <removed the image>

  • Solved 500 error. Need help with my Incomplete checkout profile.

  • Janis:

    Sorry to hear you are facing issue with checkout profile. Let us look into why checkout profile is still showing incomplete. will update you in next few hours.  

  • Janis:

    After looking at your checkout profile, it seems that Payment info is missing.

    Can you please follow steps outlined here (look for "How do I add, edit or delete a payment method for a myTI company account?") to add the payment info to your checkout profile and see if that helps getting your checkout profile "Complete".  Once you are ready to save your checkout profile please make sure all the steps (6 of them) has "green checkbox". 

  • Hi,

    I see all 6 steps in green but still my checkout profile is in incomplete status.

    Thanks

  • Neelima:

    Thanks for reaching out to API Support. 

    Let me look into what I can see. Will get back to you in few hours. 

  • Neelima:

    I looked at backend and see that you have 2 checkout profile created... For both of them I don't see any payment info saved. Can you please make sure the payment info is saved.  

    I would also like to point FAQ resource we have that goes over

    Should you have any further question feel free to reach out to us (either by opening up new thread or reply on this thread).   

  • Hi,

    Can we have some Apruve ID for sandbox order API testing? I used the one which i got before from TI Support but I am getting error as below

    Invalid Apruve payment Id

    Thanks
  • Neelima:

    There was a need to have a Test Apruve ID for Sandbox testing in V1 but with V2 that need is not there. 

    In V2 you can use your valid Apruve ID as part of the checkout Profile and place an test (/v2/store/orders/test). 

  • Hi, I just checked with our Buyer's to get valid Apruve ID. But looks like they are purchasing with Credit card and don't have a valid Apruve ID. In checkout profile if i select payment as Other, status of the checkout profile is changing to Incomplete. Please help. Thanks.

  • Neelima:

    Unfortunately, at this time using Credit Card as a payment method is not an option for purchasing via API.  

  • So, we only have Apruve payment right now to purchase with API?

  • Neelima:

    At this point we offer 3 types of payment method when ordering via API.

    They are outlined here. api-portal.ti.com/order-api-payment

**Attention** This is a public forum