Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created December 11, 2015 17:26
Show Gist options
  • Save wvpv/2126703d470315c83159 to your computer and use it in GitHub Desktop.
Save wvpv/2126703d470315c83159 to your computer and use it in GitHub Desktop.
SFMC Triggered Send SOAP Request
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">Create</a:Action>
<a:MessageID>urn:uuid:9037cc93-13f4-433b-b3f9-250ffa643ea8</a:MessageID>
<a:ReplyTo>
<a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
</a:ReplyTo>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Objects xmlns:q1="http://exacttarget.com/wsdl/partnerAPI" xsi:type="q1:TriggeredSend">
<q1:PartnerKey xsi:nil="true" />
<q1:ObjectID xsi:nil="true" />
<q1:TriggeredSendDefinition>
<q1:PartnerKey xsi:nil="true" />
<q1:ObjectID xsi:nil="true" />
<q1:CustomerKey>TRIGGERED_SEND_EXTERNAL_KEY</q1:CustomerKey>
</q1:TriggeredSendDefinition>
<q1:Subscribers>
<q1:PartnerKey xsi:nil="true" />
<q1:ObjectID xsi:nil="true" />
<q1:EmailAddress>[email protected]</q1:EmailAddress>
<q1:Attributes>
<q1:Name>XML</q1:Name>
<q1:Value><![CDATA[<D><A><N>Coupon Code</N><V>11111111111</V></A></D>]]></q1:Value>
</q1:Attributes>
<q1:Attributes>
<q1:Name>orderstatus</Name>
<q1:Value>received</Value>
</q1:Attributes>
<q1:Attributes>
<q1:Name>orderdate</Name>
<q1:Value>2015-06-30 11:10:36.956</Value>
</q1:Attributes>
<q1:Attributes>
<q1:Name>billmerchant</Name>
<q1:Value>moneris</Value>
</q1:Attributes>
<q1:SubscriberKey>[email protected]</q1:SubscriberKey>
</q1:Subscribers>
</Objects>
</CreateRequest>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment