POST
/
recipients-utils
/
delete-by-address
Delete Recipient By Address
const url = 'https://api.thanks.io/api/v2/recipients-utils/delete-by-address';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"mailing_list_id":1,"address":"123 Main Street","address2":"Apartment 1","city":"Any Town","province":"KS","postal_code":"12345","country":"US","email":"[email protected]"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "status": "Recipient 297230 Deleted"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using your thanks.io API key

Body

application/json

Delete a recipient by providing address details

Response

OK

The response is of type object.