Follow

Networth by ContactID Methods '/contacts/{contactid}/networth'

Networth by ContactID Fetch
Method Type: GET

returns the Networth information for a corresponding ContactID

'/contacts/{contactid}/networth'

 

Networth By ContactID Put
Method Type: PUT

Updates the Networth record associated with a ContactID

'/contacts/{contactid}/networth'

 

Networth By ContactID Fetch

 The URI '/contacts/{contactid}/networth', when coupled with Method Type 'GET',  returns the Networth data associated with a specific Contact Record.

https://api2.redtailtechnology.com/crm/v1/rest/contacts/{ContactID}/networth

https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/networth

 

Below is a sample request in C# using our URI, sample credentials, and the method type. The content type "text/json" work equally well.

HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/networth");
req.Headers[System.Net.HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("6C135EDF-C37C-4039-AEF3-5DFC079F9E6A:Statementone:sonedemo"));
req.Method = "GET";
req.ContentType = "text/xml";

//and here's the response stream.
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());

 

The following is a condensed XML response. The XML response will include up to 50 notes per page and provide a total count of the related note records.

 

Networth By ContactID Put

 The URI '/contacts/{contactid}/networth', when coupled with Method Type 'PUT',  updates a contact  record's Networth data.

https://api2.redtailtechnology.com/crm/v1/rest/contacts/{ContactID}/networth

https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/networth

 

Request Header example (C#)

HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/networth");
req.Headers[System.Net.HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("6C135EDF-C37C-4039-AEF3-5DFC079F9E6A:statementone:sonedemo"));
req.Method = "PUT";
req.ContentType = "text/json";

 

Request Body example (C#)

string reqJSON = "{""ClientID"":384843,""Assets"":4000.84, ""Liabilities"":0.84,""NonLiquidAssets"":250000.84, ""Networth"":254001.68}";
byte[] reqBody = System.Text.Encoding.ASCII.GetBytes(reqJSON);

//Request Stream
req.GetRequestStream().Write(reqBody, 0, reqBody.Length);

//and here's the response stream.
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());

 

Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk