const response = await fetch('https://sandbox-api.fonbnk.com/api/kyc/submit', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"phoneNumber": "254110612754",
"idType": "NATIONAL_ID",
"userFields": {
"first_name": "John",
"last_name": "Doe",
"dob": "1954-01-02T02:02:22.544Z",
"email": "some.email@gmail.com",
"id_number": "82003470"
}
}),
});
const data = await response.json();