getDuplicatesForCustomer

getDuplicatesForCustomer

This method allows you to retrieve potential duplicate records for a specific customer using their customerId.

Parameters

customerId (uuid, required): The unique identifier of the customer.

Returns

A JSON array containing the duplicate records for the specified customer. Each record includes details such as id, customerIdLeft, customerIdRight, description, customerInfoLeft, customerInfoRight, matchedFields, exactMatch, alertId, createdAt, and updatedAt.

Usage Example

const axios = require('axios');

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

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