I have been fighting this for a week and cant seem to find the answer...have been on phone with GetResponse tech group with no luck. I am simply trying to send user info from my machform to GetResponse but keep getting error message:
"Error Sending Webhooks! Error Code: (400)string(312) "{ "httpStatus": 400, "code": 1001, "codeDescription": "Resource that is related to given resource cannot be found", "message": "Given campaign is invalid", "moreInfo": "https://apidocs.getresponse.com/en/v3/errors/1001", "context": [], "uuid": "xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx" }"
I have verified the campaign...thinking it may be syntax but cant seem to figure it out
I have done this with MailChimp with no problems but cant crack the GetResponse format.
Here is the code I am using per GetResponse (https://apidocs.getresponse.com/v3/resources/contacts)
website url:
https://api.getresponse.com/v3/contacts
http post - custom header info:
{
"Content-Type": "application/json",
"X-Auth-Token": "api-key xxxxxxxxxxxxxxxxxxxxxxxxx"
}
raw data info:
{
"name": "{element_1}",
"email": "{element_2}",
"dayOfCycle": "0",
"campaign": {
"campaignId": "xxxxxx"
}
}
Any help would be greatly appreciated