Whenever any of your subscribers change their email, use this endpoint to update it into Taag (we use emails to send invoices, receipts, etc)
https://api.taag.cc/v1/subscribers/update/email
Authorization
All you need is to include your secret key as a value of authorization in the header and hit the endpoint above.
Authorization: taag_sk_mode_xxxxxxxxx
Use the secret key that matches the mode you are in TEST or LIVE
Request body
{
"subscriberId": "f3a5e5afda82acd2569415e869193d9d",
"newEmail": "[email protected]"
}
Use the subscriberId you received from us on get subscribers endpoint or the subscriber you received from our webhook on the subscriber creation
The new email of the subscriber
Response
When successful you will receive this response:
{
"message": "Subscriber email updated successfully",
"mode": "TEST",
"subscriber": {
"email": "[email protected]",
"subscriberId": "f3a5e5afda82acd2569415e869193d9d"
}
}