Skip to main content
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));
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using your thanks.io API key

Path Parameters

subAccountId
integer
required

ID of sub-account

Example:

56

Response

Successful Response

The response is of type object.