Javascript
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mailing_list":540,"address":"123 Main Street","city":"LENEXA","province":"KS","postal_code":"66216","country":"US"}' }; fetch('https://api.thanks.io/api/v2/recipients/delete-by-address', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
{ "status": "Recipient 297230 Deleted" }
mailing_list [Required] - ID of mailing list to remove recipient from
address [Required]
postal_code [Required]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type object.
object
Was this page helpful?