> ## 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 Split Sources

> Replace the products, storefronts, and payment links assigned to a split

This is a replacement operation. Include every source that should remain assigned to the split. Omitted or empty categories are cleared.


## OpenAPI

````yaml api-reference/openapi.json PUT /api/v1/splits/{splitCode}/sources
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}/sources:
    parameters:
      - $ref: '#/components/parameters/SplitCode'
    put:
      tags:
        - Transaction Splits
      summary: Replace the resources assigned to a split
      operationId: ExternalSplitPaymentsController_updateSources
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSplitSourcesRequest'
      responses:
        '200':
          description: Split sources 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:
    UpdateSplitSourcesRequest:
      type: object
      properties:
        productIds:
          type: array
          uniqueItems: true
          items:
            type: string
            format: uuid
        storeIds:
          type: array
          uniqueItems: true
          items:
            type: string
            format: uuid
        paymentLinkIds:
          type: array
          uniqueItems: true
          items:
            type: string
            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.