All Classes Pages
GetCustomerNotesExamples Class Reference

More...

Detailed Description

Examples for GET customer notes

Example 1 - Get all notes of a customer

This example demonstrates the following:

  • Get all the notes of a customer.

XML

Request

Method URL
GET /ws/v12/interaction/customer/1889/note

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:notes
    xmlns="http://bindings.egain.com/ws/model/v12/gen/platform"
    xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/common"
    xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/interaction/notes">
    <ns3:note id="1507">
        <ns3:created date="2019-04-11T09:41:28.000Z">
            <ns2:user id="1013">
                <name>Jhon Wick</name>
                <firstName>Jhon</firstName>
                <lastName>Wick</lastName>
            </ns2:user>
        </ns3:created>
        <ns3:content>KYC details of customer need to be updated first before entertaining any request.</ns3:content>
        <ns3:link rel="self" href="/system/ws/v12/interaction/customer/1889/note/1507"/>
    </ns3:note>
    <ns3:note id="1508">
        <ns3:created date="2019-04-11T09:45:28.000Z">
            <ns2:user id="1013">
                <name>Jhon Wick</name>
                <firstName>Jhon</firstName>
                <lastName>Wick</lastName>
            </ns2:user>
        </ns3:created>
        <ns3:content>KYC details of the customer is now updated. Now service requests can be entertained.</ns3:content>
        <ns3:link rel="self" href="/system/ws/v12/interaction/customer/1889/note/1508"/>
    </ns3:note>
</ns3:notes>

     


JSON

Request

Method URL
GET /ws/v12/interaction/customer/1889/note

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
  "note": [
     {
      "created": {
        "user": {
          "name": "Jhon Wick",
          "firstName": "Jhon",
          "lastName": "Wick",
          "id": 1013
        },
        "date": "2019-04-09T07:25:46.000Z"
      },
      "content": "KYC details of customer need to be updated first before entertaining any request.",
      "link": [
        {
          "rel": "self",
          "href": "/system/ws/v12/interaction/customer/1889/note/1507"
        }
      ],
      "id": 1507
    },
    {
      "created": {
        "user": {
          "name": "Jhon Wick",
          "firstName": "Jhon",
          "lastName": "Wick",
          "id": 1013
        },
        "date": "2019-04-09T07:25:47.000Z"
      },
      "content": "KYC details of the customer is now updated. Now service requests can be entertained.",
      "link": [
        {
          "rel": "self",
          "href": "/system/ws/v12/interaction/customer/1889/note/1508"
        }
      ],
      "id": 1508
    }
  ]
}