login
post
/ccstore/v1/login
Login. Perform login operation.
Request
Supported Media Types
- application/x-www-form-urlencoded
Form Parameters
-
fingerprint: string
Device fingerprint used at the second stage of multi-factor authentication.
-
grant_type(required): string
Authorization parameter for grant type.
-
orderMergeMode: string
Optional parameter to control merging items in the cart with the shopper's old incomplete order. The default is to merge orders and combine line items. Possible values are 'none' to turn off merging completely and 'doNotCombineLineItems' to merge orders but not combine line item quantities.
-
password(required): string
Authorization parameter for password.
-
remember_device: boolean
Whether to remember the device at the second stage of multi-factor authentication.
-
totp_code: string
One time password emailed to the user on login when multi-factor authentication is enabled. The parameter is used at the second stage.
-
username(required): string
Authorization parameter for username.
-
validation_token: string
Validation token returned at the first stage instead of access_token if multi-factor authentication is enabled. The parameter is used at the second stage.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : login_response
Type:
Show Source
object
-
access_token:
string
Refreshable OAuth token.
-
expires_in:
integer
Time in seconds until token expires.
-
token_type:
string
OAuth token type.
Example Response (application/json)
{
"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MTQxNDk5NTYsInN1YiI6IjExMDU1OCIsImlzcyI6InN0b3JlZnJvbnRVSSIsImlhdCI6MTQxNDE0OTAyNn0=.B9qM0/VKpCNKvjCmOnUPv4RS7mkIDgKcP8RJPaVQGYU=",
"token_type":"bearer",
"expires_in":"930"
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code