openapi: 3.2.0
info:
title: REST API for Oracle Responsys Marketing Cloud Service Merge Trigger SMS API
version: 2023.03.03
description: 'REST API for Oracle Responsys Marketing Cloud Service
Learn more about Responsys APIs in this video and download the Responsys API Brochure.
'
x-summary: REST API for Oracle Responsys Marketing Cloud Service Learn more about Responsys APIs in this video and download the Responsys API Brochure.
servers:
- url: https://login5.responsys.net/rest/api/v1.3
tags:
- name: Merge Trigger SMS
description: Merge Members to a Profile List and Send Responsys SMS Campaigns to them
paths:
/rest/api/v1.3/campaigns/{campaignName}/sms:
post:
summary: Merge Trigger SMS
operationId: post /rest/api/v1.3/campaigns/{campaignName}/sms
responses:
default:
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/triggerSmsResponse'
parameters:
- name: campaignName
in: path
description: Campaign Name
required: true
schema:
type: string
x-relation:
- mergeTriggerSMS
tags:
- Merge Trigger SMS
x-internal-id: rest-api-v1.3-campaigns-{campaignName}-sms-post
x-filename-id: rest-api-v1.3-campaigns-campaignname-sms-post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/mergeTriggerSMS'
description: Request Body
components:
schemas:
mergeTriggerSMS:
title: Merge Trigger SMS
type: object
properties:
mergeTriggerRecordData:
description: Record data that represents Field Names and corresponding values for the recipient.
required:
- mergeTriggerRecords
- fieldNames
type: object
properties:
mergeTriggerRecords:
type: array
description: Array of values corresponding to the fieldNames. Each element in the array represents a single recipient.
items:
type: object
properties:
fieldValues:
type: array
description: Values corresponding to the fieldNames.
items:
type: string
optionalData:
type: array
description: Optional data containing array of name value pairs.
items:
type: object
properties:
name:
type: string
value:
type: string
fieldNames:
type: array
description: Field Names in the Profile List. Note MOBILE_NUMBER_ must be specified in the E.164 format.
items:
type: string
mergeRule:
description: Merge rule used to merge recipient records in a Profile List. Only used during the merge operation.
type: object
properties:
rejectRecordIfChannelEmpty:
type: string
description: String containing comma-separated channel codes that if specified will result in record rejection when the channel address field is null. Channel codes are 'E' (SMS), 'M' (Mobile), 'P' (Postal Code). For example 'E,M' would indicate that a record that has a null for SMS or Mobile Number value should be rejected. This parameter can also be set to null or to an empty string, which will cause the validation to not be performed for any channel, except if the matchColumnName1 parameter is set to EMAIL_ADDRESS_ or MOBILE_NUMBER_. When matchColumnName1 is set to EMAIL_ADDRESS_ or MOBILE_NUMBER_, then the null or empty string setting is effectively ignored for that channel.
htmlValue:
type: string
description: Value of incoming preferred email format data. For example, 'H' may represent a preference for HTML formatted email.
textValue:
type: string
description: Value of incoming preferred email format data. For example, 'T' may represent a preference for Text formatted email.
matchColumnName1:
enum:
- RIID_
- CUSTOMER_ID_
- EMAIL_ADDRESS_
- MOBILE_NUMBER_
- EMAIL_MD5_HASH_
- EMAIL_SHA256_HASH_
type: string
description: First match column for determining whether an insert or update should occur.
insertOnNoMatch:
type: boolean
description: Indicates what should be done for records where a match is not found (true = insert / false = no insert).
optinValue:
type: string
description: Value of incoming opt-in status data that represents an opt-in status. For example, 'I' may represent an opt-in status.
defaultPermissionStatus:
enum:
- OPTIN
- OPTOUT
type: string
description: This value must be specified as either OPTIN or OPTOUT and would be applied to all of the records contained in the API call. If this value is not explicitly specified, then it is set to OPTOUT.
optoutValue:
type: string
description: Value of incoming opt-out status data that represents an optout status. For example, '0' may represent an opt-out status.
matchColumnName2:
enum:
- RIID_
- CUSTOMER_ID_
- EMAIL_ADDRESS_
- MOBILE_NUMBER_
- EMAIL_MD5_HASH_
- EMAIL_SHA256_HASH_
type: string
description: Second match column for determining whether an insert or update should occur. (optional).
updateOnMatch:
enum:
- REPLACE_ALL
- NO_UPDATE
type: string
description: Controls how the existing record should be updated.
matchOperator:
enum:
- NONE
- AND
type: string
description: Operator to join match column names
required:
- mergeTriggerRecordData
- mergeRule
triggerSmsResponse:
title: Trigger SMS Response
type: array
description: Array of Recipient Results.
items:
type: object
description: Response for individual recipient.
properties:
errorMessage:
type: string
description: Error Message, if any, that occurred during the merge or trigger operations.
success:
type: boolean
description: Indicates success or failure.
recipientId:
type: number
description: The Responsys ID (RIID) of the recipient.