---
updatedAt: 2026-08-12T01:17:13.000Z
agentTools:
  projectIndex: https://developers.activecampaign.com/llms.txt
---

# Create a deal

Create a new deal. Every required deal custom field (isRequired on dealCustomFieldMeta) that has no fieldDefault needs a value in deal.fields; without one no deal is created and the response is 422 with an error per missing field, naming the field and its customFieldId. A fieldDefault counts as a value, and hidden, lookup and calculated fields are not enforced.

To create a deal, following permissions are required.

* Deal permission: the user should have a permission to manage deals.
* Pipeline-specific permission: the user should have a permission to manage the pipeline a new deal belongs to.

By default, primary contact and deal stage are also returned in the response.

```json POST /deals (Example REQUEST)
{
  "deal": {
    "contact": "51",
    "account": "45",
    "description": "This deal is an important deal",
    "currency": "usd",
    "group": "1",
    "owner": "1",
    "percent": null,
    "stage": "1",
    "status": 0,
    "title": "AC Deal",
    "value": 45600,
    "fields": [
      {
        "customFieldId": 1,
        "fieldValue": "First field value"
      },
      {
        "customFieldId": 2,
        "fieldValue": "2008-01-20"
      },
      {
        "customFieldId": 3,
        "fieldValue": 5500,
        "fieldCurrency": "EUR"
      }
    ]
  }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "v3",
    "version": "3"
  },
  "servers": [
    {
      "url": "https://{youraccountname}.api-us1.com/api/3",
      "variables": {
        "youraccountname": {
          "default": "youraccountname"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Api-Token",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/deals": {
      "post": {
        "summary": "Create a deal",
        "description": "Create a new deal. Every required deal custom field (isRequired on dealCustomFieldMeta) that has no fieldDefault needs a value in deal.fields; without one no deal is created and the response is 422 with an error per missing field, naming the field and its customFieldId. A fieldDefault counts as a value, and hidden, lookup and calculated fields are not enforced.",
        "operationId": "create-a-deal-new",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "deal": {
                    "description": "The deal to create or update.",
                    "required": [
                      "title",
                      "account",
                      "contact",
                      "value",
                      "currency",
                      "group",
                      "stage",
                      "owner"
                    ],
                    "properties": {
                      "title": {
                        "description": "Deal's title.",
                        "type": "string"
                      },
                      "description": {
                        "description": "Deal's description",
                        "type": "string"
                      },
                      "account": {
                        "description": "Deal’s account id. Required if `deal.contact` is not provided.",
                        "type": "string"
                      },
                      "contact": {
                        "description": "Deal's primary contact's id. Required if `deal.account` is not provided.",
                        "type": "string"
                      },
                      "value": {
                        "description": "Deal's value in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero.",
                        "type": "integer",
                        "format": "int32"
                      },
                      "currency": {
                        "description": "Deal's currency in 3-digit ISO format, lowercased.",
                        "type": "string"
                      },
                      "group": {
                        "description": "Deal's pipeline id. Required if `deal.stage` is not provided. If `deal.group` is not provided, the stage's pipeline will be assigned to the deal automatically.",
                        "type": "string"
                      },
                      "stage": {
                        "description": "Deal's stage id. Required if `deal.group` is not provided. If `deal.stage` is not provided, the deal will be assigned with the first stage in the pipeline provided in `deal.group`.",
                        "type": "string"
                      },
                      "owner": {
                        "description": "Deal's owner id. Required if pipeline's auto-assign option is disabled.",
                        "type": "string"
                      },
                      "percent": {
                        "description": "Deal's percentage.",
                        "type": "integer",
                        "format": "int32"
                      },
                      "status": {
                        "description": "Deal's status. See [available values](ref:deal).",
                        "type": "integer",
                        "format": "int32",
                        "default": 0
                      },
                      "fields": {
                        "description": "Deal's custom field values `{customFieldId: string, fieldValue: string, fieldCurrency?:string}[]`. Must include every required custom field that has no fieldDefault.",
                        "type": "array",
                        "items": {
                          "required": [
                            "customFieldId",
                            "fieldValue"
                          ],
                          "properties": {
                            "customFieldId": {
                              "description": "Field ID, ID of the Custom Field Meta Data",
                              "type": "integer",
                              "format": "int32"
                            },
                            "fieldValue": {
                              "description": "Updated field value. For `currency` field, this needs to be in cents not dollars (or 100 x Base Unit).",
                              "type": "string"
                            },
                            "fieldCurrency": {
                              "description": "Required only for the `currency` field type. The three letter currency code for the currency value",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "customerAccount": {
                        "description": "Alternative to account: ID of the account (organization) the deal belongs to.",
                        "type": "string"
                      },
                      "organization": {
                        "description": "Alternative to account: ID of the account (organization) the deal belongs to.",
                        "type": "string"
                      },
                      "firstName": {
                        "description": "First name for the contact created when contact is an email address that matches no existing contact; ignored otherwise.",
                        "type": "string"
                      },
                      "lastName": {
                        "description": "Last name for the contact created when contact is an email address that matches no existing contact; ignored otherwise.",
                        "type": "string"
                      },
                      "phone": {
                        "description": "Phone for the contact created when contact is an email address that matches no existing contact; ignored otherwise.",
                        "type": "string"
                      },
                      "winProbability": {
                        "description": "Win probability score; null means it has not been calculated.",
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "useDefaults": {
                    "description": "Read but has no effect.",
                    "type": "boolean"
                  },
                  "validateData": {
                    "description": "true validates the custom field values in deal.fields before the deal is saved.",
                    "type": "boolean"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "POST /deals (Example REQUEST)": {
                  "summary": "POST /deals (Example REQUEST)",
                  "value": {
                    "deal": {
                      "contact": "51",
                      "account": "45",
                      "description": "This deal is an important deal",
                      "currency": "usd",
                      "group": "1",
                      "owner": "1",
                      "percent": null,
                      "stage": "1",
                      "status": 0,
                      "title": "AC Deal",
                      "value": 45600,
                      "fields": [
                        {
                          "customFieldId": 1,
                          "fieldValue": "First field value"
                        },
                        {
                          "customFieldId": 2,
                          "fieldValue": "2008-01-20"
                        },
                        {
                          "customFieldId": 3,
                          "fieldValue": 5500,
                          "fieldCurrency": "EUR"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "Result": {
                    "summary": "The resource was created",
                    "value": "{\n  \"contacts\": [\n    {\n      \"adate\": \"2017-02-06 15:50:11\",\n      \"bounced_date\": \"0000-00-00\",\n      \"bounced_hard\": \"0\",\n      \"bounced_soft\": \"0\",\n      \"cdate\": \"2017-02-03T11:26:41-06:00\",\n      \"deleted\": \"0\",\n      \"edate\": \"0000-00-00 00:00:00\",\n      \"email\": \"johndoe@example.com\",\n      \"email_domain\": \"\",\n      \"email_local\": \"\",\n      \"firstName\": \"\",\n      \"gravatar\": \"1\",\n      \"hash\": \"e1705a92f24edf5313ed21df44d6ff5f\",\n      \"id\": \"51\",\n      \"ip\": \"0\",\n      \"lastName\": \"\",\n      \"links\": {\n        \"bounceLogs\": \"https://:account.api-us1.com/api/3/contacts/51/bounceLogs\",\n        \"contactAutomations\": \"https://:account.api-us1.com/api/3/contacts/51/contactAutomations\",\n        \"contactData\": \"https://:account.api-us1.com/api/3/contacts/51/contactData\",\n        \"contactDeals\": \"https://:account.api-us1.com/api/3/contacts/51/contactDeals\",\n        \"contactGoals\": \"https://:account.api-us1.com/api/3/contacts/51/contactGoals\",\n        \"contactLists\": \"https://:account.api-us1.com/api/3/contacts/51/contactLists\",\n        \"contactLogs\": \"https://:account.api-us1.com/api/3/contacts/51/contactLogs\",\n        \"contactTags\": \"https://:account.api-us1.com/api/3/contacts/51/contactTags\",\n        \"deals\": \"https://:account.api-us1.com/api/3/contacts/51/deals\",\n        \"fieldValues\": \"https://:account.api-us1.com/api/3/contacts/51/fieldValues\",\n        \"geoIps\": \"https://:account.api-us1.com/api/3/contacts/51/geoIps\",\n        \"notes\": \"https://:account.api-us1.com/api/3/contacts/51/notes\",\n        \"organization\": \"https://:account.api-us1.com/api/3/contacts/51/organization\",\n        \"plusAppend\": \"https://:account.api-us1.com/api/3/contacts/51/plusAppend\",\n        \"scoreValues\": \"https://:account.api-us1.com/api/3/contacts/51/scoreValues\",\n        \"trackingLogs\": \"https://:account.api-us1.com/api/3/contacts/51/trackingLogs\"\n      },\n      \"organization\": null,\n      \"orgid\": \"0\",\n      \"phone\": \"\",\n      \"rating_tstamp\": \"0000-00-00\",\n      \"segmentio_id\": \"\",\n      \"sentcnt\": \"0\",\n      \"socialdata_lastcheck\": \"0000-00-00 00:00:00\",\n      \"ua\": \"\",\n      \"udate\": \"2017-02-03T11:26:41-06:00\"\n    }\n  ],\n    \"deal\": {\n        \"description\": \"This deal is an important deal\",\n        \"currency\": \"usd\",\n        \"percent\": null,\n        \"status\": 0,\n        \"title\": \"AC Deal\",\n        \"value\": 45600,\n        \"organization\": 45,\n        \"contact\": 1,\n        \"group\": \"1\",\n        \"owner\": \"1\",\n        \"stage\": \"1\",\n        \"cdate\": \"2019-12-09T12:29:33-06:00\",\n        \"mdate\": \"2019-12-09T12:29:33-06:00\",\n        \"nextdate\": null,\n        \"hash\": \"c3a5497c\",\n        \"winProbability\": null,\n        \"winProbabilityMdate\": null,\n        \"links\": {\n            \"dealActivities\": \"https://:account.api-us1.com/api/3/deals/51/dealActivities\",\n            \"contact\": \"https://:account.api-us1.com/api/3/deals/51/contact\",\n            \"contactDeals\": \"https://:account.api-us1.com/api/3/deals/51/contactDeals\",\n            \"group\": \"https://:account.api-us1.com/api/3/deals/51/group\",\n            \"nextTask\": \"https://:account.api-us1.com/api/3/deals/51/nextTask\",\n            \"notes\": \"https://:account.api-us1.com/api/3/deals/51/notes\",\n            \"account\": \"https://:account.api-us1.com/api/3/deals/51/account\",\n            \"customerAccount\": \"https://:account.api-us1.com/api/3/deals/51/customerAccount\",\n            \"organization\": \"https://:account.api-us1.com/api/3/deals/51/organization\",\n            \"owner\": \"https://:account.api-us1.com/api/3/deals/51/owner\",\n            \"scoreValues\": \"https://:account.api-us1.com/api/3/deals/51/scoreValues\",\n            \"stage\": \"https://:account.api-us1.com/api/3/deals/51/stage\",\n            \"tasks\": \"https://:account.api-us1.com/api/3/deals/51/tasks\",\n            \"dealCustomFieldData\": \"https://:account.api-us1.com/api/3/deals/51/dealCustomFieldData\"\n        },\n        \"fields\": [\n            {\n                \"customFieldId\": 1,\n                \"fieldValue\": \"First field value\",\n                \"dealId\": \"51\"\n            },\n            {\n                \"customFieldId\": 2,\n                \"fieldValue\": \"2008-01-20\",\n                \"dealId\": \"51\"\n            },\n            {\n                \"customFieldId\": 3,\n                \"fieldValue\": 5500,\n                \"fieldCurrency\": \"EUR\",\n              \t\"dealId\": \"51\"\n            }\n        ],\n        \"id\": \"51\",\n        \"isDisabled\": false,\n        \"account\": 45,\n        \"customerAccount\": 45\n    },\n  \"dealStages\": [\n    {\n      \"cardRegion1\": \"title\",\n      \"cardRegion2\": \"next-action\",\n      \"cardRegion3\": \"show-avatar\",\n      \"cardRegion4\": \"contact-fullname-orgname\",\n      \"cardRegion5\": \"value\",\n      \"cdate\": \"2017-01-20T09:27:32-06:00\",\n      \"color\": \"C481DF\",\n      \"dealOrder\": \"next-action DESC\",\n      \"group\": \"1\",\n      \"id\": \"1\",\n      \"links\": {\n        \"group\": \"https://:account.api-us1.com/api/3/dealStages/1/group\"\n      },\n      \"order\": \"1\",\n      \"title\": \"To Contact\",\n      \"udate\": \"2017-01-20T09:27:32-06:00\",\n      \"width\": \"280\"\n    }\n  ]\n}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {},
                  "type": "object"
                },
                "examples": {
                  "Result": {
                    "summary": "The request was invalid",
                    "value": "{}"
                  }
                }
              }
            }
          },
          "422": {
            "description": "No deal was created, for example because a required custom field with no fieldDefault has no value in deal.fields (one error per field), the title contains emoji or other 4-byte characters, or validateData found an invalid custom field value.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {},
                  "type": "object"
                },
                "examples": {
                  "Result": {
                    "summary": "A required custom field has no value",
                    "value": "{\"errors\":[{\"code\":\"field_missing\",\"title\":\"Tax ID is required\",\"detail\":\"The deal field \\\"Tax ID\\\" is required and has no default, so a new deal needs a value for it.\",\"customFieldId\":12,\"fieldLabel\":\"Tax ID\",\"error\":\"required_custom_field_missing\"}]}"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```