JonTheWong Posted November 4, 2019 Share Posted November 4, 2019 Hello, During my process of developing a python api client for WHMCS that would get bounce feedback from Sendgrid and then UpdateClient. I'm using this method to make sure clients have valid emails. Even after the email confirmation that WHMCS provides their emails can get stale or even bounce back due to RBL etc. Right now I'm looping bounce data from Sendgrid and using the "UpdateClient" api call. https://developers.whmcs.com/api-reference/updateclient/ When i update the client i can't seem to set "marketingoption" to False or None. I did manage to pass a '0' value and it resolved my issue. I did not get any feedback from the api in the response on why even with skipvalidation to false. I think it might be useful to add that tidbit in the documentation, until then, figured i'd post it here for reference. As an overview here is my flow. Client signup Receives confirmation email Accepts marketing emails / optin X time goes by SendGrid starts giving you email Bounce reports Loop into the bounces and UpdateClient set client to inactive (closed seems harsh, since they might still have a service and are billed) update "mkaretingoptin = 0" add note with reason endloop I'd love to hear how people deal with bounces and if anyone else has this type of problem. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.