3

I'm getting a successful response (202 code with empty response body), but my email neither sends nor looks to be queued.

POST to https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:expenseit_test_triggered_send/send?access_token=[token]

with headers:

  • Authorization: Bearer [token]
  • Content-Type: application/json

and payload:

{
    "From": {
        "Address": "sender@domain.com", 
        "Name": "Sender"
    }, 
    "To": {
        "Address": "recipient@domain.com", 
        "ContactAttributes": {
            "SubscriberAttributes": {
                "City": "Seatle", 
                "State": "WA"
            }
        }
    }
}

Am I mis-using the endpoint? Is there another endpoint that I should use to verify the status of this message?

2
  • You just receive an Id in the response body for successful Api calls. Your request looks OK. Can you try adding: "Options": { "RequestType": "SYNC" } at the same level as From and To. – Mike Aug 8 '18 at 14:06
  • Please check that Test, Proof or Draft are not in subject or preheader, check if FROM(Address here): is a valid user in marketing cloud. check the structure that @Mac wrote that is correct for POSTMAN test(check if the suscriber already exists in marketing cloud too). – Guillermo Owen Kank Feb 9 at 20:17
1

SubscriberKey is a required property. If there is not a unique ID that is being used for subscribers, then just pass the same value you are passing for Address.

{
    "From": {
        "Address": "sender@domain.com", 
        "Name": "Sender"
    }, 
    "To": {
        "Address": "recipient@domain.com", 
        "SubscriberKey": "recipient@domain.com", 
        "ContactAttributes": {
            "SubscriberAttributes": {
                "City": "Seatle", 
                "State": "WA"
            }
        }
    }
}
6
  • I get the same results with and without the SubscriberKey – Brian Lund Jan 28 '14 at 0:20
  • Any required attributes in the account that aren't being passed in the request? – Mac Jan 28 '14 at 1:52
  • I thought SubscriberKey was optional? Should the docs get updated? – Kelly J Andrews Jan 28 '14 at 13:32
  • How would I tell which attributes are required? And the documentation does indicate that SubscriberKey is optional. – Brian Lund Jan 28 '14 at 17:08
  • 1
    @KellyJAndrews Looks like the documentation was wrong, it is now correct. – Mac Jan 28 '14 at 20:17
0

We just ran into this issue as well. The solution to our problem was actually quite simple, but not obvious. We had to select the template in the admin and hit the "Start/Restart" button. ExactTarget may want to consider throwing a more useful error message here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.