curl --request POST \
--url https://api.txcloud.io/v1/lending/assess \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"applicant": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"date_of_birth": "2023-12-25",
"phone": "<string>",
"email": "<string>",
"national_id": "<string>"
},
"loan_request": {
"amount": 123,
"currency": "<string>",
"term_months": 123,
"purpose": "<string>"
},
"consent": {
"bureau_check": true,
"timestamp": "2023-11-07T05:31:56Z",
"bank_data": true
},
"employment": {
"status": "employed",
"employer_name": "<string>",
"monthly_income": 123,
"income_currency": "<string>"
},
"existing_debts": [
{}
]
}
'