record_sale
Record a sale on a lead
Records one verified sale on a lead: the amount in minor units with its currency, what the amount is (revenue_basis), how it was verified, when it happened and the invoice or order number.
Leave revenue_basis as booked for the sale itself: revenue, ROAS and cost per sale count booked sales only. Use only an amount the person stated or showed you: never estimate, round or convert currencies. Unless mark_won is false, a lead that can be won is closed as won in the same step. Duplicate protection: the same external_id is the same sale and changes nothing, and the same request_key returns the first result, so always pass one of them. Revenue is reported per currency and never added across currencies. This is revenue, not profit. An estimate belongs in manage_opportunities. To take money back use record_refund.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
lead_id |
string | yes | The lead id from list_leads. |
amount_minor |
integer | yes | The sale amount in minor units: 12500000 for 125,000.00. |
currency |
string | yes | ISO 4217 currency of the amount, for example DKK. |
revenue_basis |
string | no | Default booked: the sale as agreed, which is what results count. Use invoiced or collected only to add that statement for a sale already booked.One of: booked, invoiced, collected |
verification_source |
string | no | How the amount was verified: manual (the person said so), crm or invoice. Default manual.One of: manual, crm, invoice |
occurred_at |
string | no | When the sale happened (ISO 8601). Default now. Not in the future. |
external_id |
string | no | Invoice or order number. The same number is never recorded twice. |
opportunity_id |
string | no | The opportunity on this lead that the sale closes (it is marked won). |
note |
string | no | A short note without personal details. |
mark_won |
boolean | no | Close the lead as won when it can be. Default true. |
request_key |
string | no | Any unique string for this request. The same key returns the first result instead of a second sale. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is in the list every assistant sees when it connects.
How tools behave: confirmation, review links, errors and limits
In the same group
create_lead · create_status_link · get_crm_status · get_lead · import_leads · list_leads · manage_opportunities · record_refund · revoke_status_link · update_lead · update_lead_status