# SSO - Login

## SSO - Login

<mark style="color:green;">`POST`</mark> `/api/Client/ClientLogin`

NOTE: Please use the account provided by 247

#### Headers

| Name         | Type   | Description  |
| ------------ | ------ | ------------ |
| Content-Type | string | Content Type |

#### Request Body

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| UserName | string | UserName    |
| Password | string | Password    |

{% tabs %}
{% tab title="200 Logged in successfully." %}

```
Mẫu ví dụ khi đăng nhập thành công: 
{   
    "ClientID": 2876,
    "ClientName": "Lê Thanh Tùng",
    "Token": "e93e4ad62b8b35d5361bb12f2de77330e834ac0a1e6a6fa39f4c920d0646e198",
    "Errors": [],
    "ErrorMessage": ""
}

Mẫu ví dụ khi đăng nhập không thành công:
{
    "ClientID": 0,
    "ClientName": null,
    "Token": null,
    "Errors": [
        {
            "ErrorMessage": "Tên tài khoản hoặc mật khẩu không đúng!",
            "PropertyName": null
        }
    ],
    "ErrorMessage": " | Tên tài khoản hoặc mật khẩu không đúng! | Tên tài khoản hoặc mật khẩu không đúng! | Tên tài khoản hoặc mật khẩu không đúng!"
}
```

{% endtab %}
{% endtabs %}

### Example

```
{
      "UserName": "TXN-KH18-0059",
      "Password": "456123@"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidoc.247express.vn/english-1.0.6/sso/sso-login.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
