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

# Transfer deals between stages

> Transfer every deal from one stage to another within a funnel, with their active transition records. All or nothing: when the stage holds a deal the user can't edit, nothing moves and the answer is 403 (ENG-9797).



## OpenAPI

````yaml /api-reference/cx/swagger.json post /deals/_transfer
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /deals/_transfer:
    post:
      tags:
        - deals
      summary: Transfer deals between stages
      description: >-
        Transfer every deal from one stage to another within a funnel, with
        their active transition records. All or nothing: when the stage holds a
        deal the user can't edit, nothing moves and the answer is 403
        (ENG-9797).
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_deals.TransferDealsRequest'
        description: Transfer request
        required: true
      responses:
        '200':
          description: Transfer result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_deals.TransferDealsResponse'
        '400':
          description: Bad request - invalid request body
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: The stage holds deals the user can't edit; nothing moved
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_deals.TransferDealsRequest:
      type: object
      properties:
        from:
          type: string
        funnel:
          type: string
        to:
          type: string
    pkg_routes_deals.TransferDealsResponse:
      type: object
      properties:
        ok:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.