Skip to main content
POST
/
recipients-utils
/
delete-by-address
Delete Recipient 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',
    address2: 'Apartment 1',
    city: 'Any Town',
    province: 'KS',
    country: 'US',
    email: '[email protected]'
  })
};

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"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using your thanks.io API key

Body

application/json

Delete a recipient by providing address details

mailing_list_id
integer
required
Example:

1

address
string
required
Example:

"123 Main Street"

postal_code
string
required
Example:

"12345"

address2
string
Example:

"Apartment 1"

city
string
Example:

"Any Town"

province
string

State or Province

Example:

"KS"

country
string
Example:

"US"

email
string

Response

OK

The response is of type object.