有关 "related_contacts" 的联系人端点问题

Problem with the contacts endpoint regarding "related_contacts"

关于 related_contacts.

的联系人端点有问题

我正在尝试提出这个请求:

https://app.clio.com/api/v4/contacts.json?fields=id,name,first_name,last_name,type,primary_email_address,primary_phone_number,is_client,activity_rates{rate,flat_rate},addresses{name,street,city,province,postal_code,country},custom_field_values{id,field_type,field_name,value,custom_field},phone_numbers{name,number,default_number},web_sites{name,address,default_web_site},account_balances{name,type,balance},related_contacts{id,type,name,first_name,last_name,primary_email_address,primary_phone_number,is_client},primary_work_address{name,street,city,province,postal_code,country},company{id,type,name,first_name,last_name,primary_email_address,primary_phone_number,is_client},payment_profile{id,name,terms,discount_rate,discount_period,interest_rate,interest_period,interest_type},co_counsel_rate{id,rate,flat_rate,contact_id,co_counsel_contact_id},primary_web_site{name,address,default_web_site},created_at,updated_at&type=Company&client_only=true&order=name(asc)&limit=200

但是失败了。如果我删除 related_contacts{} 部分,它会起作用。如果我加回去 related_contacts{id} 就失败了。

还有其他人运行参与其中吗?

我认为这不能完全回答你的问题,但我一直在为同样的事情苦苦挣扎,据我所知,related_contacts 是 API 中的 dead-end =].

我认为真正的答案是完全不使用 related_contacts,而是使用 the relationships endpoint。如果您登录到 Clio 门户并查看 matter 下的 "Related contacts",这实际上就是它正在进行的调用。

您可以像调用示例中的所有联系人一样调用所有关系,但将 matter_idcontact_id 作为查询字符串的一部分包含在特定关系中可能更有用一个或另一个。