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

# Update Transaction Split

> Update a draft or paused split configuration

An active split must be paused before it can be updated. When `feePayer` is `specific_recipient`, also provide a recipient ID belonging to this split.


## OpenAPI

````yaml api-reference/openapi.json PATCH /api/v1/splits/{splitCode}
openapi: 3.1.0
info:
  title: FossaPay API
  description: >-
    FossaPay API for checkout wallets, master-wallet payouts, identity
    verification, customer management, NGN wallets, crypto wallets, transfers,
    fees, banks, and webhooks.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-production.fossapay.com
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /api/v1/splits/{splitCode}:
    parameters:
      - $ref: '#/components/parameters/SplitCode'
    patch:
      tags:
        - Transaction Splits
      summary: Update a draft or paused transaction split
      operationId: ExternalSplitPaymentsController_update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSplitRequest'
      responses:
        '200':
          description: Split updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SplitApiResponse'
components:
  parameters:
    SplitCode:
      name: splitCode
      in: path
      required: true
      description: Public code returned when the split was created.
      schema:
        type: string
        pattern: ^SPL_[A-Fa-f0-9]{16}$
  schemas:
    UpdateSplitRequest:
      type: object
      properties:
        name:
          type: string
          maxLength: 120
        collectionTypes:
          type: array
          minItems: 1
          uniqueItems: true
          items:
            type: string
            enum:
              - checkout
              - direct_deposit
        minimumPaymentAmount:
          type: string
        feePayer:
          type: string
          enum:
            - master_wallet
            - evenly_distributed
            - specific_recipient
        feePayerRecipientId:
          type:
            - string
            - 'null'
          format: uuid
      additionalProperties: false
    SplitApiResponse:
      type: object
      required:
        - success
        - message
        - data
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        data:
          description: >-
            The split, recipient, preview, or transaction collection returned by
            the endpoint
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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