deleteCustomerAddress
This method allows you to delete a specific address for a customer.
Parameters
- customerId (string, required): The UUID of the customer.
- id (string, required): The UUID of the address you want to delete.
Returns
A JSON object indicating the successful deletion of the address.
Usage Example
const axios = require('axios');
let config = {
method: 'delete',
maxBodyLength: Infinity,
url: 'https://api.nexera.id/customers/:customerId/addresses/:id',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});