We are using Craft CMS and Freeform plugin. Everything was fine before we updated it, now we are moving from API v1 to v3 and an error occurs. When user submits form, he created/updated contact. Now it only updates existing contacts and for new ones we get an error.
Hey @Osetskyi, thank you for posting in our Community!
Please, double-check the payload sent during form submission to ensure it includes all mandatory fields required by the v3 API.
If the payload is correct, verify your API integration settings and check for any validation errors in the API response.
To our top experts, @franksteiner79 and @Lucila-Andimol do you have any recommendations for @Osetskyi matter?
Thank you,
Pam
Looks like all requirement params is present in payload:
{“properties”:{“privacy”:“true”,“air”:“true”,“spend_transportation”:24,“company”:“test”,“country_dropdown”:“United States”,"
“:"some333.test@mail.com”,“spend_execution”:20000,“transportation_execution”:“Medium”,“opp_execution”:5,"
firstname
“:“testing”,“spend_settlement”:20000,“transportation_settlement”:“Low”,“opp_settlement”:9,“setup_cost”:200000,“setup_timeframe”:4,“direction_inbound”:null,“setup_tm”:“Small”,”
lastname
":“test”,“ocean”:null,“directionoutbound”:“true”,“parcel”:“true”,“phone”:“0959379992”,“spend_procurement”:30000,“opp_procurement”:5,“moderail”:null,“road”:“true”,“spend_planning”:10000,“possible_savings”:“Low”,“opp_planning”:11,“old_license_cost”:50000,“speak_with_an_expert_checkbox”:“true”,“title”:“President or VP”,“transportation_procurement”:“High”}}
And as I already noticed - existing contacts updates like expected.
It looks like all the necessary parameters are present in the payload:
{“properties”:{“privacy”:“true”,“air”:“true”,“spend_transportation”:24,“company”:“test”,“country_dropdown”:“United States”,"
“:"some333.test@mail.com”,“spend_execution”:20000,“transportation_execution”:“Medium”,“opp_execution”:5,"
firstname
“:“testing”,“spend_settlement”:20000,“transportation_settlement”:“Low”,“opp_settlement”:9,“setup_cost”:200000,“setup_timeframe”:4,“direction_inbound”:null,“setup_tm”:“Small”,”
lastname
":“test”,“ocean”:null,“directionoutbound”:“true”,“parcel”:“true”,“phone”:“0959379992”,“spend_procurement”:30000,“opp_procurement”:5,“moderail”:null,“road”:“true”,“spend_planning”:10000,“possible_savings”:“Low”,“opp_planning”:11,“old_license_cost”:50000,“speak_with_an_expert_checkbox”:“true”,“title”:“President or VP”,“transportation_procurement”:“High”}}
As I have already noted before, existing contacts are successfully updated.
