Arguments are specific pieces of information you can set within an action. They allow you to send over custom information based on your needs. For Flows automation, all of those will be available directly within the action step. If you are using "Webhooks" in combination with automation services such as Zapier, Pabbly Connect, or Make.com, the argument is the key/value pair within the body of the request. Within JSON strings, the key is the argument, and the value is the argument value (To learn more about the webhooks action parameters, please click here). All of the arguments are available within both the Webhooks and Flows Automations.
The id or email of the related user. (Optional in case affiliate_id is set).
The id or email of the related affiliate. (Optional in case user_id is set).
The ip of the person who should be assigned to the visit. (Will be anonymized in case IP logging is disabled within AffiliateWP).
Set a visit campaign. This can be a identifier you created for a specific project. E.g. Summer Promotion
Some more details of where the user comes from. E.g.: cta-button
A URL the visitor arrived at.
A referral URL from where the visitor came from If nothing is set, it will be counted as direct traffic.
The date and time of creation of the visit. In case nothing is set, the current time is used.
Advanced: Register a custom action after this webhook was fired.
WordPress action callback (Advanced)
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Flows or Webhooks?
While automating, it is crucial that you understand the difference between our Flows feature and Webhooks as it affects the way you work with our product. Below you will find further details of the core differences.
Can receive data from an external URL/API/Webhook to run multiple actions within our plugin (E.g., When a flow was executed, create a user, then the data to Zapier, take the response, and send an email).
Offers bidirectional connections (Can send AND receive data)