Create Deal

activecampaign.create_deal
ActionCRM & salesconnection required

Calls the ActiveCampaign API with the connection's credentials.

Create a deal with POST /deals. Value is an integer in cents, currency is a three-letter code, and the deal needs either a contact or an account to belong to.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
ActiveCampaign
Secret shape
the API key, or {"api_token": "…"}
Config it needs
account, base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

13 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
title
The deal's title.
stringYes———
value
Deal value in cents — 45600 means 456.00 in the deal's currency.
numberYes—≥ 0—
currency
Three-letter ISO currency code, for example usd.
stringYes———
owner
Id of the user who owns the deal.
stringNo———
contact
Id or email address of the deal's primary contact; an unknown email creates the contact.
stringNo——51
account
Id of the account the deal belongs to.
stringNo——45
group
Id of the pipeline the deal belongs to; required when no stage is given.
stringNo——1
stage
Id of the pipeline stage the deal starts in; required when no pipeline is given.
stringNo——1
description
Notes about the deal.
stringNo———
percent
Manual win probability, 0 to 100.
numberNo—0–100—
status
Deal status: 0 open, 1 won, 2 lost.
numberNo00–2—
fields
Custom deal-field values, as a JSON array of {"customFieldId": 1, "fieldValue": "…"} objects.
arrayNo—array of object—
extra
Further keys to merge into the deal object sent to ActiveCampaign, as a JSON object.
objectNo———
  • At least one of contact, account must be set.
  • At least one of group, stage must be set.

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "account": "45",
  "contact": "51",
  "group": "1",
  "stage": "1",
  "status": 0
}

Output

One shape.

result

FieldTypeExample
id
The deal's ActiveCampaign id.
string—
title
The deal title.
string—
value
The deal value in cents, as a string.
string—
currency
The deal's three-letter currency code.
string—
stage
Id of the pipeline stage the deal sits in.
string—
status
Deal status: 0 open, 1 won, 2 lost.
string—
contact
Id of the deal's primary contact.
string—
{
  "contact": "",
  "currency": "",
  "id": "",
  "stage": "",
  "status": "",
  "title": "",
  "value": ""
}

See Create Deal run in a workflow.

In a technical demo we add the ActiveCampaign connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.