Chilkat Online Tools

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

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Name
string ls_Id
string ls_V_Email
string ls_Scurrency_symbol
string ls_Other_Phone
string ls_Mailing_State
string ls_Other_State
string ls_Other_Country
string ls_Last_Activity_Time
string ls_Department
string ls_Contact_Role
string ls_Sstate
string ls_Unsubscribed_Mode
integer li_Sprocess_flow
string ls_Assistant
integer li_Exchange_Rate
string ls_V_Currency
string ls_Mailing_Country
string ls_Data_Processing_Basis_Details
string ls_Id
string ls_Data_Source
integer li_Sapproved
string ls_Reporting_To
integer li_Delegate
integer li_Approve
integer li_Reject
integer li_Resubmit
string ls_Other_City
string ls_Sdata_source_details
string ls_Created_Time
integer li_Seditable
string ls_Home_Phone
string ls_Created_ByName
string ls_Created_ById
string ls_Created_ByEmail
string ls_Secondary_Email
string ls_Description
string ls_Vendor_Name
string ls_Mailing_Zip
integer li_Sreview_processApprove
integer li_Sreview_processReject
integer li_Sreview_processResubmit
string ls_Twitter
string ls_Other_Zip
string ls_Mailing_Street
string ls_Salutation
string ls_First_Name
string ls_Full_Name
string ls_Asst_Phone
string ls_Record_Image
string ls_Modified_ByName
string ls_Modified_ById
string ls_Modified_ByEmail
string ls_Sreview
string ls_Skype_ID
string ls_Phone
string ls_Account_NameName
string ls_Account_NameId
integer li_Email_Opt_Out
string ls_Modified_Time
string ls_Date_of_Birth
string ls_Mailing_City
string ls_Unsubscribed_Time
string ls_Title
string ls_Other_Street
string ls_Mobile
integer li_Sorchestration
integer li_Sstop_processing
string ls_Last_Name
integer li_Sin_merge
string ls_Lead_Source
string ls_Fax
string ls_Sapproval_state
string ls_Reporting_ToName
string ls_Reporting_ToId
string ls_Account_Name
integer j
integer li_Count_j
integer li_Per_page
integer li_Count
integer li_Page
integer li_More_records
integer i
integer li_Count_i

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

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://domain.com/crm/v2/Deals/738964000002224056/Contact_Roles",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

// 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

