Login a shopper. Introduced in 2.19.4.
| Method | Login |
The request body is of type Login.
| Name | Description | Data Type |
|---|---|---|
| Username | The user name for the account to login. | xml:string |
| Password | The password for the account to loign. | xml:string |
// Example: Login the account MakeAJAXCall("Visitor.Login", { Username: 'sbrown@bikesblades.com', Password: 'P@$sW0Rd' }, console.log)
The response body is of type LoginResponse.
| Name | Description | Data Type |
|---|---|---|
| LoginResult | A string value containing a JSON object.
{
"Data": {
"SessionToken": "d04c7932-0d76-47cb-b550-1577d72dffa4"
},
"Result": {
"Success": true,
"Message": "The account has been logged-in successfully.",
"ElapsedTime": "766 ms"
}
}
| xml:string |