State Synchronization
    • Dark
      Light

    State Synchronization

    • Dark
      Light

    Article summary

    Overview

    This API provides the current state values.

    Pre-requisite

    The application registration process must be completed.

    Sequence Diagram

    Message Structure

    Request Parameters

    Value

    channel

    LCM

    topic

    Webservice

    subtopic

    StateSync

    source

    «app-name-broadcasting-this-message»

    data

    Not applicable

    Response Parameters

    Value

    channel

    LCM

    topic

    WebService

    subtopic

    StateSync

    message

    «call details JSON Object»

    Message Parameters

    Response Parameter

    Mandatory

    Data Type

    Description

    callid

    Yes

    String

    The Call ID generated by the application.

    businessfields

    Yes

    JSON Array

    The values for the business fields.

    optionalbusinessfields

    Yes

    JSON Object

    The values for the optional business fields.

    campaignmodes

    No

    JSON Object

    The Campaign modes for the call.

    modeid

    Yes

    String

    The mode ID.

    Description

    Yes

    String

    The mode description.

    MinLength

    Yes

    Number

    The minimum mode value length.

    MaxLength

    Yes

    Number

    The maximum mode value length.

    Cvalue

    Yes

    String

    The customer phone number - that is, the contact value.

    PEWC

    Yes

    Boolean

    Whether the contact is a global PEWC contact or not.

    CampaignPEWC

    Yes

    Boolean

    Whether the contact is a campaign PEWC contact or not.

    Sample Request

    {
        "channel": "LCM",
        "topic": "WebService",
        "subtopic": "StateSync",
        "source": "myapp"
    }

    Sample Response

     {
        "channel": "LCM",
        "topic": "WebService",
        "subtopic": "StateSync",
        "message": [
            {
                "callid": "12345",
                "campaignmodes": [
                    {
                        "ModeID": "1",
                        "Description": "Home",
                        "ChannelType": "2",
                        "MinLength": "8",
                        "MaxLength": "12",
                        "Cvalue": null,
                        "PEWC": false,
                        "CampaignPEWC": false
                    }
                ],
                "optionalbussinessfields": {
                    "FName": "David1",
                    "LName": "Berry",
                    "Address": "Virginia",
                    "Country": "USA",
                    "Home": "6491462346",
                    "Office": "6591462346",
                    "Mobile": "6591462346"
                }
            },
            {
                "callid": "67890",
                "campaignmodes": [
                    {
                        "ModeID": "1",
                        "Description": "Home",
                        "ChannelType": "2",
                        "MinLength": "8",
                        "MaxLength": "12",
                        "Cvalue": null,
                        "PEWC": false,
                        "CampaignPEWC": false
                    }
                ]
            }
        ]
    }


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.