Skip to main content
Version: 2.3.0

Choose a company

Updated date: 30/04/2023
Updated by: VNPT eContract's team


Purpose

Select a company and retrieve the token information to access authenticated APIs.

  • Request URL: api/auth/choose-company
  • HTTP method: POST
  • HTTP content-type: application/json
  • Parameter:
KeyTypeDescription
comIdint[Required] Id of company

Sample request

{
"comId": 668
}

Sample response body

{
"data": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"success": true,
"code": 200,
"messages": [
"Choose company success"
]
}