li_Per_page = loo_JResp.IntOf("info.per_page")
li_Count = loo_JResp.IntOf("info.count")
li_Page = loo_JResp.IntOf("info.page")
li_More_records = loo_JResp.BoolOf("info.more_records")
i = 0
li_Count_i = loo_JResp.SizeOfArray("data")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Name = loo_JResp.StringOf("data[i].Owner.name")
    ls_Id = loo_JResp.StringOf("data[i].Owner.id")
    ls_V_Email = loo_JResp.StringOf("data[i].Owner.email")
    ls_V_Email = loo_JResp.StringOf("data[i].Email")
    ls_Scurrency_symbol = loo_JResp.StringOf("data[i].$currency_symbol")
    ls_Other_Phone = loo_JResp.StringOf("data[i].Other_Phone")
    ls_Mailing_State = loo_JResp.StringOf("data[i].Mailing_State")
    ls_Other_State = loo_JResp.StringOf("data[i].Other_State")
    ls_Other_Country = loo_JResp.StringOf("data[i].Other_Country")
    ls_Last_Activity_Time = loo_JResp.StringOf("data[i].Last_Activity_Time")
    ls_Department = loo_JResp.StringOf("data[i].Department")
    ls_Contact_Role = loo_JResp.StringOf("data[i].Contact_Role")
    ls_Sstate = loo_JResp.StringOf("data[i].$state")
    ls_Unsubscribed_Mode = loo_JResp.StringOf("data[i].Unsubscribed_Mode")
    li_Sprocess_flow = loo_JResp.BoolOf("data[i].$process_flow")
    ls_Assistant = loo_JResp.StringOf("data[i].Assistant")
    li_Exchange_Rate = loo_JResp.IntOf("data[i].Exchange_Rate")
    ls_V_Currency = loo_JResp.StringOf("data[i].Currency")
    ls_Mailing_Country = loo_JResp.StringOf("data[i].Mailing_Country")
    ls_Data_Processing_Basis_Details = loo_JResp.StringOf("data[i].Data_Processing_Basis_Details")
    ls_Id = loo_JResp.StringOf("data[i].id")
    ls_Data_Source = loo_JResp.StringOf("data[i].Data_Source")
    li_Sapproved = loo_JResp.BoolOf("data[i].$approved")
    ls_Reporting_To = loo_JResp.StringOf("data[i].Reporting_To")
    li_Delegate = loo_JResp.BoolOf("data[i].$approval.delegate")
    li_Approve = loo_JResp.BoolOf("data[i].$approval.approve")
    li_Reject = loo_JResp.BoolOf("data[i].$approval.reject")
    li_Resubmit = loo_JResp.BoolOf("data[i].$approval.resubmit")
    ls_Other_City = loo_JResp.StringOf("data[i].Other_City")
    ls_Sdata_source_details = loo_JResp.StringOf("data[i].$data_source_details")
    ls_Created_Time = loo_JResp.StringOf("data[i].Created_Time")
    li_Seditable = loo_JResp.BoolOf("data[i].$editable")
    ls_Home_Phone = loo_JResp.StringOf("data[i].Home_Phone")
    ls_Created_ByName = loo_JResp.StringOf("data[i].Created_By.name")
    ls_Created_ById = loo_JResp.StringOf("data[i].Created_By.id")
    ls_Created_ByEmail = loo_JResp.StringOf("data[i].Created_By.email")
    ls_Secondary_Email = loo_JResp.StringOf("data[i].Secondary_Email")
    ls_Description = loo_JResp.StringOf("data[i].Description")
    ls_Vendor_Name = loo_JResp.StringOf("data[i].Vendor_Name")
    ls_Mailing_Zip = loo_JResp.StringOf("data[i].Mailing_Zip")
    li_Sreview_processApprove = loo_JResp.BoolOf("data[i].$review_process.approve")
    li_Sreview_processReject = loo_JResp.BoolOf("data[i].$review_process.reject")
    li_Sreview_processResubmit = loo_JResp.BoolOf("data[i].$review_process.resubmit")
    ls_Twitter = loo_JResp.StringOf("data[i].Twitter")
    ls_Other_Zip = loo_JResp.StringOf("data[i].Other_Zip")
    ls_Mailing_Street = loo_JResp.StringOf("data[i].Mailing_Street")
    ls_Salutation = loo_JResp.StringOf("data[i].Salutation")
    ls_First_Name = loo_JResp.StringOf("data[i].First_Name")
    ls_Full_Name = loo_JResp.StringOf("data[i].Full_Name")
    ls_Asst_Phone = loo_JResp.StringOf("data[i].Asst_Phone")
    ls_Record_Image = loo_JResp.StringOf("data[i].Record_Image")
    ls_Modified_ByName = loo_JResp.StringOf("data[i].Modified_By.name")
    ls_Modified_ById = loo_JResp.StringOf("data[i].Modified_By.id")
    ls_Modified_ByEmail = loo_JResp.StringOf("data[i].Modified_By.email")
    ls_Sreview = loo_JResp.StringOf("data[i].$review")
    ls_Skype_ID = loo_JResp.StringOf("data[i].Skype_ID")
    ls_Phone = loo_JResp.StringOf("data[i].Phone")
    ls_Account_NameName = loo_JResp.StringOf("data[i].Account_Name.name")
    ls_Account_NameId = loo_JResp.StringOf("data[i].Account_Name.id")
    li_Email_Opt_Out = loo_JResp.BoolOf("data[i].Email_Opt_Out")
    ls_Modified_Time = loo_JResp.StringOf("data[i].Modified_Time")
    ls_Date_of_Birth = loo_JResp.StringOf("data[i].Date_of_Birth")
    ls_Mailing_City = loo_JResp.StringOf("data[i].Mailing_City")
    ls_Unsubscribed_Time = loo_JResp.StringOf("data[i].Unsubscribed_Time")
    ls_Title = loo_JResp.StringOf("data[i].Title")
    ls_Other_Street = loo_JResp.StringOf("data[i].Other_Street")
    ls_Mobile = loo_JResp.StringOf("data[i].Mobile")
    li_Sorchestration = loo_JResp.BoolOf("data[i].$orchestration")
    li_Sstop_processing = loo_JResp.BoolOf("data[i].$stop_processing")
    ls_Last_Name = loo_JResp.StringOf("data[i].Last_Name")
    li_Sin_merge = loo_JResp.BoolOf("data[i].$in_merge")
    ls_Lead_Source = loo_JResp.StringOf("data[i].Lead_Source")
    ls_Fax = loo_JResp.StringOf("data[i].Fax")
    ls_Sapproval_state = loo_JResp.StringOf("data[i].$approval_state")
    ls_Reporting_ToName = loo_JResp.StringOf("data[i].Reporting_To.name")
    ls_Reporting_ToId = loo_JResp.StringOf("data[i].Reporting_To.id")
    ls_Account_Name = loo_JResp.StringOf("data[i].Account_Name")
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("data[i].Tag")
    do while j < li_Count_j
        loo_JResp.J = j
        j = j + 1
    loop
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

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}"
    }
  ]
}