Closed drbelt27 closed 3 years ago
What are the payloads you are providing?
what is the payload ? sorry :(
sorry in my first message i have paste the incorrect json. you find the correct json below (i use the escape caracter)
{"elementType":"Leads",
"element": "{\"company\":\"[text-301]\",\"firstname\":\"[text-302]\",\"lastname\":\"[text-303]\",\"email\":\"[email-497]\",\"phone\":\"[tel-497]\",\"accounttype\":\"[menu-429]\",\"cf_mke_1055\":\"[menu-874]\",\"gdpr_privacypolicy\":\"[acceptance-5]\",\"leadsource\":\"[lead_source]\",\"cf_mke_1056\":\"[language]\"}"
}
I've got the same error.
@drbelt27
Try the below:
{"elementType":"Leads","element":{"company":"[text-301]","firstname":"[text-302]","lastname":"[text-303]","email":"[email-497]","phone":"[tel-497]","accounttype":"[menu-429]","cf_mke_1055":"[menu-874]","gdpr_privacypolicy":"[acceptance-5]","leadsource":"[lead_source]","cf_mke_1056":"[language]"}}
My issue was improperly formatted JSON. Yours is as well.
i ha tried this plugin, but i have the problem i call with basic auth my crm and i setup the json in the plugin but i have returned this error.
error: Array ( [0] => WP_Error Object ( [errors] => Array ( [json-error] => Array ( [0] => 4 )
)
json: {"elementType":"Leads", "element": "{\"company\":\"[text-301]\",\"firstname\":\"[text-302]\",\"lastname\":\"[text-303]\",\"email\":\"[email-497]\",\"phone\":\"[tel-497]\",\"accounttype\":\"[menu-429]\",\"cf_mke_1055\":\"[menu-874]\",\"gdpr_privacypolicy\":\"[acceptance-5]\",\"leadsource\":\"[lead_source]\",\"cf_mke_1056\":\"[language]\"}"}