updateCustomerEmail
This method updates an email address associated with a specific customer.
Parameters
- customerId (string, required): The UUID of the customer.
- id (string, required): The UUID of the email address to be updated.
Request Body
- email (string, required): The new email address.
- verified (boolean, nullable): The verification status of the email address.
Returns
A JSON object confirming the successful update of the email address.
Usage Example
const axios = require('axios');
let data = JSON.stringify({
"email": "string",
"verified": true
});
let config = {
method: 'patch',
maxBodyLength: Infinity,
url: 'https://api.nexera.id/customers/:customerId/emails/:id',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});