Merge members into a profile list & trigger SMS messages to them (HA Async Merge Trigger SMS)
Use this interface to merge members into a profile list and trigger SMS messages to them.
Service URL:
/rest/haAsyncApi/v1.3/campaigns/{campaignName}/sms
Required Path Parameters:
campaignName
- Name of the SMS campaign to be sent to the recipients.
Request Method:
POST
Request Header:
Authorization=<AUTH_TOKEN>
Content-Type=application/json
Request Body Properties:
mergeTriggerRecordData
– Record data that represents Field Names and Values for the recipient. For more information, see the standard Merge Trigger SMS request example.
mergeRule
– Merge rule used to merge recipient records in a Profile List. Only used during the merge operation. For more information, see the standard Merge Trigger SMS request example.
Sample Request Body:
{
"mergeTriggerRecordData": {
"mergeTriggerRecords": [{
"fieldValues": [
"mdi1234@foobar.com",
"martiness",
"6505551212",
"US"
],
"optionalData": [{
"name": "FIRST_NAME",
"value": "jim_1"
},
{
"name": "LAST_NAME",
"value": "smith_1"
}
]
},
{
"fieldValues": [
"mdi.1234@foobarcorp.com",
"concord",
"6505551212",
"US"
],
"optionalData": [{
"name": "FIRST_NAME",
"value": "jim_2"
},
{
"name": "LAST_NAME",
"value": "smith_2"
}
]
}
],
"fieldNames": [
"EMAIL_ADDRESS_",
"CITY_",
"MOBILE_NUMBER_",
"MOBILE_COUNTRY_"
]
},
"mergeRule": {
"htmlValue": "H",
"matchColumnName1": "EMAIL_ADDRESS_",
"matchColumnName2": null,
"optoutValue": "O",
"insertOnNoMatch": true,
"defaultPermissionStatus": "OPTIN",
"rejectRecordIfChannelEmpty": "E",
"optinValue": "I",
"updateOnMatch": "REPLACE_ALL",
"textValue": "T",
"matchOperator": "NONE"
}
}
Sample Response:
NOTES:
- A successful response for the asynchronous API returns an HTTPS status code of 202 Accepted.
- A successful response returns a requestId, to be used in the Polling API endpoint to retrieve the status of your request.
- See Common error responses for the Asynchronous API for details about the error responses.
{
"requestId": "eUYycDdoOjoxNTU2MDEwODEz",
"apiName": "HaAsyncMergeTriggerEmail",
"status": "REQUEST_ACCEPTED",
"links": [
{
"rel": "self",
"href": "/rest/haAsyncApi/v1.3/campaigns/campTest/email",
"method": "POST"
},
{
"rel": "asyncResponse",
"href": "/rest/haAsyncApi/v1.3/requests/eUYycDdoOjoxNTU2MDEwODEz",
"method": "GET"
}
]
}
Merge members into a profile list & trigger SMS messages to them (HA Merge Trigger SMS)