Chilkat Online Tools

unicodeCpp / Zoho CRM REST APIs / Contact Roles of a Specific Deal

Back to Collection Items

#include <CkHttpW.h>
#include <CkStringBuilderW.h>
#include <CkJsonObjectW.h>

void ChilkatSample(void)
    {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    CkHttpW http;
    bool success;

    // Adds the "Authorization: Bearer <access_token>" header.
    http.put_AuthToken(L"<access_token>");

    CkStringBuilderW sbResponseBody;
    success = http.QuickGetSb(L"https://domain.com/crm/v2/Deals/738964000002224056/Contact_Roles",sbResponseBody);
    if (success == false) {
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }

    CkJsonObjectW jResp;
    jResp.LoadSb(sbResponseBody);
    jResp.put_EmitCompact(false);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",jResp.emit());

    int respStatusCode = http.get_LastStatus();
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",http.lastHeader());
        wprintf(L"Failed.\n");
        return;
    }

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "data": [
    //     {
    //       "Owner": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia.b@zylker.com"
    //       },
    //       "Email": null,
    //       "$currency_symbol": "Af",
    //       "Other_Phone": null,
    //       "Mailing_State": null,
    //       "Other_State": null,
    //       "Other_Country": null,
    //       "Last_Activity_Time": "2021-03-02T08:06:35+00:00",
    //       "Department": null,
    //       "Contact_Role": "738964000000007170",
    //       "$state": "save",
    //       "Unsubscribed_Mode": null,
    //       "$process_flow": false,
    //       "Assistant": null,
    //       "Exchange_Rate": 1,
    //       "Currency": "AFN",
    //       "Mailing_Country": null,
    //       "Data_Processing_Basis_Details": null,
    //       "id": "738964000001112068",
    //       "Data_Source": "Manual",
    //       "$approved": true,
    //       "Reporting_To": null,
    //       "$approval": {
    //         "delegate": false,
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Other_City": null,
    //       "$data_source_details": null,
    //       "Created_Time": "2020-07-09T06:36:27+00:00",
    //       "$editable": true,
    //       "Home_Phone": null,
    //       "Created_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Secondary_Email": null,
    //       "Description": null,
    //       "Vendor_Name": null,
    //       "Mailing_Zip": null,
    //       "$review_process": {
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Twitter": null,
    //       "Other_Zip": null,
    //       "Mailing_Street": null,
    //       "Salutation": null,
    //       "First_Name": null,
    //       "Full_Name": "Boyle",
    //       "Asst_Phone": null,
    //       "Record_Image": null,
    //       "Modified_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "$review": null,
    //       "Skype_ID": null,
    //       "Phone": null,
    //       "Account_Name": {
    //         "name": "zylker",
    //         "id": "738964000001112135"
    //       },
    //       "Email_Opt_Out": false,
    //       "Modified_Time": "2020-10-22T14:46:41+00:00",
    //       "Date_of_Birth": null,
    //       "Mailing_City": null,
    //       "Unsubscribed_Time": null,
    //       "Title": null,
    //       "Other_Street": null,
    //       "Mobile": null,
    //       "$orchestration": false,
    //       "$stop_processing": false,
    //       "Last_Name": "Boyle",
    //       "$in_merge": false,
    //       "Lead_Source": null,
    //       "Tag": [
    //       ],
    //       "Fax": null,
    //       "$approval_state": "approved"
    //     },
    //     {
    //       "Owner": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Email": null,
    //       "$currency_symbol": "Af",
    //       "Other_Phone": null,
    //       "Mailing_State": null,
    //       "Other_State": null,
    //       "Other_Country": null,
    //       "Last_Activity_Time": null,
    //       "Department": null,
    //       "Contact_Role": "738964000000007170",
    //       "$state": "save",
    //       "Unsubscribed_Mode": null,
    //       "$process_flow": false,
    //       "Assistant": null,
    //       "Exchange_Rate": 1,
    //       "Currency": "AFN",
    //       "Mailing_Country": null,
    //       "Data_Processing_Basis_Details": null,
    //       "id": "738964000001682005",
    //       "Data_Source": "Manual",
    //       "$approved": true,
    //       "Reporting_To": {
    //         "name": "Boyle",
    //         "id": "738964000001112068"
    //       },
    //       "$approval": {
    //         "delegate": false,
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Other_City": null,
    //       "$data_source_details": null,
    //       "Created_Time": "2020-12-15T07:09:59+00:00",
    //       "$editable": true,
    //       "Home_Phone": null,
    //       "Created_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Secondary_Email": null,
    //       "Description": null,
    //       "Vendor_Name": null,
    //       "Mailing_Zip": null,
    //       "$review_process": {
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Twitter": null,
    //       "Other_Zip": null,
    //       "Mailing_Street": null,
    //       "Salutation": "Ms.",
    //       "First_Name": "Patricia",
    //       "Full_Name": "Ms. Patricia Boyle",
    //       "Asst_Phone": null,
    //       "Record_Image": null,
    //       "Modified_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "$review": null,
    //       "Skype_ID": null,
    //       "Phone": null,
    //       "Account_Name": {
    //         "name": "zylker",
    //         "id": "738964000001112135"
    //       },
    //       "Email_Opt_Out": false,
    //       "Modified_Time": "2020-12-15T07:09:59+00:00",
    //       "Date_of_Birth": null,
    //       "Mailing_City": null,
    //       "Unsubscribed_Time": null,
    //       "Title": null,
    //       "Other_Street": null,
    //       "Mobile": null,
    //       "$orchestration": false,
    //       "$stop_processing": false,
    //       "Last_Name": "Boyle",
    //       "$in_merge": false,
    //       "Lead_Source": null,
    //       "Tag": [
    //       ],
    //       "Fax": null,
    //       "$approval_state": "approved"
    //     },
    //     {
    //       "Owner": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Email": null,
    //       "$currency_symbol": "Af",
    //       "Other_Phone": null,
    //       "Mailing_State": null,
    //       "Other_State": null,
    //       "Other_Country": null,
    //       "Last_Activity_Time": null,
    //       "Department": null,
    //       "Contact_Role": "738964000000007170",
    //       "$state": "save",
    //       "Unsubscribed_Mode": null,
    //       "$process_flow": false,
    //       "Assistant": null,
    //       "Exchange_Rate": 1,
    //       "Currency": "AFN",
    //       "Mailing_Country": null,
    //       "Data_Processing_Basis_Details": null,
    //       "id": "738964000001919009",
    //       "Data_Source": "API",
    //       "$approved": true,
    //       "Reporting_To": null,
    //       "$approval": {
    //         "delegate": false,
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Other_City": null,
    //       "$data_source_details": {},
    //       "Created_Time": "2021-03-02T09:18:59+00:00",
    //       "$editable": true,
    //       "Home_Phone": null,
    //       "Created_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Secondary_Email": null,
    //       "Description": null,
    //       "Vendor_Name": null,
    //       "Mailing_Zip": null,
    //       "$review_process": {
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Twitter": null,
    //       "Other_Zip": null,
    //       "Mailing_Street": null,
    //       "Salutation": null,
    //       "First_Name": null,
    //       "Full_Name": "Patricia",
    //       "Asst_Phone": null,
    //       "Record_Image": null,
    //       "Modified_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "$review": null,
    //       "Skype_ID": null,
    //       "Phone": null,
    //       "Account_Name": null,
    //       "Email_Opt_Out": false,
    //       "Modified_Time": "2021-03-02T09:18:59+00:00",
    //       "Date_of_Birth": null,
    //       "Mailing_City": null,
    //       "Unsubscribed_Time": null,
    //       "Title": null,
    //       "Other_Street": null,
    //       "Mobile": null,
    //       "$orchestration": false,
    //       "$stop_processing": false,
    //       "Last_Name": "Patricia",
    //       "$in_merge": false,
    //       "Lead_Source": null,
    //       "Tag": [
    //       ],
    //       "Fax": null,
    //       "$approval_state": "approved"
    //     },
    //     {
    //       "Owner": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Email": "contact_test@xyz.com",
    //       "$currency_symbol": "Af",
    //       "Other_Phone": null,
    //       "Mailing_State": "Colorado",
    //       "Other_State": null,
    //       "Other_Country": null,
    //       "Last_Activity_Time": "2021-06-02T15:46:37+00:00",
    //       "Department": null,
    //       "Contact_Role": null,
    //       "$state": "save",
    //       "Unsubscribed_Mode": null,
    //       "$process_flow": false,
    //       "Assistant": null,
    //       "Exchange_Rate": 1,
    //       "Currency": "AFN",
    //       "Mailing_Country": null,
    //       "Data_Processing_Basis_Details": null,
    //       "id": "738964000002224050",
    //       "Data_Source": "Converted",
    //       "$approved": true,
    //       "Reporting_To": null,
    //       "$approval": {
    //         "delegate": false,
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Other_City": null,
    //       "$data_source_details": null,
    //       "Created_Time": "2021-06-02T15:46:36+00:00",
    //       "$editable": true,
    //       "Home_Phone": null,
    //       "Created_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "Secondary_Email": null,
    //       "Description": null,
    //       "Vendor_Name": null,
    //       "Mailing_Zip": "1234",
    //       "$review_process": {
    //         "approve": false,
    //         "reject": false,
    //         "resubmit": false
    //       },
    //       "Twitter": null,
    //       "Other_Zip": null,
    //       "Mailing_Street": null,
    //       "Salutation": null,
    //       "First_Name": null,
    //       "Full_Name": "Contact_test",
    //       "Asst_Phone": null,
    //       "Record_Image": null,
    //       "Modified_By": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009",
    //         "email": "patricia@zylker.com"
    //       },
    //       "$review": null,
    //       "Skype_ID": null,
    //       "Phone": null,
    //       "Account_Name": null,
    //       "Email_Opt_Out": false,
    //       "Modified_Time": "2021-06-02T15:46:36+00:00",
    //       "Date_of_Birth": null,
    //       "Mailing_City": null,
    //       "Unsubscribed_Time": null,
    //       "Title": null,
    //       "Other_Street": null,
    //       "Mobile": null,
    //       "$orchestration": false,
    //       "$stop_processing": false,
    //       "Last_Name": "Contact_test",
    //       "$in_merge": false,
    //       "Lead_Source": null,
    //       "Tag": [
    //       ],
    //       "Fax": null,
    //       "$approval_state": "approved"
    //     }
    //   ],
    //   "info": {
    //     "per_page": 200,
    //     "count": 4,
    //     "page": 1,
    //     "more_records": false
    //   }
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    const wchar_t *Name = 0;
    const wchar_t *Id = 0;
    const wchar_t *v_Email = 0;
    const wchar_t *Scurrency_symbol = 0;
    const wchar_t *Other_Phone = 0;
    const wchar_t *Mailing_State = 0;
    const wchar_t *Other_State = 0;
    const wchar_t *Other_Country = 0;
    const wchar_t *Last_Activity_Time = 0;
    const wchar_t *Department = 0;
    const wchar_t *Contact_Role = 0;
    const wchar_t *Sstate = 0;
    const wchar_t *Unsubscribed_Mode = 0;
    bool Sprocess_flow;
    const wchar_t *Assistant = 0;
    int Exchange_Rate;
    const wchar_t *v_Currency = 0;
    const wchar_t *Mailing_Country = 0;
    const wchar_t *Data_Processing_Basis_Details = 0;
    const wchar_t *id = 0;
    const wchar_t *Data_Source = 0;
    bool Sapproved;
    const wchar_t *Reporting_To = 0;
    bool Delegate;
    bool Approve;
    bool Reject;
    bool Resubmit;
    const wchar_t *Other_City = 0;
    const wchar_t *Sdata_source_details = 0;
    const wchar_t *Created_Time = 0;
    bool Seditable;
    const wchar_t *Home_Phone = 0;
    const wchar_t *Created_ByName = 0;
    const wchar_t *Created_ById = 0;
    const wchar_t *Created_ByEmail = 0;
    const wchar_t *Secondary_Email = 0;
    const wchar_t *Description = 0;
    const wchar_t *Vendor_Name = 0;
    const wchar_t *Mailing_Zip = 0;
    bool Sreview_processApprove;
    bool Sreview_processReject;
    bool Sreview_processResubmit;
    const wchar_t *Twitter = 0;
    const wchar_t *Other_Zip = 0;
    const wchar_t *Mailing_Street = 0;
    const wchar_t *Salutation = 0;
    const wchar_t *First_Name = 0;
    const wchar_t *Full_Name = 0;
    const wchar_t *Asst_Phone = 0;
    const wchar_t *Record_Image = 0;
    const wchar_t *Modified_ByName = 0;
    const wchar_t *Modified_ById = 0;
    const wchar_t *Modified_ByEmail = 0;
    const wchar_t *Sreview = 0;
    const wchar_t *Skype_ID = 0;
    const wchar_t *Phone = 0;
    const wchar_t *Account_NameName = 0;
    const wchar_t *Account_NameId = 0;
    bool Email_Opt_Out;
    const wchar_t *Modified_Time = 0;
    const wchar_t *Date_of_Birth = 0;
    const wchar_t *Mailing_City = 0;
    const wchar_t *Unsubscribed_Time = 0;
    const wchar_t *Title = 0;
    const wchar_t *Other_Street = 0;
    const wchar_t *Mobile = 0;
    bool Sorchestration;
    bool Sstop_processing;
    const wchar_t *Last_Name = 0;
    bool Sin_merge;
    const wchar_t *Lead_Source = 0;
    const wchar_t *Fax = 0;
    const wchar_t *Sapproval_state = 0;
    const wchar_t *Reporting_ToName = 0;
    const wchar_t *Reporting_ToId = 0;
    const wchar_t *Account_Name = 0;
    int j;
    int count_j;

    int Per_page = jResp.IntOf(L"info.per_page");
    int Count = jResp.IntOf(L"info.count");
    int Page = jResp.IntOf(L"info.page");
    bool More_records = jResp.BoolOf(L"info.more_records");
    int i = 0;
    int count_i = jResp.SizeOfArray(L"data");
    while (i < count_i) {
        jResp.put_I(i);
        Name = jResp.stringOf(L"data[i].Owner.name");
        Id = jResp.stringOf(L"data[i].Owner.id");
        v_Email = jResp.stringOf(L"data[i].Owner.email");
        v_Email = jResp.stringOf(L"data[i].Email");
        Scurrency_symbol = jResp.stringOf(L"data[i].$currency_symbol");
        Other_Phone = jResp.stringOf(L"data[i].Other_Phone");
        Mailing_State = jResp.stringOf(L"data[i].Mailing_State");
        Other_State = jResp.stringOf(L"data[i].Other_State");
        Other_Country = jResp.stringOf(L"data[i].Other_Country");
        Last_Activity_Time = jResp.stringOf(L"data[i].Last_Activity_Time");
        Department = jResp.stringOf(L"data[i].Department");
        Contact_Role = jResp.stringOf(L"data[i].Contact_Role");
        Sstate = jResp.stringOf(L"data[i].$state");
        Unsubscribed_Mode = jResp.stringOf(L"data[i].Unsubscribed_Mode");
        Sprocess_flow = jResp.BoolOf(L"data[i].$process_flow");
        Assistant = jResp.stringOf(L"data[i].Assistant");
        Exchange_Rate = jResp.IntOf(L"data[i].Exchange_Rate");
        v_Currency = jResp.stringOf(L"data[i].Currency");
        Mailing_Country = jResp.stringOf(L"data[i].Mailing_Country");
        Data_Processing_Basis_Details = jResp.stringOf(L"data[i].Data_Processing_Basis_Details");
        id = jResp.stringOf(L"data[i].id");
        Data_Source = jResp.stringOf(L"data[i].Data_Source");
        Sapproved = jResp.BoolOf(L"data[i].$approved");
        Reporting_To = jResp.stringOf(L"data[i].Reporting_To");
        Delegate = jResp.BoolOf(L"data[i].$approval.delegate");
        Approve = jResp.BoolOf(L"data[i].$approval.approve");
        Reject = jResp.BoolOf(L"data[i].$approval.reject");
        Resubmit = jResp.BoolOf(L"data[i].$approval.resubmit");
        Other_City = jResp.stringOf(L"data[i].Other_City");
        Sdata_source_details = jResp.stringOf(L"data[i].$data_source_details");
        Created_Time = jResp.stringOf(L"data[i].Created_Time");
        Seditable = jResp.BoolOf(L"data[i].$editable");
        Home_Phone = jResp.stringOf(L"data[i].Home_Phone");
        Created_ByName = jResp.stringOf(L"data[i].Created_By.name");
        Created_ById = jResp.stringOf(L"data[i].Created_By.id");
        Created_ByEmail = jResp.stringOf(L"data[i].Created_By.email");
        Secondary_Email = jResp.stringOf(L"data[i].Secondary_Email");
        Description = jResp.stringOf(L"data[i].Description");
        Vendor_Name = jResp.stringOf(L"data[i].Vendor_Name");
        Mailing_Zip = jResp.stringOf(L"data[i].Mailing_Zip");
        Sreview_processApprove = jResp.BoolOf(L"data[i].$review_process.approve");
        Sreview_processReject = jResp.BoolOf(L"data[i].$review_process.reject");
        Sreview_processResubmit = jResp.BoolOf(L"data[i].$review_process.resubmit");
        Twitter = jResp.stringOf(L"data[i].Twitter");
        Other_Zip = jResp.stringOf(L"data[i].Other_Zip");
        Mailing_Street = jResp.stringOf(L"data[i].Mailing_Street");
        Salutation = jResp.stringOf(L"data[i].Salutation");
        First_Name = jResp.stringOf(L"data[i].First_Name");
        Full_Name = jResp.stringOf(L"data[i].Full_Name");
        Asst_Phone = jResp.stringOf(L"data[i].Asst_Phone");
        Record_Image = jResp.stringOf(L"data[i].Record_Image");
        Modified_ByName = jResp.stringOf(L"data[i].Modified_By.name");
        Modified_ById = jResp.stringOf(L"data[i].Modified_By.id");
        Modified_ByEmail = jResp.stringOf(L"data[i].Modified_By.email");
        Sreview = jResp.stringOf(L"data[i].$review");
        Skype_ID = jResp.stringOf(L"data[i].Skype_ID");
        Phone = jResp.stringOf(L"data[i].Phone");
        Account_NameName = jResp.stringOf(L"data[i].Account_Name.name");
        Account_NameId = jResp.stringOf(L"data[i].Account_Name.id");
        Email_Opt_Out = jResp.BoolOf(L"data[i].Email_Opt_Out");
        Modified_Time = jResp.stringOf(L"data[i].Modified_Time");
        Date_of_Birth = jResp.stringOf(L"data[i].Date_of_Birth");
        Mailing_City = jResp.stringOf(L"data[i].Mailing_City");
        Unsubscribed_Time = jResp.stringOf(L"data[i].Unsubscribed_Time");
        Title = jResp.stringOf(L"data[i].Title");
        Other_Street = jResp.stringOf(L"data[i].Other_Street");
        Mobile = jResp.stringOf(L"data[i].Mobile");
        Sorchestration = jResp.BoolOf(L"data[i].$orchestration");
        Sstop_processing = jResp.BoolOf(L"data[i].$stop_processing");
        Last_Name = jResp.stringOf(L"data[i].Last_Name");
        Sin_merge = jResp.BoolOf(L"data[i].$in_merge");
        Lead_Source = jResp.stringOf(L"data[i].Lead_Source");
        Fax = jResp.stringOf(L"data[i].Fax");
        Sapproval_state = jResp.stringOf(L"data[i].$approval_state");
        Reporting_ToName = jResp.stringOf(L"data[i].Reporting_To.name");
        Reporting_ToId = jResp.stringOf(L"data[i].Reporting_To.id");
        Account_Name = jResp.stringOf(L"data[i].Account_Name");
        j = 0;
        count_j = jResp.SizeOfArray(L"data[i].Tag");
        while (j < count_j) {
            jResp.put_J(j);
            j = j + 1;
        }

        i = i + 1;
    }
    }

