Generate sessionId

The TCDC API is the primary way to get data in and out of TCDC's platform. It's a low-level HTTP-based API that you can use to query data the portfolio, manage portfolio's promotions and a variety of other tasks that an app might need to do.

HTTP Request

POST /api/v1/appauth

Example Header

POST /api/v1/appauth HTTP/1.1
Host: {{DOMAIN}}
Content-Type: application/json
Accept: application/json

Parameters

Pareameter Type Description Required
tcdc_username String Username Yes
tcdc_password String Password Yes

Request Body

{
    "username": "{{tcdc_username}}",
    "password": "{{tcdc_password}}"
}

Response

{
  "sessionId":"0aed4b323755d0f4618de30b6310e12c",
  "createdDate":1504475472,
  "expiredDate":1504475472
}

Response Code

Code Result Description
200 success The new sessionId was created successful.
400 error The request is malformed or missing some required parameters.
401 error Unauthorized or the sessionId was expired.