Skip to main content
GET
Due bucket counts and exact deal amounts of the filtered deals, with each filter's facet

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The member the read is made for (a WorkOS user id). Unset keeps the org-wide posture the key alone grants.

Nexio-Act-As-Email
string

The acting member's verified email, lowercased. Ignored without Nexio-Act-As.

Nexio-Consumer
string

The calling application (workbench).

Nexio-Consumer-Build
string

The calling application's build.

Nexio-Consumer-Vocabulary
string

The access vocabulary hash the calling build was generated against.

Nexio-Request-Id
string

A caller-chosen request id, echoed in the Nexio-Request-Id response header.

Nexio-Timeout
string

The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.

Query Parameters

q
string

Keeps deals whose name holds these words, matched any case, spacing, punctuation and plural ignored.

deal_stage
enum<string>

Keeps Salesforce deals whose state is this deal_stage value; none keeps the deals whose Salesforce stage the machine does not declare.

Available options:
information_gathering,
quoting,
proposal,
closed_won,
closed_lost,
closed_did_not_submit,
none
prospect_stage
enum<string>

Keeps AMS 360 prospects whose state is this prospect_stage value; none keeps the prospects whose stage the machine does not declare.

Available options:
prospect,
marketing,
submission_to_carrier,
quote_received,
proposal,
bind_request,
binder,
new_business,
declined_by_customer,
none
stage
string

Keeps deals whose stage words, ignoring case, or whose machine value is this text, on either machine. deal_stage and prospect_stage filter on one machine.

next_action
enum<string>

Keeps deals whose next action is this one.

Available options:
set_effective_date,
past_effective,
build_submission,
follow_up_quotes,
remarket_or_close,
inactive_prospect,
draft_proposal,
follow_up_client
source
enum<string>

salesforce: every Salesforce deal, each on deal_stage. ams360: every live AMS 360 prospect, one row per customer whether a deal matched it or not, each on prospect_stage. Absent: the Salesforce deals and the prospects no deal matched, each on its own machine.

Available options:
salesforce,
ams360
matched
enum<string>

true: deals that name an account (a Salesforce deal the platform matched to an AMS 360 account, or an AMS 360 prospect). false: deals with no account.

Available options:
true,
false
hide_past_due
enum<string>

Read as past_due_days=1 when true and as 0 when false, unless past_due_days is sent. Left out, the person's saved view or the default applies.

Available options:
true,
false
past_due_days
integer<int64>

Leaves out deals this many days or more past their due date; a deal with no due date stays. 1 leaves out every past due deal. 0 turns it off. Left out, the person's saved view or the default applies.

Required range: 0 <= x <= 3650
account_id
string

Keeps deals on this AMS 360 account, named by its Records account id in either spelling: a Salesforce deal the platform matched to it, or its AMS 360 prospect.

producer
string

Keeps deals whose owner, a Salesforce owner's name or an AMS 360 prospect's producer code, is this value exactly; the seat's own deals, the prospects where it is the producer or CSR included, are the read without it, and the owner field names whose each deal is. The due rollup's producer facet lists the values the seat's deals hold.

deal_type
string

Keeps deals whose deal_type is this value exactly: the Salesforce opportunity type (New Business, Existing Business, Cross-Sell), New Business for an AMS 360 prospect. The due rollup's deal_type facet lists the values the seat's deals hold.

Maximum string length: 64
submission_kind
enum<string>

Keeps AMS 360 rows of this kind, read from AMS 360: renewal_remarketing for an account whose open submission group is coded renewal (REN); new_line for a client's open group coded new business (NB); new_business for a suspect or prospect otherwise. A Salesforce deal has no submission kind. The due rollup's submission_kind facet counts each kind.

Available options:
new_business,
renewal_remarketing,
new_line
hide.stage
string

Comma-separated stage values to leave out, from the requested source's machine, plus no_date for deals with no due date. Empty or none hides nothing. Left out, the person's saved view or the default applies. A read with no source takes no_date only. The view block lists the values with their counts.

no_touch_days
integer<int64>

Leaves out deals with no touch in this many days, except a deal with an open follow-up ahead, a binder or a due date ahead. A deal with no touch date stays. 0 turns it off. Left out, the person's saved view or the default applies.

Required range: 0 <= x <= 3650
created_days
integer<int64>

Leaves out deals created more than this many days ago. 0 turns it off. Left out, the person's saved view or the default applies.

Required range: 0 <= x <= 3650
kind
enum<string>

opportunities, the default: the deals every other parameter describes. leads: the seat's open Salesforce leads (neither converted nor unqualified), newest first by created day, each in the no_date bucket with kind lead. all: every opportunity in the requested order, then the open leads newest first; a hidden no_date bucket hides the leads. leads and all take source=salesforce and no stage, next action, matched, account, deal_type or q filter; producer narrows the leads by owner, and the other hide filters narrow opportunities only.

Available options:
opportunities,
leads,
all

Response

OK

data
object
required
request_id
string
required
source
object
required
unreachable
object[] | null
required
warnings
object[] | null
required
missing_count
integer<int64>

For a hierarchy record, source records missing that level after source filters and before name/ID filters.