I try to send multiple message using REST to this url :
https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:{key}/send.
My json look like this :
[
{
"From": {},
"To":
{
"Address": "[email protected]",
"ContactAttributes": {
"SubscriberAttributes": {
"Brand_Code": "BM",
"Country_Code": "GB",
"EmailAddress": "[email protected]",
"Email_Opt_In_Country": "GB",
"Email_Opt_In_Date": "2019-04-04",
"Email_Opt_In_Location": "IN PERSON STORE",
"Email_Opt_In_Source": "CGD",
"Email_Opt_Status": "ACTIVE",
"Email_Preference_1": "Y",
"First_Name": "Bmtest1",
"Gender": "M",
"Language_Preference": "UK_en",
"Last_Name": "BMTEST1",
"Original_Source_System_Name": "CGD",
"Source_Customer_Create_Date": "2019-04-04",
"Source_Customer_id": "U49T000000021",
"Source_System_Name": "CGD"
}
},
"SubscriberKey": "[email protected]"
}
},
{
"From": {},
"To":
{
"Address": "[email protected]",
"ContactAttributes": {
"SubscriberAttributes": {
"Brand_Code": "BM",
"Country_Code": "GB",
"EmailAddress": "[email protected]",
"Email_Opt_In_Country": "GB",
"Email_Opt_In_Date": "2019-04-04",
"Email_Opt_In_Location": "IN PERSON STORE",
"Email_Opt_In_Source": "CGD",
"Email_Opt_Status": "ACTIVE",
"Email_Preference_1": "Y",
"First_Name": "Bmtest2",
"Gender": "F",
"Language_Preference": "UK_en",
"Last_Name": "BMTEST2",
"Original_Source_System_Name": "CGD",
"Source_Customer_Create_Date": "2019-04-04",
"Source_Customer_id": "U49T000000022",
"Source_System_Name": "CGD"
}
},
"SubscriberKey": "[email protected]"
}
}
]
It look good for me, but, i always have this message:
{"message":"Problem initating message send during deserialization of JSON payload.","errorcode":10004,"documentation":""}
I saw the other responses, but i checked everything and it seem good. when i send one message, it work perfectly, i only have this when i want to send multiple message.
Can someone help me ?