getCustomerActivityLogs

getCustomerActivityLogs

This method retrieves the activity logs for a specific customer.

Parameters

  • customerId (string, required): The ID of the customer whose activity logs you want to retrieve.
  • currentPage (optional): The current page number for paginated results.
  • limit (optional): The number of records to return per page.
  • fromDate (date-time, optional): The start date to filter the activity logs.
  • toDate (date-time, optional): The end date to filter the activity logs.

Returns

A JSON object containing the total count of activity logs and the list of activity logs for the specified customer.

Usage Example

const axios = require('axios');

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

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