0

I am firing a SYNC message

{
  "To" : [ {
    "Address" : "[email protected]",
    "SubscriberKey" : "test_key",
    "ContactAttributes" : {
      "SubscriberAttributes" : {
        "last_name" : "Kiran",
        "first_name" : "Kumar",
      }
    }
  } ],
  "Options" : {
    "RequestType" : "SYNC"
  }
}

And receiving following response

{
  "requestId" : "test_req_id",
  "responses" : [ {
    "recipientSendId" : "send_id",
    "hasErrors" : false,
    "messages" : [ "Queued" ]
  } ]
}

I am assuming this request is "Queued" (based on response), even though i set request type as "SYNC".

My requirement is to send messages synchronously.

Couple of questions

  1. How can we confirm the request is marked as synchronous.
  2. Is there any issues in above request payload in order to send SYNC messages.
3

1 Answer 1

0

SO I tested this out,

The response you have listed in the valid, sending message response.

If there was an error you would get more detail such as

{
    "To": {
        "Address": "[email protected]",
        "SubscriberKey": "123567",
        "ContactAttributes": {
            "SubscriberAttributes": {
                "First_Name": "Hello"
            }
        }
    },
    "Options": {
        "RequestType": "SYNC"
    }
}

Provides this response due to the emailaddress

{
    "requestId": "4a39d1b6-2a1a-4210-ac3a-0ade1209d790",
    "responses": [
        {
            "recipientSendId": "4a39d1b6-2a1a-4210-ac3a-0ade1209d790",
            "hasErrors": true,
            "messageErrors": [
                {
                    "messageErrorCode": 180008,
                    "messageErrorStatus": "Unable to queue Triggered Send request.  There are no valid subscribers."
                }
            ]
        }
    ]
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .