Document API

Sign in

Description

Log in with the provided account to get token information. Use tokens to access other APIs.

Authorization header using the Bearer token. Example: "Authorization: Bearer {token}"

Url request: api.vietnamcredit.com.vn/api/Token

Method: POST

Request Parameters

Name Description Required
UserName

Username that VNC has granted

Type: String

Default: None

Yes
Password

The password provided is associated with the username

Type: String

Default: None

Yes

Response

Name Description
Success

True: Login success

False: Login fail

Message

Notification returned

Data

Container for item information, including AccessToken, TokenType, UserName, and Expired.

Example Response

The following response returns.

{
  "success": true,
  "message": null,
  "data": {
    "accessToken": "12n2nee0i00hD00/025n0000Omr5AMzp3200z2Mi2n3Mp0D45U0202D01d2p0pp3U030/D0i2d520p02m3dn03/20dppM000mp/50330000Ar000dD40Mmh/00/0r10m24nn20DO003i003m3mpzh0n0e00M2h5313d4M0h2O340023Ue1iA25z2002003/U/A032e/0r32Od3Oe04/0edn/230h03DeU0r004ph4h001300O5pUO0n22AmO0z24n4d2O0p30OzO5e3DM00O00p2A04p501M030h400Om0OzM03e0i0Op0Oi0nh/3p30On/2And35r0e12hM00DiO21eOph02A0r2Uh0ri2D30mdMr0/0pdA/iUOm05pn5O/",
    "tokenType": "Bearer",
    "userName": "admin",
    "expired": "20/04/2020 01:00:00"
  }
}