Siebel REST API Guide > Using the Siebel REST API > Using the Siebel REST API to Access Siebel Business Services >

Querying for a Siebel CRM Business Service


You can query for a Siebel CRM business service by sending an HTTP POST request to the resource's URI. When you query for a Siebel CRM business service, you must include the business service argument values in URI and the query parameters in the request body.

The following details are for a request to query for a business service on the Siebel CRM Server:

  • URI: http://ServerName:port/siebel-rest/v1.0/service/Siebel Account/QueryByExample?PageSize=2&ViewMode=All
  • HTTP Method: POST
  • Content-Type: application/json
  • Authorization: Basic
  • Request body:

{
  "body":{
    "StartRowNum": "0",
      "SiebelMessage":{
        "MessageId":"",
        "MessageType":"Integration Object",
        "IntObjectName":"Account Interface",
        "IntObjectFormat":"Siebel Hierarchical",
        "ListOfAccount Interface":{
        "Account":{"Name": "3Com" }
        }
     }
   }
}

The following are the details for the response to a successful request:

  • HTTP Code: 200
  • Content-Type: application/json
  • Response body:

{
  "items": {
    "Business Address": {
      "Address Id": "1-6NMY+C",
      "Street Address": "2000 West Embarcadero Rd",
      "Address Integration Id": "",
      "County": "",
      "Street Address 2": "",
      "City": "Palo Alto",
      "State": "CA",
      "Country": "USA",
      "Postal Code": "94510",
      "Province": "",
      "IsPrimaryMVG": "Y"
      },
     "Related Sales Rep": [
     {
      "IsPrimaryMVG": "Y",
      "Division": "IF 20 Commercial Banking",
      "Position Id": "1-1JD",
      "Position": "IF 20 33 Relationship Manager",
      "Position Integration Id": "",
      "Login": "FINADMIN"
       },
    {
      "IsPrimaryMVG": "N",
      "Division": "Siebel Administration",
      "Position Id": "0-5220",
      "Position": "Siebel Administrator",
      "Position Integration Id": "",
      "Login": "SADMIN"
      }
    ],
    "Related Contact": [
    {
      "Contact Id": "88-23SUX",
      "First Name": "Selfservice",
      "Contact Integration Id": "",
      "Middle Name": "",
      "Last Name": "Merchant",
      "Primary Organization": "Comms-Media Default Organization (COM ENU)",
      "Person UId": "88-23SUX"
      },
    {
      "Contact Id": "1-6S9M",
      "First Name": "Avo",
      "Contact Integration Id": "",
      "Middle Name": "",
      "Last Name": "Sarkissian",
      "Primary Organization": "Default Organization",
      "Person UId": "1-6S9M"
      },
    {
      "Contact Id": "1-BAEL",
      "First Name": "Todd",
      "Contact Integration Id": "",
      "Middle Name": "",
      "Last Name": "What",
      "Primary Organization": "Default Organization",
      "Person UId": "1-BAEL"
    },
    {
      "Contact Id": "1-BAER",
      "First Name": "Walter",
      "Contact Integration Id": "",
      "Middle Name": "",
      "Last Name": "What",
      "Primary Organization": "Default Organization",
      "Person UId": "1-BAER"
      }
    ],
    "Related Organization": {
      "IsPrimaryMVG": "Y",
      "Organization": "Millennium Institutional Finance Services IF ENU",
      "Organization Id": "1-1DG",
      "Organization Integration Id": ""
      },
      "Account Id": "1-63Q9",
      "Account Status": "Active",
      "Parent Account Integration Id": "",
      "Number of Employees": "0",
      "PO Auto Approval Date": "",
      "Name": "3Com",
      "PO Approved Flag": "",
      "Integration Id": "",
      "VAT registration number": "",
      "Assignment Country Code": "",
      "Parent Account Id": "",
      "Skip Credit Check": "N",
      "Price List": "",
      "Price List Id": "",
      "Price List Integration Id": "",
      "PO Auto Approval Limit": "",
      "Main Fax Number": "6505551212",
      "Assignment Area Code": "",
      "Alias": "",
      "Competitor Flag": "N",
      "Global Ultimate DUNS": "",
      "PO Auto Approval Currency Code": "",
      "Parent HQ DUNS": "",
      "Parent Account Location": "",
      "DUNS Number": "",
      "Credit Auto Approval Limit": "0",
      "Main Phone Number": "6505551212",
      "Parent Account Name": "",
      "Location": "HQ-Distribution",
      "Expertise": "",
      "Primary Organization": "Millennium Institutional Finance Services IF ENU",
      "Type": "Customer",
      "Home Page": "3COM.com",
      "Domestic Ultimate DUNS": "",
      "Credit Status Date": "",
      "Currency Code": "USD",
      "Partner Flag": "N"
    }
}

Siebel REST API Guide Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.