58 lines
1.7 KiB
JSON
58 lines
1.7 KiB
JSON
{
|
|
"post": {
|
|
"tags": [
|
|
"Disbursement"
|
|
],
|
|
"summary": "Loan Disbursement Request",
|
|
"description": "This request should be executed as an atomic operation. Providing a loan and collecting the upfront fees operation should be executed within the same transaction. If one of the operations is failed, the whole transaction should be rolled back. Results of requests sent to this endpoint will be received from NotificationCallback endpoint.",
|
|
"operationId": "disbursement",
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/DisbursementRequest.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/DisbursementRequest.json"
|
|
}
|
|
},
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "../schemas/DisbursementRequest.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Disbursement request accepted",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/DisbursementResponse.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/DisbursementResponse.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Invalid request"
|
|
},
|
|
"500": {
|
|
"description": "Internal server error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
]
|
|
}
|
|
} |