POST
/
recipients
/
delete-by-address
Delete a Recipient By Address
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json · object

Response

200 - application/json

OK

The response is of type object.