getCompanySessionStatus

getCompanySessionStatus

This method retrieves the session status of a company based on the provided company ID.

Parameters

id (uuid, required): The unique identifier of the company.

Returns

A JSON array containing objects with the following fields:

  • name (string, required): The name of the session.
  • detail (string, required): The details of the session.
  • status (string, required): The status of the session. Possible values: pending, success, failed.

Usage Example

const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/company/:id/session-status',
  headers: { 
    'Accept': 'application/json', 
    'Authorization': 'Bearer <TOKEN>'
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});