Get all channels

get

/crmRestApi/resources/11.13.18.05/channels

Request

Query Parameters
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format: ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables:

    • ChannelEnabledFinder: Finds enabled channels.
      Finder Variables:
      • ChannelVOChannelShortNameAltKey: Finds a channel with the specified alternate key.
        Finder Variables:
        • ChannelShortName; string.
      • DefaultChannelByTypeFinder: Finds a channel with the specified finders.
        Finder Variables:
        • AccountName; string; The name of the channel account.
        • ChannelTypeCd; string; The type of the channel.
      • EnabledChannelByBUAndStripeAndTypeFinder: Finds enabled channels for an application stripe, business unit, and channel type combination.
        Finder Variables:
        • BUOrgId; string; The business unit to filter the search.
        • ChannelTypeCd; string; The channel type to filter the search.
        • StripeCd; string; The application stripe to filter the search.
      • PrimaryKey: Finds a channel with the specified primary key.
        Finder Variables:
        • ChannelId; integer; The unique identifier of the channel.
    • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
    • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

      Example:
      self,canonical
    • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
    • The resource item payload will be filtered in order to contain only data (no links section, for example).
    • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
    • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

      Format: ?q=expression1;expression2

      You can use these queryable attributes to filter this collection resource using the q query parameter:
      • APIId; string; The unique identifier of the channel API.
      • APIPassword; string; The password for the channel API.
      • APIVersion; string; The API version of the channel.
      • AccessToken; string; The access token used for the social channel.
      • AccountName; string; The name of the account associated with the channel.
      • AuthToken; string; The authorization token used for the social channel.
      • AuthenticationURL; string; The uniform resource locator of the channel authentication.
      • AuthorizationURL; string; The uniform resource locator of the channel authorization.
      • BUOrgId; integer; The unique identifier of the business unit associated with the channel.
      • BusinessUnitName; string; The name of the business unit associated with the channel.
      • ChannelId; integer; The unique identifier of the channel.
      • ChannelShortName; string; The short name of the channel.
      • ChannelTypeCd; string; The code indicating the channel type. For example, email, phone, social, and so on. A list of accepted values is defined in the lookup ORA_SVC_CHANNEL_TYPE_CD.
      • CreatedBy; string; The user who created the channel.
      • CreationDate; string; The date when the channel was created.
      • CustomerTypeCd; string; The type of customers expected to send a message to the channel, such as Consumer, Business, or Both.
      • DisplayName; string; The display name of the channel.
      • EnabledFlag; boolean; Indicates whether the channel is active. The default value is true.
      • EndPoint; string; The endpoint of the channel.
      • IncludeSenderEmailFlag; boolean; Indicates whether the sender's email address should be included in the outbound message.
      • IncludeSenderNameFlag; boolean; Indicates whether the sender's name should be included in the outbound message.
      • LastUpdateDate; string; The date when the channel was last updated.
      • LastUpdateLogin; string; The login of the user who last updated the channel.
      • LastUpdatedBy; string; The user who last updated the channel.
      • MultipleMatchesActionCd; string; The action the application should take if multiple matches are found for the message sender, such as Select None or Select First Match.
      • NetworkTypeCd; string; The code indicating the social network of the post. For example, Facebook, Twitter. A list of accepted values is defined in the lookup HZ_INSTANT_MESSENGER_TYPE.
      • NoMatchActionCd; string; The action the application should take if no matches are found for the message sender, such as Nothing or Create Contact.
      • OpenSrCount; integer; The number of service requests that are neither deleted nor closed.
      • OriginalSystemReference; string; The original system of reference for a channel that was imported.
      • Port; string; The port associated with the channel.
      • PrivatePToPAllowedFlag; boolean; Indicates whether the channel allows private messages. The default value is true.
      • PurposeCd; string; The purpose of the channel such as Support, Sales, Inquiry.
      • RefreshToken; string; The refresh token used for the social channel.
      • SourceCd; string; The source interface for the channel creation.
      • StripeCd; string; The code indicating the application stripe of the service request category. A list of accepted values is defined in the lookup ORA_SVC_STRIPE_CD.
      • TokenAccessURL; string; The channel token access URL.
      • TokenRequestURL; string; The URL to pass a token request on the channel.
    • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
    Header Parameters
    • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
    • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

    There's no request body for this operation.

    Back to Top

    Response

    Supported Media Types

    Default Response

    The following table describes the default response for this task.
    Headers
    • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
    • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
    Body ()
    Root Schema : channels
    Type: object
    Show Source
    Nested Schema : Items
    Type: array
    Title: Items
    The items in the collection.
    Show Source
    Nested Schema : channels-item-response
    Type: object
    Show Source
    • Title: Access Token
      Maximum Length: 400
      The access token used for the social channel.
    • Title: Account Name
      Maximum Length: 400
      The name of the account associated with the channel.
    • Title: API
      Maximum Length: 400
      The unique identifier of the channel API.
    • Title: API Password
      Maximum Length: 400
      The password for the channel API.
    • Title: API Version
      Maximum Length: 400
      The API version of the channel.
    • Title: Authentication URL
      Maximum Length: 1000
      The uniform resource locator of the channel authentication.
    • Title: Authorization URL
      Maximum Length: 1000
      The uniform resource locator of the channel authorization.
    • Title: Authorization Token
      Maximum Length: 400
      The authorization token used for the social channel.
    • Title: Business Unit ID
      The unique identifier of the business unit associated with the channel.
    • Title: Business Unit Name
      Maximum Length: 255
      The name of the business unit associated with the channel.
    • Title: Channel
      Read Only: true
      The unique identifier of the channel.
    • Title: Channel Code
      Maximum Length: 450
      The short name of the channel.
    • Title: Channel Type
      Maximum Length: 30
      The code indicating the channel type. For example, email, phone, social, and so on. A list of accepted values is defined in the lookup ORA_SVC_CHANNEL_TYPE_CD.
    • Read Only: true
      The code indicating the channel type. For example, email, phone, social, and so on. A list of accepted values is defined in the lookup ORA_SVC_CHANNEL_TYPE_CD.
    • Title: Created By
      Read Only: true
      Maximum Length: 64
      The user who created the channel.
    • Title: Creation Date
      Read Only: true
      The date when the channel was created.
    • Title: Customer Type
      Maximum Length: 30
      The type of customers expected to send a message to the channel, such as Consumer, Business, or Both.
    • Read Only: true
      Indicates if the channel has been deleted. The default value is false.
    • Title: Display Name
      Maximum Length: 400
      The display name of the channel.
    • Title: Active
      Maximum Length: 1
      Default Value: true
      Indicates whether the channel is active. The default value is true.
    • Title: Endpoint
      Maximum Length: 1000
      The endpoint of the channel.
    • Title: Include Sender Email
      Maximum Length: 1
      Default Value: false
      Indicates whether the sender's email address should be included in the outbound message.
    • Title: Include Sender Name
      Maximum Length: 1
      Default Value: false
      Indicates whether the sender's name should be included in the outbound message.
    • Title: Last Updated Date
      Read Only: true
      The date when the channel was last updated.
    • Title: Last Updated By
      Read Only: true
      Maximum Length: 64
      The user who last updated the channel.
    • Title: Last Update Login
      Read Only: true
      Maximum Length: 32
      The login of the user who last updated the channel.
    • Links
    • Title: If Multiple Matches Found for Sender
      Maximum Length: 30
      The action the application should take if multiple matches are found for the message sender, such as Select None or Select First Match.
    • Title: Network
      Maximum Length: 30
      The code indicating the social network of the post. For example, Facebook, Twitter. A list of accepted values is defined in the lookup HZ_INSTANT_MESSENGER_TYPE.
    • Title: If No Matches Found for Sender
      Maximum Length: 30
      The action the application should take if no matches are found for the message sender, such as Nothing or Create Contact.
    • Read Only: true
      The number of service requests that are neither deleted nor closed.
    • Title: Original System
      Maximum Length: 255
      The original system of reference for a channel that was imported.
    • Title: Port
      Maximum Length: 10
      The port associated with the channel.
    • Title: Private Conversation Allowed
      Maximum Length: 1
      Default Value: true
      Indicates whether the channel allows private messages. The default value is true.
    • Title: Purpose
      Maximum Length: 30
      The purpose of the channel such as Support, Sales, Inquiry.
    • Title: Refresh Token
      Maximum Length: 400
      The refresh token used for the social channel.
    • Channel Resources
      Title: Channel Resources
      The channel resources is used to view, create, update, and delete the list of employees or partners, such as service representatives or service managers, who are associated with a service channel. If a resource is associated with a channel, then they can communicate with the customer using that channel.
    • Sender Identification Priorities
      Title: Sender Identification Priorities
      The sender identification priorities resource is used to view, create, update, and delete identification priorities for channels.The sender identification priority is used to resolve a conflict if multiple party identifiers are found for a sender of a message.
    • Title: Source Code
      Maximum Length: 30
      Default Value: ORA_SVC_ADMIN_UI
      The source interface for the channel creation.
    • Title: Stripe Code
      Maximum Length: 30
      The code indicating the application stripe of the service request category. A list of accepted values is defined in the lookup ORA_SVC_STRIPE_CD.
    • Title: Token Access URL
      Maximum Length: 1000
      The channel token access URL.
    • Title: Token Request URL
      Maximum Length: 1000
      The URL to pass a token request on the channel.
    • Read Only: true
      Indicates if the channel has been updated. The default value is false.
    Nested Schema : Channel Resources
    Type: array
    Title: Channel Resources
    The channel resources is used to view, create, update, and delete the list of employees or partners, such as service representatives or service managers, who are associated with a service channel. If a resource is associated with a channel, then they can communicate with the customer using that channel.
    Show Source
    Nested Schema : Sender Identification Priorities
    Type: array
    Title: Sender Identification Priorities
    The sender identification priorities resource is used to view, create, update, and delete identification priorities for channels.The sender identification priority is used to resolve a conflict if multiple party identifiers are found for a sender of a message.
    Show Source
    Nested Schema : channels-resourceMembers-item-response
    Type: object
    Show Source
    Nested Schema : channels-senderIdentificationPriorities-item-response
    Type: object
    Show Source
    Back to Top

    Examples

    Use GET with the following URI syntax to get details of all channels:

    Example of Request URI

    The following shows an example of the request URL.

    https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels
    

    Example of Request Header

    The following shows an example of the request header.

    GET /crmRestApi/resources/11.13.18.05/channels/ HTTP/1.1
    HOST: servername.fa.us2.oraclecloud.com
    authorization: Basic U0FMRVNfQURNSU46V2VsY29tZTE=
    content-type: application/vnd.oracle.adf.resourceitem+json
    

    Example of Response Header

    The following shows an example of the response header.

    HTTP/1.1 200: OK
    Date: Mon, 12 Jan 2017 12:37:04 GMT
    Server: Oracle-HTTP-Server-11g
    Content-Type: application/vnd.oracle.adf.resourceitem+json
    Content-Language: en
    

    Example of Response Body

    The following shows an example of the response body in JSON format.

    {
    {
    "items": [
      {
    "ChannelId": 1,
    "ChannelTypeCd": "ORA_SVC_WEB",
    "NetworkTypeCd": null,
    "AccountName": "Web",
    "DisplayName": "Web (Seeded)",
    "PrivatePToPAllowedFlag": true,
    "OriginalSystemReference": null,
    "EnabledFlag": true,
    "CreatedBy": "SEED_DATA_FROM_APPLICATION",
    "CreationDate": "2015-07-09T10:14:09-07:00",
    "LastUpdatedBy": "SEED_DATA_FROM_APPLICATION",
    "LastUpdateDate": "2016-09-19T10:28:43-07:00",
    "LastUpdateLogin": "-1",
    "EndPoint": null,
    "Port": null,
    "APIVersion": null,
    "APIId": null,
    "APIPassword": null,
    "AuthenticationURL": null,
    "AuthorizationURL": null,
    "TokenRequestURL": null,
    "TokenAccessURL": null,
    "AccessToken": null,
    "RefreshToken": null,
    "AuthToken": null,
    "OpenSrCount": 1,
    "ChannelTypeCdLovSwitcher": "LOV_ChannelTypeCd",
    "StripeCd": "ORA_SVC_CRM",
    "links": [
      {
    "rel": "self",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1",
    "name": "channels",
    "kind": "item",
    "properties": {
    "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787200106A6176612E6C616E672E4F626A656374000000000000000000000078700000000178"
    }
    },
      {
    "rel": "canonical",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1",
    "name": "channels",
    "kind": "item"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1/lov/YesNoLOV",
    "name": "YesNoLOV",
    "kind": "collection"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1/lov/NetworkTypeCdLOV",
    "name": "NetworkTypeCdLOV",
    "kind": "collection"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1/lov/StripeCdLOV",
    "name": "StripeCdLOV",
    "kind": "collection"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1/lov/ChannelTypeCdLOV",
    "name": "ChannelTypeCdLOV",
    "kind": "collection"
    },
      {
    "rel": "child",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/1/child/resourceMembers",
    "name": "resourceMembers",
    "kind": "collection"
    }
    ],
    },
      {
    "ChannelId": 2,
    "ChannelTypeCd": "ORA_SVC_EMAIL",
    "NetworkTypeCd": null,
    "AccountName": "E-Mail",
    "DisplayName": "E-Mail (Seeded)",
    "PrivatePToPAllowedFlag": true,
    "OriginalSystemReference": null,
    "EnabledFlag": true,
    "CreatedBy": "SEED_DATA_FROM_APPLICATION",
    "CreationDate": "2015-07-09T10:14:09-07:00",
    "LastUpdatedBy": "SEED_DATA_FROM_APPLICATION",
    "LastUpdateDate": "2016-09-19T10:28:43-07:00",
    "LastUpdateLogin": "-1",
    "EndPoint": null,
    "Port": null,
    "APIVersion": null,
    "APIId": null,
    "APIPassword": null,
    "AuthenticationURL": null,
    "AuthorizationURL": null,
    "TokenRequestURL": null,
    "TokenAccessURL": null,
    "AccessToken": null,
    "RefreshToken": null,
    "AuthToken": null,
    "OpenSrCount": 1,
    "ChannelTypeCdLovSwitcher": "LOV_ChannelTypeCd",
    "StripeCd": "ORA_SVC_CRM",
    "links": [
      {
    "rel": "self",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2",
    "name": "channels",
    "kind": "item",
    "properties": {
    "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787200106A6176612E6C616E672E4F626A656374000000000000000000000078700000000178"
    }
    },
      {
    "rel": "canonical",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2",
    "name": "channels",
    "kind": "item"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2/lov/YesNoLOV",
    "name": "YesNoLOV",
    "kind": "collection"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2/lov/NetworkTypeCdLOV",
    "name": "NetworkTypeCdLOV",
    "kind": "collection"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2/lov/StripeCdLOV",
    "name": "StripeCdLOV",
    "kind": "collection"
    },
      {
    "rel": "lov",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2/lov/ChannelTypeCdLOV",
    "name": "ChannelTypeCdLOV",
    "kind": "collection"
    },
      {
    "rel": "child",
    "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/channels/2/child/resourceMembers",
    "name": "resourceMembers",
    "kind": "collection"
    }
    ],
    },
      . . .
    }
    }
    
    Back to Top