rfctl deals create#

Create a new deal for an organization.

Synopsis#

rfctl deals create [flags]

Flags#

FlagTypeRequiredDescription
--orgintYesOrganization ID
--namestringYesDeal name
--stageintYesPipeline stage ID
--ownerintYesOwner user ID
--amountfloatNoDeal amount
--currencystringNoCurrency (e.g., USD, EUR)
--probabilityfloatNoWin probability (0-100)
--close-datestringNoExpected close date (YYYY-MM-DD)

Examples#

Create minimal deal#

rfctl deals create --org 1 --name "New Deal" --stage 1 --owner 1

Create with all fields#

rfctl deals create \
  --org 1 \
  --name "Enterprise License" \
  --stage 2 \
  --owner 1 \
  --amount 50000 \
  --currency "USD" \
  --probability 75 \
  --close-date "2024-03-15"

Output#

Returns JSON with the created deal:

{
  "id": 1,
  "name": "Enterprise License",
  "amount": 50000,
  "currency": "USD",
  "probability": 75,
  "stage_id": 2,
  "owner_id": 1,
  "organization_id": 1,
  "expected_close_date": "2024-03-15",
  "created_at": "2024-01-15T10:30:00Z"
}

Errors#

Error: --org is required
Error: --name is required
Error: --stage is required
Error: --owner is required
Organization not found: 1