Scrub API
POST/v1/tools/save_dealfree

Save 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

FieldTypeDefaultWhat it is
dealstringNoneIts id, de_…, to change it
titlestringNoneWhat the deal is
amountnumberNone
currencyone ofNone
GBPEURUSD
stageone ofNone
leadqualifiedproposalwonlost
closesstringNoneYYYY-MM-DD; empty for none
companystringNoneA company's id (co_…) or exact name; empty for none
peoplearrayNoneIts people's ids, pe_…
notesstringNone

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.