我正在使用Mailchimp API添加新成员。
我定义了一个名为ADDED
的自定义合并字段,这是我将该成员添加到列表中的日期。我希望通过API提交时需要此字段。我将其定义为DD/MM/YYYY
格式(见下文):
这是我的json字符串的样子:
{
"email_address":"email@server.com","status":"subscribed","merge_fields":
{"USERLEVEL":"1","BATCH":"999000","ADDED":"21/04/2020"}
}
如您所见,我的格式的确是`dd / mm / yyyy',但是在提交API请求时,出现了以下错误消息:
**Your merge fields were invalid: Please enter the date**
{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"Your merge fields were invalid.","instance":"1ad6bc0e-7728-45c1-a308-b751247efb5b","errors":[{"field":"ADDED","message":"Please enter the date"}]}
当我的请求中似乎有正确格式的日期时,谁能解释我为什么收到此错误?
谢谢。