Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Purpose4044Purpose:

This page will provide the New API contracts for LC user registration.

...

(Still in progress)- Draft

API TYPE

ERROR

Response JSON

POST

422: if any conflict occurred or validation issue

Code Block
{
    "code": 422,
    "errorMessage": "error msg"
}

400: if any bad request

Code Block
{
    "code": 422,
    "errorMessage": "error msg"
}

500: if any internal server error

text/plaintype response

something went wrong or any relevant msg

(Still in progress)- Draft

PUT

422: if any conflict occurred or validation issue

Code Block
{
    "code": 422,
    "errorMessage": "error msg"
}

400: if any bad request

Code Block
{
    "code": 422,
    "errorMessage": "error msg"
}

500: if any internal server error

text/plaintype response

Code Block
something went wrong or any relevant msg 
text/plaintype 
response

404: Staging user does not exist

Code Block
{
    "code": "STAGING_USER_NOT_FOUND",
    "errorMessage": "Staging user does not exist"
}

GET registration-status by

email or externalSystemId

400: Multiple users found with the same email

Code Block
{
    "code": "MULTIPLE_USER_WITH_EMAIL",
    "errorMessage": "Multiple users found with the same email"
}

404: User account is not active

Code Block
{
    "code": "USER_ACCOUNT_INACTIVE",
    "errorMessage": "User account is not active"
}

404: User does not exist

Code Block
{
    "code": "USER_NOT_FOUND",
    "errorMessage": "User does not exist"
}