Jump to content

UpdateClient API Call + Marketingoptin


JonTheWong

Recommended Posts

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
  1. set client to inactive (closed seems harsh, since they might still have a service and are billed)
  2. update "mkaretingoptin = 0"
  3. add note with reason
  • endloop

I'd love to hear how people deal with bounces and if anyone else has this type of problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated