POST Session/Logout

logout API

Request Information

URI Parameters

None.

Body Parameters

AuthRequest
NameDescriptionTypeAdditional information
token

timestamp token

string

None.

securityCode

security code to login

string

None.

language

Language

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "securityCode": "sample string 2",
  "language": 1,
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<AuthRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 4</accessToken>
  <userID>sample string 3</userID>
  <language>ID</language>
  <securityCode>sample string 2</securityCode>
  <token>sample string 1</token>
</AuthRequest>

Response Information

Resource Description

AuthResponse
NameDescriptionTypeAdditional information
accessToken

access token to get access of API

string

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "accessToken": "sample string 1",
  "respTime": "2025-01-23T00:09:38.9648983+07:00",
  "userID": "sample string 3",
  "status": "sample string 4",
  "respMessage": "sample string 5"
}

application/xml, text/xml

Sample:
<AuthResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken i:nil="true" />
  <respMessage>sample string 5</respMessage>
  <respTime>2025-01-23T00:09:38.9648983+07:00</respTime>
  <status>sample string 4</status>
  <userID>sample string 3</userID>
  <accessToken>sample string 1</accessToken>
</AuthResponse>