Suspend or Reinstate an Account
POST/client/users/:correlation_id/suspension
Used to suspend an account (SUSPEND) or to reinstate a previously-suspended account (REMOVE, remove the suspension).
Request
Body
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| action | Provides the action to either suspend or un-suspend an account. | String | Required. Either "SUSPEND" (to suspend account) or "REMOVE" (to remove a SUSPENDED status). |
| reasonCode | Code that specifies the reason the suspension or the removal of a suspension is taking place. | String | Required. Valid values are: Used with SUSPEND: FRAUDULENT_BEHAVIOUR, SUSPECTED_FRAUD, POLICY_VIOLATION, EXCESS_OR_ABUSE, or OTHER. Used with REMOVE: LEGIT_BEHAVIOUR, ISSUE_RESOLVED, INVEST_INCONCLUSIVE, or OTHER. |
| reason | User-friendly version of information about why the action is being taken. | String | Optional. Valid values: Used with SUSPEND: Fraudulent Behaviour, Suspected Fraud Behaviour, Policy Violation, Excessive or abusive account behaviour, or Other. Used with REMOVE: Legitimate Behaviour, Issue Resolved, Investigation Inconclusive, or Other. |
| details | Provide additional information, up to 1,024 characters, about the action taken. | String | Optional |
Response
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| message | Message regarding the outcome of the action to suspend or un-suspend an account. | String | For sucessful SUSPEND action: "The account is successfully suspended." For successful REMOVE action (remove a suspension): "The account is successfully suspended." |
Error Responses
| statusCode | errorMessage | errorCode | Definition |
|---|---|---|---|
| 400 Bad Request | Suspension action is mandatory and required to be non-empty | MISSING_REQUIRED_FIELDS_ERROR | action either is not included in the request or has no value included. |
| 400 Bad Request | Suspension reasonCode is mandatory and required to be non-empty | MISSING_REQUIRED_FIELDS_ERROR | reasonCode either is not included in the request or has no value included. |
| 400 Bad Request | Suspension action must be a valid action. | INVALID_ACTION | The value for action is not valid (not SUSPEND or REMOVE). |
| 400 Bad Request | Invalid reasonCode. Please specify a valid reasonCode. | INVALID_REQUEST | The value used for the reasonCode is not valid. See request documentation for valid reasonCodes for SUSPEND and REMOVE. |
| 400 Bad Request | Invalid displayName. Please specify a valid displayName. | INVALID_REQUEST | reason (the displayName) does not have one of the specified values. To see values, view the documentation for reason in the request. |
| 400 Bad Request | Suspension reasonCode length exceeded. | MAX_LENGTH_EXCEEDED | Max length is 20 characters. |
| 400 Bad Request | Suspension reason length exceeded. | MAX_LENGTH_EXCEEDED | Max length is 40 characters. |
| 400 Bad Request | Details length exceeded. | MAX_LENGTH_EXCEEDED | Max length is 1024 characters. |
| 400 Bad Request | Account is already suspended. | ACCOUNT_ALREADY_SUSPENDED | Account already has SUSPEND status. |
Request
Responses
- 200
- 400
200 - Account Successfully Suspended
Response Headers
Date
Example:
Fri, 14 Apr 2023 06:08:08 GMTContent-Length
Example:
53Connection
Example:
keep-alivex-amzn-RequestId
Example:
ecef19be-a378-42ed-bcf6-258a1320cf66Referrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000; includeSubDomains; preloadFeature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netx-amz-apigw-id
Example:
DWoW_HTLIAMFulQ=cache-control
Example:
no-cache, no-store, must-revalidateX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-6438edc6-4638f54f65f0ea8e6b7a035b;Sampled=0;lineage=e5ffa4d6:0400 - action is Mandatory Field
Response Headers
Date
Example:
Fri, 14 Apr 2023 07:27:56 GMTContent-Length
Example:
139Connection
Example:
keep-alivex-amzn-RequestId
Example:
4c13020e-da47-491a-b12e-c6de5760e65fReferrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000; includeSubDomains; preloadFeature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netx-amz-apigw-id
Example:
DW0DfHEFoAMF28A=cache-control
Example:
no-cache, no-store, must-revalidateX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-6439007c-4f59c2392e9c59e55e523cb0;Sampled=0;lineage=e5ffa4d6:0