TI store API suite
Authentication
Because TI store APIs are secured using OAuth 2.0, you must pass an access token in the header when sending a request. To obtain an access token, call the OAuth API at https://transact.ti.com/v1/oauth/accesstoken.
For a successful request, note that:
- We use the client credentials flow.
- The "Content-Type" must be "application/x-www-form-urlencoded."
- The request should be sent to the appropriate URL above without any additional query parameters.
- The request parameters (grant_type, client_id, client_secret) must be in the request body, sent in a string, separated by "&" without any further encoding.
- For example: "grant_type=client_credentials&client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]"
- The access token is valid for 60 minutes. Before using the token in other APIs, check whether the access token has expired.
- The access token (or bearer token) must be passed in the header of all API requests.
Response for a successful request:
Example authentication payload and header of an access token request from Insomnia client:
Insomnia request OAuth2 Settings:
Authentication example in VB.net (framework 4.6.1):
Authentication example in C# (framework 4.6.1):