Skip to main content
POST
cURL
Maps one CRM’s deal stages or lost reasons onto the standard values that fill Normalized Stage and Lost Reason Category. Take the source values from List Opportunity Mappings; they match after trimming spaces. Only the values you send change, and null removes a mapping. Stored deals are updated before the call returns, and the response is the same listing for that CRM plus deals_updated.
stage takes qualification, discovery, evaluation, proposal or negotiation. Won and lost deals are closed automatically, so closed is not accepted here. lost_reason takes price, product_gap, timing, competitor, no_decision, disqualified or other.

Authorizations

X-API-KEY
string
header
required

Body

kind
enum<string>
required
  • stage - stage
  • lost_reason - lost_reason
Available options:
stage,
lost_reason
origin
enum<string>
required
  • closecrm - closecrm
  • hubspot - hubspot
Available options:
closecrm,
hubspot
mappings
object
required

CRM value to standard value, e.g. {"Proposal Sent": "proposal"}. null removes a mapping.

Response

canonical_options
object
required
values
object[]
required
deals_updated
integer
required