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

# Preview Transaction Split

> Calculate recipient allocations and the master-wallet remainder

Provide an NGN `amount` and either `checkout` or `direct_deposit` as `collectionType`. Preview does not move funds.


## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/splits/{splitCode}/preview
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}/preview:
    get:
      tags:
        - Transaction Splits
      summary: Preview split allocations
      operationId: ExternalSplitPaymentsController_preview
      parameters:
        - $ref: '#/components/parameters/SplitCode'
        - name: amount
          in: query
          required: true
          schema:
            type: string
            pattern: ^[0-9]+(\.[0-9]{1,2})?$
        - name: collectionType
          in: query
          required: true
          schema:
            type: string
            enum:
              - checkout
              - direct_deposit
      responses:
        '200':
          description: Split preview calculated 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:
    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.