Service Guides for ResourceIQ

Investigate use cases. Find sample scenarios. Learn how your applications can best use ResourceIQ.

Search for a Contact

After you have created a contact (POST /{custid}/contact), you can search for the contact by the contact id. The search will yield the contact object that you have requested, the contact id, any errors and a success flag.

To Search for a Contact (example):

Gather the following information for the request:

  • The customer ID and the API Key.
  • The contact id for the contact.

Request

GET https://sandbox.ebsco.io/rm/rmaccounts/CUSTID/contact/ID

Response

200 OK

{
  "errors": [],
  "contact": {
    "extensionObject": {
      "id": "065cb541-681c-4dd9-a059-e78b72e31bc4",
      "customerId": "123355",
      "status": "active",
      "objectType": "contact",
      "objectDescription": "This is a contact object."
    },
    "contactPoint": {
      "name": "John Frederick",
      "telephone": "1234567890",
      "contactType": "Sales",
      "email": "jFrederick@ebsco.com",
      "description": "This contact point is for a salesperson at EBSCO."
    },
    "organization": {
      "name": "EBSCO Publishing",
      "address": {
        "streetAddress": "1600 Amphitheatre Pkwy",
        "addressLocality": "Mountain View",
        "addressRegion": "CA",
        "addressCountry": "USA",
        "postalCode": "94043"
      }
    },
    "contact": {
      "designation": "sample designation"
    },
    "dateCreated": "2019-01-17T16:32:34.000Z",
    "dateLastUpdated": "2019-01-17T16:32:34.000Z"
  },
  "successful": true
}

For more information on the GET search for contact by id resource, please refer to our interactive or service reference documentation.