login

post

/ccstore/v1/login

Login. Perform login operation.

Request

Supported Media Types
Form Parameters
  • Device fingerprint used at the second stage of multi-factor authentication.
  • Authorization parameter for grant type.
  • 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.
  • Authorization parameter for password.
  • Whether to remember the device at the second stage of multi-factor authentication.
  • One time password emailed to the user on login when multi-factor authentication is enabled. The parameter is used at the second stage.
  • Authorization parameter for username.
  • 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.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : login_response
Type: object
Show Source
Example Response (application/json)
{
    "access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MTQxNDk5NTYsInN1YiI6IjExMDU1OCIsImlzcyI6InN0b3JlZnJvbnRVSSIsImlhdCI6MTQxNDE0OTAyNn0=.B9qM0/VKpCNKvjCmOnUPv4RS7mkIDgKcP8RJPaVQGYU=",
    "token_type":"bearer",
    "expires_in":"930"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top