Jump to content

igurman

Retired Forum Member
  • Posts

    1
  • Joined

  • Last visited

About igurman

igurman's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hey guys, so in case somebody else is looking for this.. (I am quite amazed that this is not a built in feature in WHMCS yet.. but oh well): Rusky you can't just paste the webhook URL and expect it to receive parameters, it's PHP code and you need to utilizie it. Here is an example of a hook file, that will send the first & last name of new customers, to your zapier hook: add_hook('ClientAdd', 1, function ($vars) { $userid = $vars['userid']; $firstname = $vars['firstname']; $lastname = $vars['lastname']; // Posting of the info -> Zapier Webhook echo file_get_contents('https://hooks.zapier.com/hooks/catch/WEBHOOK/', false, stream_context_create([ 'http' => [ 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded", 'content' => http_build_query([ 'firstname' => $firstname, 'lastname' => $lastname ]) ] ])); }); So you can adjust it to send whatever parameters you'd like bout your new order. Here you can find the full reference of available parameters. Ilya
×
×
  • 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