Returns kyc state of the user with the provided phone number, also returns supported documents for KYC submission
Successful response
URL to the KYC form
Indicates if the user has passed KYC
Status of the last KYC
const response = await fetch('https://sandbox-api.fonbnk.com/api/kyc/state?phoneNumber=text', { method: 'GET', headers: {}, }); const data = await response.json();
{ "kycUrl": "text", "offrampKycRules": [], "onrampKycRules": [], "passedKyc": false, "kycStatus": "initiated" }