> ## 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.

# Create Transaction Split

> Create a reusable NGN percentage or flat split

Creates a draft split and returns its public `splitCode`. Add recipients and configure the fee payer before activation.

For a flat split, `minimumPaymentAmount` is required and must be a whole NGN amount.

See the [Transaction Splits Guide](https://docs.fossapay.com/guides/transaction-splits.md) for the complete setup and settlement flow.


## OpenAPI

````yaml api-reference/openapi.json POST /api/v1/splits
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:
    post:
      tags:
        - Transaction Splits
      summary: Create a reusable NGN transaction split
      operationId: ExternalSplitPaymentsController_create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSplitRequest'
      responses:
        '201':
          description: Split created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SplitApiResponse'
components:
  schemas:
    CreateSplitRequest:
      type: object
      required:
        - name
        - type
        - currency
        - collectionTypes
      properties:
        name:
          type: string
          maxLength: 120
        type:
          type: string
          enum:
            - percentage
            - flat
        currency:
          type: string
          const: NGN
        collectionTypes:
          type: array
          minItems: 1
          uniqueItems: true
          items:
            type: string
            enum:
              - checkout
              - direct_deposit
        minimumPaymentAmount:
          type: string
          description: Required before activating a flat split.
      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.