Notify transaction state API

This API will allow a 3rd party system to invoke this API to asynchronously inform Webex Campaign of the outcome of a specific transaction within a specific deployment.

The API will initially only be available for External Action channel deployments. The 3rd party systems will be able to post the transaction status to this new Notify Transaction State API; which will then allow Webex Campaign to display the External Action Success / Failure counts on the Dashboard.

📘

Based on the domain you use to log in to Webex Campaign, the endpoint domain for your API varies. For more information, refer to the Know Your API Endpoints section.

Go to the Postman Collection section to learn how to import a Postman collection. Click the below button, If you already know how to import a postman collection.

Run In Postman

Headers

The following table describes the request headers:

Request HeaderDescription
content-Typeapplication/json
authorizationAccess token or API Secret Key in Bearer format

Example: Bearer $(key)

Body Parameters

The following table describes the elements in the request body:

ParameterTypeMandatoryDescription
responseStateStringYesSpecifies the response state for the notification. The expected values are:

531 - For Success
532 - For Failure
refTransIdStringYesReference trans id to link back this notification response with the transaction triggered from Webex Campaign.
deploymentIdStringYesSpecifies the deployment ID for the transaction.
responseTimeStringNoThis is used to pass date and time (ISO Date Format) when the response was captured. The format of the date is "yyyy-MM-dd HH:mm:ss".
additionalInfoStringNoSpecifies additional info as key-value pair.

responseCode: (Optional) This is used to pass a response code for the transaction. This value will be shown in the "Action Deployment Response Summary" report and can be used to further understand the state of a transaction. These values can be configured in the Success/ Failure Response section for an External Action. The response code values received in the API request are matched with the values in the External Action Success/ Failure Response Section. If any request does not provide a responseCode value or provides a value not defined in the Action Definition the “Response Description” will be shown as “NOT SPECIFIED” in the report.

responseDesc: (Optional) This is used to pass a response description for the transaction. This value will be shown in the “Action Deployment Response Summary” report and can be used to further understand the state of a transaction. These values can be configured in the Success/ Failure Response section for an External Action. The response code values received in the API request are matched with the values in the External Action Success/ Failure Response Section. If any request does not provide a responseCode value or provides a value not defined in the Action Definition the “Response Description” will be shown as “NOT SPECIFIED” in the report.

Request Example

{ 
    "responseState": "532", 
    "refTransId": "CC02_1605176995001254571",   
    "deploymentId" : "API_1605176965390000881",    
    "additionalInfo" : "{\"responseCode\":\"403\",\"responseDesc\":\"There was an error with the authentication token\"}"
}

Response Parameters

This API will return the following response parameters:

ParameterDescription
codeReturns the response code in case of failure.
descriptionReturns the description of the response in case of failure.
transaction-idReturns the unique Transaction ID of the operation in case of success.

Failure Response Codes

The API will return code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
2001100The Response has been notified successfully
401430Authorization failed. This resource is not allowed to access using this TOKEN or KEY
498Invalid token or Access token expired
405405Method not supported
429429Too many requests. Throttle limit reached for the time window.
499499Request failed. Check the exact reason of failure in application code and description of error stream.
500500Internal server error
1101Mandatory params cannot be null or empty
1102No actions are mapped for the given deployment
1103Action type(sync/async) is not present for the used action
1104Only actions having async types can be used
1105Only onetime and recurring deployments are allowed
1108Only 531 and or 532 response status is allowed
Language