> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextlevelmca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a deal

> Opens a deal on a business: pass `business_id`, or an inline `business` that is matched by EIN / legal name + state and created when new. The optional `owner` is matched to an existing person by email / phone or created and linked to the business. The deal lands in the first pre-offer stage and fires `deal.created`. Send `Idempotency-Key` to make retries safe.



## OpenAPI

````yaml /openapi/public-v1.json post /v1/deals
openapi: 3.0.0
info:
  title: NextLevel MCA Public API
  description: >-
    REST API for the NextLevel MCA deal platform. Objects flow Businesses →
    People → Deals → Submissions → Offers → Advances.


    **Authentication.** Send `Authorization: Bearer <key>` with an API key
    (`nlmca_live_…`, created in Settings → Developers) or an OAuth access token.
    Keys are scoped to one location.


    **Conventions.** JSON only. Cursor pagination (`limit` ≤ 100, `cursor` from
    `meta.next_cursor`). Every success is `{ data, meta }`; every error is `{
    error: { type, message, code, param, request_id } }`. POST endpoints accept
    `Idempotency-Key` (24h replay). Rate limit 300 requests/min per credential
    (`X-RateLimit-*` headers).


    **Scopes.** Keys with no scopes have all of them. Otherwise:

    - `businesses:read` — Read businesses and their notes, tasks and activity

    - `businesses:write` — Create and update businesses, notes and tasks

    - `people:read` — Read people (contacts and owners)

    - `people:write` — Create and update people

    - `deals:read` — Read deals, submissions and the pipeline

    - `deals:write` — Create and update deals, move stages

    - `documents:read` — Read documents and statement analysis

    - `documents:write` — Upload documents and request documents from merchants

    - `lenders:read` — Read lenders, criteria and lender matches

    - `lenders:write` — Create and update lenders and criteria

    - `submissions:write` — Submit deals to lenders and withdraw submissions

    - `offers:read` — Read offers

    - `offers:write` — Log and update offers, set the primary offer

    - `advances:read` — Read funded advances and renewal flags

    - `advances:write` — Update advances

    - `portal:send` — Generate and send merchant portal links

    - `webhooks:manage` — Manage webhook subscriptions
  version: '1.0'
  contact: {}
servers:
  - url: https://api.nextlevelmca.com
    description: Production
security:
  - bearer: []
tags:
  - name: Businesses
    description: Merchant businesses and their notes, tasks and activity
  - name: People
    description: Contacts and owners. Phone lookups normalise to E.164.
  - name: Deals
    description: Deals, stage moves, renewals and the pipeline
  - name: Documents
    description: Documents, presigned uploads, document requests and statement analysis
  - name: Lenders
    description: Lenders and their criteria
  - name: Lender matches
    description: Criteria-driven lender matching for a deal
  - name: Submissions
    description: Sending deals to lenders
  - name: Offers
    description: Lender offers and the primary offer
  - name: Advances
    description: Funded advances and renewal readiness
  - name: Merchant portal
    description: Magic links for the merchant portal
  - name: Webhooks
    description: Outbound event subscriptions
