62 lines
2.0 KiB
JSON
62 lines
2.0 KiB
JSON
{
|
|
"post": {
|
|
"tags": [
|
|
"EligibilityCheck"
|
|
],
|
|
"summary": "Check customer eligibility for loan products",
|
|
"description": "This endpoint is used by FirstBank to check if a customer is eligible for loan products and returns available offers",
|
|
"operationId": "eligibilityCheck",
|
|
"requestBody": {
|
|
"description": "Customer information for eligibility check",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/EligibilityCheckRequest.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/EligibilityCheckRequest.json"
|
|
}
|
|
},
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "../schemas/EligibilityCheckRequest.json"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful operation",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/EligibilityCheckResponse.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/EligibilityCheckResponse.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Invalid request parameters"
|
|
},
|
|
"401": {
|
|
"description": "Authentication failed"
|
|
},
|
|
"500": {
|
|
"description": "Internal server error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"basic_auth": []
|
|
}
|
|
]
|
|
}
|
|
} |