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

# Add Split Recipient

> Add a subaccount or verified external bank recipient

For `subaccount`, provide `virtualAccountId`. For `external_bank`, provide a supported `bankCode` and a 10-digit `accountNumber`; FossaPay performs name enquiry before saving it.


## OpenAPI

````yaml api-reference/openapi.json POST /api/v1/splits/{splitCode}/recipients
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}/recipients:
    parameters:
      - $ref: '#/components/parameters/SplitCode'
    post:
      tags:
        - Transaction Splits
      summary: Add a recipient to a transaction split
      operationId: ExternalSplitPaymentsController_addRecipient
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddSplitRecipientRequest'
      responses:
        '201':
          description: Recipient added 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:
    AddSplitRecipientRequest:
      type: object
      required:
        - type
        - allocation
      properties:
        type:
          type: string
          enum:
            - subaccount
            - external_bank
        virtualAccountId:
          type: string
          format: uuid
        accountNumber:
          type: string
          pattern: ^[0-9]{10}$
        bankCode:
          type: string
        allocation:
          type: string
          description: Percentage or flat NGN allocation, depending on the split type.
      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.