Deprecated page: This page is deprecated, and remains here for the use of developers still using cobrand authentication.
Authenticate Cobrand
Use the POST cobrand/login endpoint to create a cobrand login session token. Use the API keys (Cobrand Login and Cobrand Password) to authenticate your cobrand login session token.
Sample request
Endpoint
POST /cobrand/login
Headers
"Content-Type" : "application/json"
"Api-Version" : "1.1"
"Cobrand-Name" : "restserver"
Body
{
"cobrand":{
"cobrandLogin":"exampleCobrand",
"cobrandPassword":"examplePassword"
}
}
Response
{
"cobrandId": 10010352,
"applicationId": "3A4CAE9B71A1CCD7FF41F51006E9ED00",
"locale": "en_US",
"session": {
"cobSession": "08062013_1:1248d0142f398a68b7125bc2199f6ec242d310b75f6bfde65efba7901340fa272b1b3f7f68a3297a0c2c4b5a56c2809fad4f03bcd7f7f53d4d545389eb9cb4b7"
}
}
Authenticate User Login
Use the POST user/login endpoint to create a user login session token. Use the 2nd Test Username and User Password credentials to authenticate your user login session token.
Sample request
Endpoint
POST /user/login
Headers
"Content-Type" : "application/json"
"Authorization" : "cobSession=08062013_1:1248d0142f398a68b7125bc2199f6ec242d310b75f6bfde65efba7901340fa272b1b3f7f68a3297a0c2c4b5a56c2809fad4f03bcd7f7f53d4d545389eb9cb4b7"
"Api-Version" : "1.1"
"Cobrand-Name" : "restserver"
Body
{
"user":{
"loginName":"exampleName",
"password":"examplePassword",
"locale":"en_US"
}
}
Response
{
"user": {
"id": 10174097,
"loginName": "sbMemd9c72e0f851702d88631d22dfc9b28f48a5",
"name": {
"first": "Corbin",
"last": "NA"
},
"roleType": "INDIVIDUAL",
"session": {
"userSession": "08062013_0:640a053e3f7e078539bdf0557eaede5037e89505f6b3d6981a8b2369747561c7fec60f096d0fa9c9bc361559b82b4be0d5fc51af4376ff037ba11eb3f2212d4a"
},
"preferences": {
"currency": "USD",
"timeZone": "PST",
"dateFormat": "MM/dd/yyyy",
"locale": "en_US"
}
}