Delete Sub Account. All sub account orders and mailing lists are moved to the main account. All image templates, message templates, and campaigns are deleted.
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/sub-accounts/{subAccountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.thanks.io/api/v2/sub-accounts/{subAccountId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.thanks.io/api/v2/sub-accounts/{subAccountId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"message": "success"
}{
"message": "Unauthorized"
}{
"message": "Not Found"
}Account
Delete Sub-Account
Delete a sub-account. All sub-account orders and mailing lists are moved to the main account. All image templates, message templates, and campaigns are deleted.
DELETE
/
sub-accounts
/
{subAccountId}
Delete Sub Account. All sub account orders and mailing lists are moved to the main account. All image templates, message templates, and campaigns are deleted.
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/sub-accounts/{subAccountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.thanks.io/api/v2/sub-accounts/{subAccountId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.thanks.io/api/v2/sub-accounts/{subAccountId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"message": "success"
}{
"message": "Unauthorized"
}{
"message": "Not Found"
}Was this page helpful?