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?

  • 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
1

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.

0

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"
            }
        }
    }
}
  • 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

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.