Salesforce Marketing Cloud (Exact Target) Integration

This page documents the integration between Kitewheel and Salesforce Marketing Cloud (Exact Target) Integration. The integration uses the REST Web Service Adaptor and the Salesforce Marketing Cloud REST API.   

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/messageDefinitionSends.htm


Token Request Endpoint:

https://auth.exacttargetapis.com/v1/requestToken


Token Request Body:

{
	"clientId":app_param.client_id,
	"clientSecret":app_param.client_secret
}


Send email template endpoint:

https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:%%template_name%%/send


Example body for request:

{
  "From": {
    "Address": from_address,
    "Name": email_template.name
  },
  "To": {
    "Address": user_info.email_address,
    "SubscriberKey": user_info.uuid,
    "ContactAttributes": {
      "SubscriberAttributes": {
        "ExampleAttribute": attributeGoesHere
      }
    }
  },
  "Options": {
    "RequestType": ""
  }
}

Token Request Endpoint:

https://*********-****.auth.marketingcloudapis.com/v2/token

Token Request Body:

{
	"grant_type": "client_credentials",
	"client_id":"****************",
	"client_secret":"****************",
	"account_id":"1234567890"
}

Response Body:

{
	"soap_instance_url": "https://****************-****.soap.marketingcloudapis.com/",
	"access_token": "********",
	"expires_in": 1079,
	"token_type": "Bearer",
	"rest_instance_url": "https://****************-****.rest.marketingcloudapis.com/",
	"scope": "offline automations_execute automations_read automations_write journeys_execute journeys_read journeys_write email_read email_send email_write data_extensions_read data_extensions_write webhooks_read webhooks_write"
}

Privacy Policy
© 2022 CSG International, Inc.