Hello RonaldA9,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
This error appears to be due to an issue that we recently started receiving reports of regarding Custom Fields no longer accepting blank values in V3 API requests. Currently our engineering team is looking into the root cause of this new behavior and how to best address it on our end.
In the meantime, what we suggest as a workaround is to programmatically check the Custom Field values in your payload before sending a request, and if the string is empty, either remove the field from the request or replace the empty string with null.
Example (before):
{"email_address": "jdodge@example.com",
"list_memberships": [ "07936f78-662a-11eb-af0a-fa163e56c9b0" ],
"custom_fields": [
{"custom_field_id": "1618ae62-4752-11e9-9c8a-fa163e6b01c1", "value": "Saturday" },
{"custom_field_id": "3fa85f64-5717-4562-b3fc-2c963f66afa", "value": "" }
] }
Updated Example (adding null):
{"email_address": "jdodge@example.com",
"list_memberships": [ "07936f78-662a-11eb-af0a-fa163e56c9b0" ],
"custom_fields": [
{"custom_field_id": "1618ae62-4752-11e9-9c8a-fa163e6b01c1", "value": "Saturday" },
{"custom_field_id": "3fa85f64-5717-4562-b3fc-2c963f66afa", "value": null }
] }
Updated Example (removing custom field):
{"email_address": "jdodge@example.com",
"list_memberships": [ "07936f78-662a-11eb-af0a-fa163e56c9b0" ],
"custom_fields": [
{"custom_field_id": "1618ae62-4752-11e9-9c8a-fa163e6b01c1", "value": "Saturday" }
] }
We will be sure to follow up on this thread as soon as we have an update for this issue.
Please have a look and let us know if you have any other questions!
Regards,
... View more