This Justuno support article will cover how to submit setup Justuno webhooks
At a glance:
Introduction
General feature overview
Using the JSON editor
Changing the type for a dynamic property
Send checkboxes and multi selects as comma separated string
Using format left or right
Using exist clause on a dynamic property
Introduction
Webhooks are one way that Justuno can send automated messages or information to other apps. You can configure what to send and when to send it and in what format.
General Feature Overview
Supports the following content-type for HTTP body:
Using the JSON Editor
Note: do not rename the dynamic variable. This will cause our parser to fail
Changing the type for a dynamic property
boolean
|
number
|
string
|
boolean
|
false
|
number
|
0.0
|
string
|
empty string or ""
|
Profile Property Types
|
JSON Type Sent
|
boolean
|
boolean
|
date
|
string
|
datetime
|
string
|
short text
|
string
|
long text
|
string
|
radio
|
string
|
single select
|
string
|
checkboxes
|
array of strings
|
multi select
|
array of strings
|
number
|
number
|
currency
|
number
|
json
|
object
|
{
"numberOfSneakersOwned": {{numbersOfSneakersOwned}}
}
{
"numberOfSneakersOwned": {{numbersOfSneakersOwned[format='number']}}
}
Here is a list of our current formatting options you can use with variables in our webhooks:
{{numbersOfSneakersOwned[format='number']}}
{{numbersOfSneakersOwned[format='string']}}
{{someProperty[format='boolean']}}
{{sms[format='right,10']}}
{{zip[format='left,3']}}
NO format type support for cart items dynamic variables and default JSON profile properties which are currently listed below.
- product_id
- variation_id
- sku
- price
- ip_organization
- ip_coordinates
- device_tech
Send checkboxes and multi selects as comma separated string
{
"interests": {{interests[format='comma']}}
}
{
"interests": "nba,shoes,traveling"
}
Using the "comma" format on properties that are not checkboxes or multi select may cause issues. Ensure the property using this format option is a supported type.
Using format left or right
We support the ability to trim the string value starting from the left or right and take x number of characters.
{
"state": {{state[format='left,5']}}
}
{
"state": "Oklah"
}
{
"state": {{state[format='right,7']}}
}
{
"state": "klahoma"
}
Using exist clause on a dynamic property
We support the ability to check if a property exists on the profile. If it does we will include the code in the exist clause. If not, we will remove the code in the exist clause.
We can support multiple exist clause, but we do not support nested exist clauses, i.e. do not place a exist clause inside another exist clause.
{
"email": ,
"name": "John Doe",
"age": "30",
[exist{sms}]
"sms":
[endExist]
}
Scenario 1: the profile doesn't have an sms number. We would remove the sms key and value from the data to be sent.
{
"email": ,
"name": "John Doe",
"age": "30"
}
Scenario 2: the profile does have an sms number. We would include the sms number in the data to be sent
{
"email": ,
"name": "John Doe",
"age": "30",
"sms":
}