---
title: "Create deal"
method: POST
path: "/support/deals"
tags: ["Deals Support"]
---

# Create deal

`POST /support/deals`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/support/deals`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

## Request body

- DealCreate
  - `price` number, nullable
  - `billing_interval` string, nullable
  - `collection_method` string, nullable
  - `currency` string, nullable
  - `base_plan_id` integer, required
  - `ent_overrides` object, nullable
  - `custom_connectors` string[], nullable
  - `contract_start` string, date-time, nullable
  - `contract_end` string, date-time, nullable
  - `trial_end` string, date-time, nullable
  - `payment_terms` string, nullable
  - `notes` string, nullable
  - `contact_name` string, nullable
  - `contact_email` string, nullable
  - `workspace_id` integer, nullable
  - `workspace_create` WorkspaceCreateForDeal
    - `name` string, required
    - `user_email` string, required
  - `customer_email` string, nullable
  - `partner_id` integer, nullable
  - `billing_start` 'now' | 'chargebee_term_end' | 'date' | 'null', nullable
  - `billing_start_at` string, date-time, nullable
  - `status` 'active' | 'trial' | 'null', nullable

## Response `201`

Document created, URL follows

- DealIdsResponse
  - `id` integer, required
  - `workspace_id` integer, required

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
