post
https://api.marketcircle.net/v1/opportunities/_search
Search for opportunities
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
See the search filtering documentation for details about the query syntax. The searchable attributes and the operators each one accepts are listed in the request body below.
Opportunity-specific notes
statetakes one ofopen,won,suspended,abandonedorlost:
{ "state": { "any": ["open", "suspended"] } }totalis compared in whole currency units, and decimals in the operand are dropped:
{ "total": { "greater_than_equal": 1000 } }probability(0 to 100) andpriority(0 to 10) are numbers and must be sent as JSON numbers:
{ "probability": { "in_range": [50, 75] } }categoryandtypematch by name, e.g.{ "type": { "equal": "New Business" } }.- Contacts and companies take a search filter for that record type with
any, so you can match by reference or by any of its attributes:
{ "companies": { "any": { "company": { "equal": "/v1/companies/1000" } } } }
{ "contacts": { "any": { "last_name": { "equal": "Smith" } } } } - Linked records (
appointments,notes,tasks,groups,forms,email_messages) work the same way, using the linked record's reference:
{ "tasks": { "any": { "task": { "equal": "/v1/tasks/1000" } } } } rolematches the name of a role a contact or company has on the opportunity, e.g.{ "role": { "equal": "Decision Maker" } }.opportunityandopportunity_idmatch the opportunity itself, by reference or by numeric ID.