I’m trying to send specific order information to a webhook url when the order is fulfilled.
The Trigger I have is ‘Fulfillment created’
Then a check for the specific order tag.
Then the action is Send HTTP request.
Sending a POST to my webhook url.
Only Header I have is Content-Type and application/json.
In the body I have:
{
“orderTags”: {% for tags_item in order.tags %} “{{tags_item}}” {% endfor %}
}
Getting this error:
The request was unsuccessful
{“status”:400,“response_body”:“Unexpected string in JSON at position 42”,“verb”:“POST”,“url”:“https://hook.us1.make.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,“request_body”:“{\n"orderTags": "DC Number Seven System" "DRAFTORDER" \n}”}
(I changed the actual webhookurl)
Not sure if I need to format the tags with split or splice? Any help is appreciated!