paths:
  /v1/deals:
    post:
      tags:
        - Deals
      summary: Create a deal
      description: >-
        Opens a deal on a business: pass `business_id`, or an inline `business`
        that is matched by EIN / legal name + state and created when new. The
        optional `owner` is matched to an existing person by email / phone or
        created and linked to the business. The deal lands in the first
        pre-offer stage and fires `deal.created`. Send `Idempotency-Key` to make
        retries safe.
      operationId: deals_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DealCreateDto'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - meta
                properties:
                  data:
                    $ref: '#/components/schemas/DealDto'
                  meta:
                    $ref: '#/components/schemas/EmptyMetaDto'
        '400':
          description: Validation failed. `error.param` names the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeDto'
        '401':
          description: Missing, invalid, expired or revoked credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeDto'
        '403':
          description: Credential lacks the scope, or the role lacks the permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeDto'
        '409':
          description: Conflict (duplicate or idempotency key reuse).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeDto'
        '429':
          description: Rate limit exceeded. See `X-RateLimit-*` and `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeDto'
      security:
        - bearer: []
components:
  schemas:
    DealCreateDto:
      type: object
      properties:
        business_id:
          type: string
          description: Existing business to open the deal on. Provide this or `business`.
        business:
          description: >-
            Inline business details when you do not have a business id. Matched
            by EIN, else by normalised legal name + state; a new business is
            created when nothing matches.
          allOf:
            - $ref: '#/components/schemas/DealBusinessInputDto'
        owner:
          description: >-
            Primary owner. Matched to an existing person by email / phone,
            otherwise a person is created and linked to the business. SSNs are
            set through `PATCH /v1/people/{id}`.
          allOf:
            - $ref: '#/components/schemas/DealOwnerInputDto'
        requested_amount:
          type: number
          minimum: 0
          description: Requested funding amount in dollars.
        use_of_funds:
          type: string
          maxLength: 2000
          description: What the funds are for.
        annual_revenue:
          type: number
          minimum: 0
          description: >-
            Stated annual revenue in dollars. Bank-verified revenue from
            statement analysis takes precedence in lender matching.
        product_type:
          type: string
          enum:
            - mca
            - term_loan
            - loc
            - equipment
            - factoring
          default: mca
          description: Product requested.
        desired_term_months:
          type: number
          minimum: 1
          maximum: 120
          description: Desired term in months.
        desired_frequency:
          type: string
          enum:
            - daily
            - weekly
            - bi-weekly
            - monthly
          description: Desired payment frequency.
        paper_grade:
          type: string
          maxLength: 10
          description: >-
            Paper grade override (`A`–`D`). Setting it marks
            `paper_grade_source` as `manual`; omit to let the platform compute
            it from bank data.
        originator_id:
          type: string
          description: Originator (user id). Defaults to the credential’s creator.
        closer_id:
          type: string
          description: Closer (user id).
        lead_source:
          type: string
          maxLength: 100
          description: >-
            Where the lead came from, free text (e.g. `website`,
            `referral:acme`).
        state_incorporated:
          type: string
          maxLength: 50
          description: State of incorporation.
        risk_flags:
          type: object
          description: >-
            Rep-entered risk facts used by lender matching: `{ prior_default,
            reversals, bankruptcy_months, seasonal, franchise_years }`.
        form_data:
          type: object
          description: >-
            Application form data keyed by field key (standard and custom
            fields). Stored as given.
        ghl_contact_id:
          type: string
          maxLength: 255
          description: >-
            CRM contact id to link the primary owner to, when the lead already
            exists in the CRM.
    DealDto:
      type: object
      properties:
        id:
          type: string
          description: Deal id.
        business_id:
          type: string
          nullable: true
          description: >-
            Business the deal belongs to (null only for legacy deals that were
            never linked).
        business:
          nullable: true
          description: Linked business summary. Use `include=business` for the full record.
          allOf:
            - $ref: '#/components/schemas/DealBusinessSummaryDto'
        business_name:
          type: string
          nullable: true
          description: Business name as captured on the application.
        dba:
          type: string
          nullable: true
        entity_type:
          type: string
          nullable: true
        industry:
          type: string
          nullable: true
        business_address:
          type: string
          nullable: true
        business_city:
          type: string
          nullable: true
        business_state:
          type: string
          nullable: true
        business_zip:
          type: string
          nullable: true
        business_phone:
          type: string
          nullable: true
        business_start_date:
          type: string
          nullable: true
          description: '`YYYY-MM-DD`.'
        state_incorporated:
          type: string
          nullable: true
        owner:
          nullable: true
          description: >-
            Primary owner as captured on the application. Use `include=people`
            for linked person records.
          allOf:
            - $ref: '#/components/schemas/DealOwnerSummaryDto'
        requested_amount:
          type: number
          nullable: true
          description: Requested funding amount in dollars.
        annual_revenue:
          type: number
          nullable: true
          description: Stated annual revenue in dollars.
        use_of_funds:
          type: string
          nullable: true
        product_type:
          type: string
          nullable: true
          enum:
            - mca
            - term_loan
            - loc
            - equipment
            - factoring
        desired_term_months:
          type: number
          nullable: true
        desired_frequency:
          type: string
          nullable: true
          enum:
            - daily
            - weekly
            - bi-weekly
            - monthly
        paper_grade:
          type: string
          nullable: true
          description: Paper grade `A`–`D`.
        paper_grade_source:
          type: string
          nullable: true
          description: '`computed` (from bank data and risk flags) or `manual` (overridden).'
        risk_flags:
          type: object
          description: >-
            Rep-entered risk facts: `{ prior_default, reversals,
            bankruptcy_months, seasonal, franchise_years }`.
        status:
          type: string
          nullable: true
          description: >-
            Deal status slug (e.g. `new`, `submitted`, `approved`, `sold`,
            `funded`, `closed_out`). Stages are the v2 view of the same
            progression.
        stage:
          nullable: true
          description: Current pipeline stage.
          allOf:
            - $ref: '#/components/schemas/DealStageDto'
        stage_entered_at:
          type: string
          nullable: true
          description: When the deal entered its current stage (ISO 8601 UTC).
        days_in_stage:
          type: number
          nullable: true
          description: Whole days in the current stage.
        primary_offer:
          nullable: true
          description: >-
            The primary offer, when one is set. Its status drives the deal
            status.
          allOf:
            - $ref: '#/components/schemas/DealPrimaryOfferDto'
        originator:
          nullable: true
          description: Assigned originator.
          allOf:
            - $ref: '#/components/schemas/DealUserDto'
        closer:
          nullable: true
          description: Assigned closer.
          allOf:
            - $ref: '#/components/schemas/DealUserDto'
        source:
          type: string
          nullable: true
          description: >-
            How the deal was created: `api`, `user_created`, `embed_form`,
            `workflow`, `renewal`, …
        lead_source:
          type: string
          nullable: true
          description: Where the lead came from, free text.
        form_data:
          type: object
          description: >-
            Application form data keyed by field key (custom fields included).
            Keys that look like SSNs, tax ids, bank account or routing numbers,
            passwords or secrets are removed. Update with a merge-patch via
            `PATCH /v1/deals/{id}`.
        submissions_count:
          type: number
          description: Number of lender submissions.
        offers_count:
          type: number
          description: Number of offers logged.
        renewal_of_deal_id:
          type: string
          nullable: true
          description: 'For renewals: the deal being renewed.'
        renewal_of_advance_id:
          type: string
          nullable: true
          description: 'For renewals: the advance being renewed.'
        manually_closed:
          type: boolean
          description: True when the deal was closed manually after funding.
        closed_at:
          type: string
          nullable: true
          description: ISO 8601 UTC.
        closed_reason:
          type: string
          nullable: true
          description: Reason given when the deal was marked dead.
        ghl_contact_id:
          type: string
          nullable: true
          description: CRM contact id of the primary owner. Read-only.
        ghl_opportunity_id:
          type: string
          nullable: true
          description: CRM opportunity id, when one exists. Read-only.
        created_at:
          type: string
          description: ISO 8601 UTC.
        updated_at:
          type: string
          description: ISO 8601 UTC.
      required:
        - id
        - business_id
        - business
        - business_name
        - dba
        - entity_type
        - industry
        - business_address
        - business_city
        - business_state
        - business_zip
        - business_phone
        - business_start_date
        - state_incorporated
        - owner
        - requested_amount
        - annual_revenue
        - use_of_funds
        - product_type
        - desired_term_months
        - desired_frequency
        - paper_grade
        - paper_grade_source
        - risk_flags
        - status
        - stage
        - stage_entered_at
        - days_in_stage
        - primary_offer
        - originator
        - closer
        - source
        - lead_source
        - form_data
        - submissions_count
        - offers_count
        - renewal_of_deal_id
        - renewal_of_advance_id
        - manually_closed
        - closed_at
        - closed_reason
        - ghl_contact_id
        - ghl_opportunity_id
        - created_at
        - updated_at
    EmptyMetaDto:
      type: object
      properties: {}
    ErrorEnvelopeDto:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/PublicErrorDto'
      required:
        - error
    DealBusinessInputDto:
      type: object
      properties:
        legal_name:
          type: string
          maxLength: 255
          description: >-
            Legal name. Matched (with `state`) against existing businesses
            before creating a new one.
        dba:
          type: string
          maxLength: 255
        ein:
          type: string
          maxLength: 20
          description: EIN. An EIN match always reuses the existing business.
        entity_type:
          type: string
          maxLength: 50
        industry:
          type: string
          maxLength: 100
        address:
          type: string
        city:
          type: string
          maxLength: 100
        state:
          type: string
          maxLength: 50
        zip:
          type: string
          maxLength: 20
        phone:
          type: string
          maxLength: 50
        email:
          type: string
          maxLength: 255
        business_start_date:
          type: string
          description: '`YYYY-MM-DD`.'
      required:
        - legal_name
    DealOwnerInputDto:
      type: object
      properties:
        first_name:
          type: string
          maxLength: 100
        last_name:
          type: string
          maxLength: 100
        email:
          type: string
          maxLength: 255
          description: Used to match an existing person (and CRM contact).
        phone:
          type: string
          maxLength: 50
          description: Used to match an existing person (and CRM contact).
        address:
          type: string
        city:
          type: string
          maxLength: 100
        state:
          type: string
          maxLength: 50
        zip:
          type: string
          maxLength: 20
        dob:
          type: string
          description: Date of birth `YYYY-MM-DD`.
        ownership_percent:
          type: number
          minimum: 0
          maximum: 100
          default: 100
      required:
        - first_name
    DealBusinessSummaryDto:
      type: object
      properties:
        id:
          type: string
          description: Business id.
        legal_name:
          type: string
          description: Legal name.
        dba:
          type: string
          nullable: true
      required:
        - id
        - legal_name
        - dba
    DealOwnerSummaryDto:
      type: object
      properties:
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
      required:
        - first_name
        - last_name
        - email
        - phone
    DealStageDto:
      type: object
      properties:
        id:
          type: string
          description: Stage id.
        label:
          type: string
          description: Label as shown on the board.
        phase:
          type: string
          enum:
            - preoffer
            - offer
            - contract
            - funded
            - dead
          description: Phase the stage belongs to.
        sort_order:
          type: number
          description: Board order (ascending).
        event:
          type: string
          nullable: true
          enum:
            - first_submission_sent
            - first_offer_logged
            - merchant_accepted_offer
            - contracts_requested
            - contracts_sent
            - contracts_signed
            - marked_funded
            - marked_dead
          description: System event bound to this stage, when it is event-driven.
      required:
        - id
        - label
        - phase
        - sort_order
        - event
    DealPrimaryOfferDto:
      type: object
      properties:
        id:
          type: string
          description: Offer id.
        lender_id:
          type: string
          nullable: true
        lender_name:
          type: string
          nullable: true
        amount:
          type: number
          nullable: true
          description: Offered amount in dollars.
        factor_rate:
          type: number
          nullable: true
        status:
          type: string
          nullable: true
          description: >-
            Offer status slug, e.g. `new_offer`, `sold`, `contracts_out`,
            `funded`.
      required:
        - id
        - lender_id
        - lender_name
        - amount
        - factor_rate
        - status
    DealUserDto:
      type: object
      properties:
        id:
          type: string
          description: User id.
        name:
          type: string
          description: Display name.
      required:
        - id
        - name
    PublicErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - validation_error
            - authentication_error
            - permission_error
            - not_found
            - conflict
            - rate_limit_error
            - api_error
        message:
          type: string
          description: Human-readable explanation, safe to show to an operator or an agent.
        code:
          type: string
          description: >-
            Stable machine-readable code, e.g. `missing_scope`,
            `duplicate_business`.
        param:
          type: string
          description: Request field the error refers to, when applicable.
        request_id:
          type: string
          description: Echo of the `X-Request-Id` header. Quote it when contacting support.
      required:
        - type
        - message
        - request_id
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key or JWT
      type: http
      description: API key (`nlmca_live_…`) or OAuth access token

````

## Related topics

- [Create a deal task](/api-reference/deals/create-a-deal-task.md)
- [MCP server](/mcp/overview.md)
- [Connect from ChatGPT](/mcp/connect-from-chatgpt.md)
