I'm using the REST API to send emails and currently have five test emails. Two of these never go to a 'Queued' status in the Triggered Send definitions after hitting the API, despite getting a 202 Accepted
response. All responses from the API have hasErrors: "false"
and messages: ["Queued"]
in the JSON reply.
I'm testing using curl with the command
curl -i --header "Content-Type: application/json" --header "Authorization: Bearer <token>" --data @key:failing_template.json https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:failing_template/send
and with the following data in the file failing_template.json
{
"To": {
"Address": "[email protected]",
"SubscriberKey": "[email protected]",
"ContactAttributes": {
"SubscriberAttributes": {
"MemberFirstName": "Test Firstname",
"MemberLastName": "Test Lastname",
"SomeAmount": 123.45
}
}
}
}
There's pretty much no difference between what I'm sending for API calls which actually end up sending an email and ones that don't.
Things I've checked
- Triggered Send has any changes published and is started.
- External Key in the Triggered Send matches the
key
value in the API URL. - Triggered Send is associated with the correct DE.
- All data sent has correct names and values for the DE associated with the Triggered Send.
- Changing the external key of the triggered send and saving and publishing changes.
Similar to this question, which appears to not have been resolved either