...
This page will provide the API contracts for LC user registration.
POST:
Description: Create patron.
API: https://folio-dev-volaris-edge.ci.folio.org/patron/account/{externalSystemID}?apikey=eyJzIjoieHFpNzNjNEZzOSIsInQiOiJkaWt1IiwidSI6ImRpa3VfYWRtaW4ifQ==
...
ERROR CODE for ALL the API’s (negative scenarios) - Work in progress : Also below codes are found in API DOC: API DOC LINK
Sample Error Responses:
API TYPE | ERROR | Response JSON |
---|
POST API DOC LINK | 422: User account is not active | Code Block |
---|
{
"code": 422,
"errorMessage": "USER_ACCOUNT_INACTIVE"
} |
|
422: User | account is not active"does not belong to the required patron group | Code Block |
---|
{
"code": 422,
" |
| errorCode | USER | ACCOUNT | INACTIVE |
422: User | does not belong to the required patron groupalready exists | Code Block |
---|
{
"code": 422,
"errorMessage": "USER_ALREADY_EXIST" |
| User does not belong to the required patron group" |
422: Multiple users with email | Code Block |
---|
{
"code": 422,
" |
| errorCode | INVALID | PATRON | GROUP | 422: User already exists
PUT API DOC LINK | 404: user does not exist | | 422404,
"errorMessage": "USER_NOT_FOUND"
} |
|
422: User | already exists"already exist with email provided in payload | Code Block |
---|
{
"code": 422,
" |
| errorCode | USER | PUT | 404: user does not exist
422: Multiple users found with the same email | | 404 | User does not exist"MULTIPLE_USER_WITH_EMAIL"
} |
|
422: Required Patron group not applicable for user | Code Block |
---|
{
"code": 422,
" |
| errorCode | USER | FOUND |
400GET by email API DOC LINK | 404: User | already exist with email provided in payloaddoes not exist | | 400 | User already exist with email provided in payload" |
422: Multiple users found with the same email | Code Block |
---|
{
"code": 422,
" |
| errorCode | EMAIL | ALREADY | EXIST |