Skip to content

Lead.convert

POST /{namespace}/leads/{lead}/convert

Convert ends a qualified Lead’s pursuit as a Lead: it opens a Deal or routes the Lead to self-serve checkout.

Noun
Lead
Mode
do
Event
Lead.converted

Inputs

InputTypeRequiredDescription
leadLeadrequiredThe qualified Lead.
offerOfferrequiredThe Offer the Deal pursues, or the checkout sells.
routestringrequiredWhere the Lead goes: deal for an assisted sale or checkout for self-serve.

Outputs

OutputTypeRequiredDescription
dealDealThe opened Deal, when the route is deal.
leadLeadrequiredThe Lead, now converted.

Effects

  • Emits Lead.converted.
  • Performed by the Sales Lead.
  • Two-way: it runs at once, in the try, send and do modes.
  • Moves the Lead to converted and keeps its Acquisition on the Deal and the later Customer.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Lead.convert

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.