CINC API

Account Correspondance

Allows you to get information about your account correspondance.

Currently allowing the following protocols:

  • PUT ONLY

Request URL

PUT End Point

https://yourcustomerdatabase.cincsys.com/api/management/{mgmtId}/homeowners/accountCorrespondence

Post Object

The post object example JSON:

{
PropertyHOACode: "12345",
Description: "Testing Save and Update",
CorrespondenceNoteType: "Annual/Special Meeting Notice",
CorrespondenceStatus: "Open",
AccType: "Fence",
FilePath: "test",
NoteDate: "1/13/2021",
NoteType: "Letter",
NextContactDate", "03/10/2021",
Template: "",
Note: "Vendor Note 07 jan 2021"
}

Example of attaching files using C#

using (var client = new HttpClient())
using (var content = new MultipartFormDataContent())
{
client.BaseAddress = new Uri("https://yourcustomerdatabase.cinctest.com/");
// Add first file content
var myFile = File.ReadAllBytes(@"SampleDoc1.docx");
var fileContent1 = new ByteArrayContent(myFile);
fileContent1.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
{
FileName = "SampleDoc1.docx"
};
// Add Second file content
var fileContent2 = new ByteArrayContent(File.ReadAllBytes(@"SampleDoc2.docx"));
fileContent2.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
{
FileName = "SampleDoc2.docx"
};
var fileContent3 = new ByteArrayContent(new byte[0]);
fileContent3.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
{
FileName = null
};
ArrayList paramList = new ArrayList();
var values = new Dictionary<string, string>()
{
{"PropertyHOACode", "12345"},
{"Description", "Testing Save and Update"},
{"CorrespondenceNoteType", "Annual/Special Meeting Notice"},
{"CorrespondenceStatus", "Open"},
{"AccType", "Fence"},
{"FilePath", "test"},
{"NoteDate", "1/13/2021"},
{"NoteType", "Letter"},
{"NextContactDate", "03/10/2021"},
{"Template", ""},
{"Note", "Vendor Note 07 jan 2021"}
};
HttpContent DictionaryItems = new FormUrlEncodedContent(values);
paramList.Add(values);
content.Add(fileContent1);
content.Add(fileContent2);
content.Add(DictionaryItems, "input");
// Make a call to Web API
var result = client.PutAsync("/AccountingBetaAPI/api/management/1/homeowners/accountCorrespondence", content).Result;

Response Codes

200 - OK: Everything worked as expected.

400 - Bad Request: The request was unacceptable, often due to missing a required parameter.

401 - Unauthorized: No valid API key provided.

402 - Request Failed: The parameters were valid but the request failed.

403 - Forbidden: The API key doesn't have permissions to perform the request.

404 - Not Found: The requested resource doesn't exist.