deleteCustomers

deleteCustomers

This method allows you to delete multiple customers by their customer IDs.

Parameters

customerIds (string, required): A comma-separated list of customer IDs to be deleted.

Returns

A string response indicating the status of the operation.

Usage Example

const axios = require('axios');

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

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