Javascript
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" }
Delete a recipient by using their address or their email address.
Bearer token authentication using your thanks.io API key
Delete a recipient by providing address details
OK
The response is of type object.
object
Was this page helpful?