Curl Command

curl -X GET
	-H "Authorization: Bearer <access_token>"
https://domain.com/crm/v2/Deals/738964000002224056/Contact_Roles

Postman Collection Item JSON

{
  "name": "Contact Roles of a Specific Deal",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{access-token}}",
          "type": "string"
        }
      ]
    },
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{api-domain}}/crm/v2/Deals/738964000002224056/Contact_Roles",
      "host": [
        "{{api-domain}}"
      ],
      "path": [
        "crm",
        "v2",
        "Deals",
        "738964000002224056",
        "Contact_Roles"
      ]
    }
  },
  "response": [
    {
      "name": "SUCCESS RESPONSE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Deals/738964000002224056/Contact_Roles",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Deals",
            "738964000002224056",
            "Contact_Roles"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 18 Jun 2021 13:12:08 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-06-18T13:56:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4126581"
        },
        {
          "key": "clientsubVersion",
          "value": "4db5c971143ce609008746cb1d40f588"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=63072000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"Owner\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia.b@zylker.com\"\n            },\n            \"Email\": null,\n            \"$currency_symbol\": \"Af\",\n            \"Other_Phone\": null,\n            \"Mailing_State\": null,\n            \"Other_State\": null,\n            \"Other_Country\": null,\n            \"Last_Activity_Time\": \"2021-03-02T08:06:35+00:00\",\n            \"Department\": null,\n            \"Contact_Role\": \"738964000000007170\",\n            \"$state\": \"save\",\n            \"Unsubscribed_Mode\": null,\n            \"$process_flow\": false,\n            \"Assistant\": null,\n            \"Exchange_Rate\": 1,\n            \"Currency\": \"AFN\",\n            \"Mailing_Country\": null,\n            \"Data_Processing_Basis_Details\": null,\n            \"id\": \"738964000001112068\",\n            \"Data_Source\": \"Manual\",\n            \"$approved\": true,\n            \"Reporting_To\": null,\n            \"$approval\": {\n                \"delegate\": false,\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Other_City\": null,\n            \"$data_source_details\": null,\n            \"Created_Time\": \"2020-07-09T06:36:27+00:00\",\n            \"$editable\": true,\n            \"Home_Phone\": null,\n            \"Created_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Secondary_Email\": null,\n            \"Description\": null,\n            \"Vendor_Name\": null,\n            \"Mailing_Zip\": null,\n            \"$review_process\": {\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Twitter\": null,\n            \"Other_Zip\": null,\n            \"Mailing_Street\": null,\n            \"Salutation\": null,\n            \"First_Name\": null,\n            \"Full_Name\": \"Boyle\",\n            \"Asst_Phone\": null,\n            \"Record_Image\": null,\n            \"Modified_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"$review\": null,\n            \"Skype_ID\": null,\n            \"Phone\": null,\n            \"Account_Name\": {\n                \"name\": \"zylker\",\n                \"id\": \"738964000001112135\"\n            },\n            \"Email_Opt_Out\": false,\n            \"Modified_Time\": \"2020-10-22T14:46:41+00:00\",\n            \"Date_of_Birth\": null,\n            \"Mailing_City\": null,\n            \"Unsubscribed_Time\": null,\n            \"Title\": null,\n            \"Other_Street\": null,\n            \"Mobile\": null,\n            \"$orchestration\": false,\n            \"$stop_processing\": false,\n            \"Last_Name\": \"Boyle\",\n            \"$in_merge\": false,\n            \"Lead_Source\": null,\n            \"Tag\": [],\n            \"Fax\": null,\n            \"$approval_state\": \"approved\"\n        },\n        {\n            \"Owner\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Email\": null,\n            \"$currency_symbol\": \"Af\",\n            \"Other_Phone\": null,\n            \"Mailing_State\": null,\n            \"Other_State\": null,\n            \"Other_Country\": null,\n            \"Last_Activity_Time\": null,\n            \"Department\": null,\n            \"Contact_Role\": \"738964000000007170\",\n            \"$state\": \"save\",\n            \"Unsubscribed_Mode\": null,\n            \"$process_flow\": false,\n            \"Assistant\": null,\n            \"Exchange_Rate\": 1,\n            \"Currency\": \"AFN\",\n            \"Mailing_Country\": null,\n            \"Data_Processing_Basis_Details\": null,\n            \"id\": \"738964000001682005\",\n            \"Data_Source\": \"Manual\",\n            \"$approved\": true,\n            \"Reporting_To\": {\n                \"name\": \"Boyle\",\n                \"id\": \"738964000001112068\"\n            },\n            \"$approval\": {\n                \"delegate\": false,\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Other_City\": null,\n            \"$data_source_details\": null,\n            \"Created_Time\": \"2020-12-15T07:09:59+00:00\",\n            \"$editable\": true,\n            \"Home_Phone\": null,\n            \"Created_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Secondary_Email\": null,\n            \"Description\": null,\n            \"Vendor_Name\": null,\n            \"Mailing_Zip\": null,\n            \"$review_process\": {\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Twitter\": null,\n            \"Other_Zip\": null,\n            \"Mailing_Street\": null,\n            \"Salutation\": \"Ms.\",\n            \"First_Name\": \"Patricia\",\n            \"Full_Name\": \"Ms. Patricia Boyle\",\n            \"Asst_Phone\": null,\n            \"Record_Image\": null,\n            \"Modified_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"$review\": null,\n            \"Skype_ID\": null,\n            \"Phone\": null,\n            \"Account_Name\": {\n                \"name\": \"zylker\",\n                \"id\": \"738964000001112135\"\n            },\n            \"Email_Opt_Out\": false,\n            \"Modified_Time\": \"2020-12-15T07:09:59+00:00\",\n            \"Date_of_Birth\": null,\n            \"Mailing_City\": null,\n            \"Unsubscribed_Time\": null,\n            \"Title\": null,\n            \"Other_Street\": null,\n            \"Mobile\": null,\n            \"$orchestration\": false,\n            \"$stop_processing\": false,\n            \"Last_Name\": \"Boyle\",\n            \"$in_merge\": false,\n            \"Lead_Source\": null,\n            \"Tag\": [],\n            \"Fax\": null,\n            \"$approval_state\": \"approved\"\n        },\n        {\n            \"Owner\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Email\": null,\n            \"$currency_symbol\": \"Af\",\n            \"Other_Phone\": null,\n            \"Mailing_State\": null,\n            \"Other_State\": null,\n            \"Other_Country\": null,\n            \"Last_Activity_Time\": null,\n            \"Department\": null,\n            \"Contact_Role\": \"738964000000007170\",\n            \"$state\": \"save\",\n            \"Unsubscribed_Mode\": null,\n            \"$process_flow\": false,\n            \"Assistant\": null,\n            \"Exchange_Rate\": 1,\n            \"Currency\": \"AFN\",\n            \"Mailing_Country\": null,\n            \"Data_Processing_Basis_Details\": null,\n            \"id\": \"738964000001919009\",\n            \"Data_Source\": \"API\",\n            \"$approved\": true,\n            \"Reporting_To\": null,\n            \"$approval\": {\n                \"delegate\": false,\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Other_City\": null,\n            \"$data_source_details\": {},\n            \"Created_Time\": \"2021-03-02T09:18:59+00:00\",\n            \"$editable\": true,\n            \"Home_Phone\": null,\n            \"Created_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Secondary_Email\": null,\n            \"Description\": null,\n            \"Vendor_Name\": null,\n            \"Mailing_Zip\": null,\n            \"$review_process\": {\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Twitter\": null,\n            \"Other_Zip\": null,\n            \"Mailing_Street\": null,\n            \"Salutation\": null,\n            \"First_Name\": null,\n            \"Full_Name\": \"Patricia\",\n            \"Asst_Phone\": null,\n            \"Record_Image\": null,\n            \"Modified_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"$review\": null,\n            \"Skype_ID\": null,\n            \"Phone\": null,\n            \"Account_Name\": null,\n            \"Email_Opt_Out\": false,\n            \"Modified_Time\": \"2021-03-02T09:18:59+00:00\",\n            \"Date_of_Birth\": null,\n            \"Mailing_City\": null,\n            \"Unsubscribed_Time\": null,\n            \"Title\": null,\n            \"Other_Street\": null,\n            \"Mobile\": null,\n            \"$orchestration\": false,\n            \"$stop_processing\": false,\n            \"Last_Name\": \"Patricia\",\n            \"$in_merge\": false,\n            \"Lead_Source\": null,\n            \"Tag\": [],\n            \"Fax\": null,\n            \"$approval_state\": \"approved\"\n        },\n        {\n            \"Owner\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Email\": \"contact_test@xyz.com\",\n            \"$currency_symbol\": \"Af\",\n            \"Other_Phone\": null,\n            \"Mailing_State\": \"Colorado\",\n            \"Other_State\": null,\n            \"Other_Country\": null,\n            \"Last_Activity_Time\": \"2021-06-02T15:46:37+00:00\",\n            \"Department\": null,\n            \"Contact_Role\": null,\n            \"$state\": \"save\",\n            \"Unsubscribed_Mode\": null,\n            \"$process_flow\": false,\n            \"Assistant\": null,\n            \"Exchange_Rate\": 1,\n            \"Currency\": \"AFN\",\n            \"Mailing_Country\": null,\n            \"Data_Processing_Basis_Details\": null,\n            \"id\": \"738964000002224050\",\n            \"Data_Source\": \"Converted\",\n            \"$approved\": true,\n            \"Reporting_To\": null,\n            \"$approval\": {\n                \"delegate\": false,\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Other_City\": null,\n            \"$data_source_details\": null,\n            \"Created_Time\": \"2021-06-02T15:46:36+00:00\",\n            \"$editable\": true,\n            \"Home_Phone\": null,\n            \"Created_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"Secondary_Email\": null,\n            \"Description\": null,\n            \"Vendor_Name\": null,\n            \"Mailing_Zip\": \"1234\",\n            \"$review_process\": {\n                \"approve\": false,\n                \"reject\": false,\n                \"resubmit\": false\n            },\n            \"Twitter\": null,\n            \"Other_Zip\": null,\n            \"Mailing_Street\": null,\n            \"Salutation\": null,\n            \"First_Name\": null,\n            \"Full_Name\": \"Contact_test\",\n            \"Asst_Phone\": null,\n            \"Record_Image\": null,\n            \"Modified_By\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\",\n                \"email\": \"patricia@zylker.com\"\n            },\n            \"$review\": null,\n            \"Skype_ID\": null,\n            \"Phone\": null,\n            \"Account_Name\": null,\n            \"Email_Opt_Out\": false,\n            \"Modified_Time\": \"2021-06-02T15:46:36+00:00\",\n            \"Date_of_Birth\": null,\n            \"Mailing_City\": null,\n            \"Unsubscribed_Time\": null,\n            \"Title\": null,\n            \"Other_Street\": null,\n            \"Mobile\": null,\n            \"$orchestration\": false,\n            \"$stop_processing\": false,\n            \"Last_Name\": \"Contact_test\",\n            \"$in_merge\": false,\n            \"Lead_Source\": null,\n            \"Tag\": [],\n            \"Fax\": null,\n            \"$approval_state\": \"approved\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 200,\n        \"count\": 4,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "INVALID_MODULE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Deal/738964000002224056/Contact_Roles",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Deal",
            "738964000002224056",
            "Contact_Roles"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 18 Jun 2021 13:16:04 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "110"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-06-18T13:56:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4126581"
        },
        {
          "key": "clientsubVersion",
          "value": "4db5c971143ce609008746cb1d40f588"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_MODULE\",\n    \"details\": {},\n    \"message\": \"the module name given seems to be invalid\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_REQUEST_METHOD",
      "originalRequest": {
        "method": "COPY",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Deals/738964000002224056/Contact_Roles",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Deals",
            "738964000002224056",
            "Contact_Roles"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 18 Jun 2021 13:16:31 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "124"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "X-Frame-Options",
          "value": "deny"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_REQUEST_METHOD\",\n    \"details\": {},\n    \"message\": \"The http request method type is not a valid one\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "AUTHENTICATION_FAILURE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Deals/738964000002224056/Contact_Roles",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Deals",
            "738964000002224056",
            "Contact_Roles"
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 18 Jun 2021 13:16:48 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "98"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"AUTHENTICATION_FAILURE\",\n    \"details\": {},\n    \"message\": \"Authentication failed\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_DATA",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Deals/73896400000222405/Contact_Roles",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Deals",
            "73896400000222405",
            "Contact_Roles"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 18 Jun 2021 13:17:03 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "107"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-06-18T13:56:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4126581"
        },
        {
          "key": "clientsubVersion",
          "value": "4db5c971143ce609008746cb1d40f588"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_DATA\",\n    \"details\": {},\n    \"message\": \"the related id given seems to be invalid\",\n    \"status\": \"error\"\n}"
    }
  ]
}