getLastKybSession
This method retrieves the last KYB (Know Your Business) session for a given company based on the provided company ID.
Parameters
id
(uuid, required): The unique identifier of the company.
Returns
- A JSON object containing the details of the last KYB session with the following fields:
id
(uuid, required)customerId
(uuid, required)address
(object, required)cmsProjectId
(string, required)result
(string, nullable): Possible values:Passed
,ToBeManuallyChecked
,Rejected
,Retry
reviewAnswer
(string, nullable): Possible values:GREEN
,RED
,YELLOW
reviewRejectType
(string, nullable): Possible values:FINAL
,RETRY
sandboxMode
(boolean, nullable)status
(string, nullable): Possible values:NotStarted
,Started
,Closed
ip
(string, nullable)sandboxSimulated
(boolean, nullable)beneficiaries
(object[], nullable)createdAt
(date-time, required)updatedAt
(date-time, required)
Usage Example
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.nexera.id/company/:id/last-kyb-session',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});