getPolicies
get
/ccadmin/v1/merchant/profilePolicies
Get Policies. Retrieves all the shopper policies
Request
There are no request parameters for this operation.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getPolicies_response
- blockCommonPasswords
-
Type:
booleanBlock the Use of Commonly Chosen Passwords and Weak Passphrases. - cannotUsePreviousPasswords
-
Type:
booleanApplies the previous password usage constraint. - cannotUseUsername
-
Type:
stringPassword must not be the same as their Username. - guestCheckoutEnabled
-
Type:
booleanApplies the authorization for anonymous shoppers to sign-in to complete checkout. - minPasswordLength
-
Type:
integerMinimum length of the password. - minPasswordLengthMaxVal
-
Type:
integerMaximum value of minimum length of the password. - minPasswordLengthMinVal
-
Type:
integerMinimum value of minimum length of the password. - numberOfPreviousPasswords
-
Type:
integerpassword should not have been used as previous N passwords for the given shopper user. - numberOfPreviousPasswordsMaxVal
-
Type:
integerMaximum number of previous passwords to be stored for the given shopper user. - numberOfPreviousPasswordsMinVal
-
Type:
integerMinimum number of previous passwords to be stored for the given shopper user. - passwordExpirationEnabled
-
Type:
booleanApplies the password expiration constraint. - passwordExpirationLength
-
Type:
integernumber of days after which the current password of the shopper will automatically expire. - passwordExpirationLengthMinVal
-
Type:
integerminimum number of days after which the current password of the shopper will automatically expire.. - sessionTimeoutEnabled
-
Type:
booleanApplies the session timeout length constraint. - sessionTimeoutLength
-
Type:
integerTimeout duration for all shopper sessions. - sessionTimeoutLengthMaxVal
-
Type:
integerMaximum timeout length for the user session. - sessionTimeoutLengthMinVal
-
Type:
integerMinimum timeout length for the user session. - useCase
-
Type:
booleanApplies the usage of capital letters in user password.. - useMinPasswordLength
-
Type:
booleanApplies the minimum password length constraint. - useNumber
-
Type:
booleanPassword must include a number. - useSymbol
-
Type:
booleanApplies the usage of symbol in user password.
Example application/json
{
"guestCheckoutEnabled":true,
"numberOfPreviousPasswords":3,
"numberOfPreviousPasswordsMinVal":1,
"passwordExpirationEnabled":false,
"passwordExpirationLengthMinVal":1,
"sessionTimeoutLength":15,
"cannotUsePreviousPasswords":false,
"passwordExpirationLength":90,
"minPasswordLengthMinVal":4,
"sessionTimeoutEnabled":true,
"minPasswordLengthMaxVal":64,
"useNumber":true,
"useCase":false,
"cannotUseUsername":true,
"useMinPasswordLength":true,
"minPasswordLength":8,
"numberOfPreviousPasswordsMaxVal":6,
"blockCommonPasswords":true,
"sessionTimeoutLengthMinVal":1,
"sessionTimeoutLengthMaxVal":120,
"useSymbol":false
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"guestCheckoutEnabled": true,
"numberOfPreviousPasswords": 3,
"numberOfPreviousPasswordsMinVal": 1,
"passwordExpirationEnabled": false,
"passwordExpirationLengthMinVal": 1,
"sessionTimeoutLength": 15,
"cannotUsePreviousPasswords": false,
"passwordExpirationLength": 90,
"minPasswordLengthMinVal": 4,
"sessionTimeoutEnabled": true,
"minPasswordLengthMaxVal": 64,
"useNumber": true,
"useCase": false,
"cannotUseUsername": true,
"useMinPasswordLength": true,
"minPasswordLength": 8,
"numberOfPreviousPasswordsMaxVal": 6,
"blockCommonPasswords": true,
"sessionTimeoutLengthMinVal": 1,
"sessionTimeoutLengthMaxVal": 120,
"useSymbol": false
}