CreateUser
POST/v1/identity/create-user¶ Description
Creates a 3P user for the given user details.
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| context | ThirdPartyRequestContext | Context of this request | Y |
| user_create_params | UserCreateParams | Details required to create an User. | Y |
¶ Response Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| user | User | User details of the created user | Y |
¶ Errors
| HTTP status | Code | Message |
|---|---|---|
| 422 | ERROR_CODE_VALIDATION_FAILED | Invalid locale preference |
| 422 | ERROR_CODE_FIRST_NAME_VALIDATION_FAILED | First name can’t be empty |
| 422 | ERROR_CODE_LAST_NAME_VALIDATION_FAILED | Invalid last name |
| 422 | ERROR_CODE_EMAIL_VALIDATION_FAILED | Email id is invalid |
| 422 | ERROR_CODE_PHONE_NUMBER_VALIDATION_FAILED | Mobile number is invalid |
| 404 | ERROR_CODE_USER_NOT_FOUND | User not found |
| 409 | ERROR_CODE_ALREADY_EXISTS | A user with the given user_external_id already exists |
| 422 | ERROR_CODE_FRAUDULENT_PAYMENT_METHOD | Payment method has been flagged as fraudulent. |
| 500 | ERROR_CODE_RATE_LIMIT_EXCEEDED | Rate limit exceeded. Please try again later. |
| 409 | ERROR_CODE_CONFLICT | User record was concurrently modified. Please retry the request. |