getCustomerScenarioExecutionHistory

getCustomerScenarioExecutionHistory

This method allows you to retrieve a single customer's scenario execution history using various filters.

Parameters

  • Path Parameters:

    • customerId (string, required): The unique identifier of the customer.
  • Query Parameters:

    • currentPage (any, optional): The current page number for paginated results.
    • limit (any, optional): The maximum number of results per page.
    • fromDate (date-time, optional): The start date for filtering results.
    • toDate (date-time, optional): The end date for filtering results.

Returns

A JSON array containing the customer's scenario execution history, including fields like execution_id, scenario_executions, execution_status, and last_execution_date.

Usage Example

const axios = require('axios');

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

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