const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mailing_list_id: 1, address: '123 Main Street', postal_code: '12345'})
};
fetch('https://api.thanks.io/api/v2/recipients-utils/delete-by-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "Recipient 297230 Deleted"
}{
"message": "Mailing List Does Not Exist"
}Recipients
Delete Recipient By Address
Delete a recipient by using their address or their email address.
POST
/
recipients-utils
/
delete-by-address
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mailing_list_id: 1, address: '123 Main Street', postal_code: '12345'})
};
fetch('https://api.thanks.io/api/v2/recipients-utils/delete-by-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "Recipient 297230 Deleted"
}{
"message": "Mailing List Does Not Exist"
}Authorizations
Bearer token authentication using your thanks.io API key
Body
application/json
- Delete Recipient by Address
- Delete Recipient by Email
Delete a recipient by providing address details
Example:
1
Example:
"123 Main Street"
Example:
"12345"
Example:
"Apartment 1"
Example:
"Any Town"
State or Province
Example:
"KS"
Example:
"US"
Example:
"tobias@example.com"
Response
OK
The response is of type object.
Was this page helpful?