POST
/v1/tools/save_dealfreeSave a deal
Saves a deal in this workspace's CRM, free. A new deal needs its title, what the deal is; give deal (de_…) to change one, and only the fields given change. amount is a number in the currency (12400.50); currency is GBP, EUR or USD; stage is lead, qualified, proposal, won or lost; closes is a day, YYYY-MM-DD, or empty for none. company is a company's id (co_…) or exact name; people is the list of its people's ids (pe_…), all of them, replacing those it had.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
deal | string | None | Its id, de_…, to change it |
title | string | None | What the deal is |
amount | number | None | |
currency | one of | None | GBPEURUSD |
stage | one of | None | leadqualifiedproposalwonlost |
closes | string | None | YYYY-MM-DD; empty for none |
company | string | None | A company's id (co_…) or exact name; empty for none |
people | array | None | Its people's ids, pe_… |
notes | string | None |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/save_deal \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.