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

# Merge Settlements into Batch

Group two or more existing `PENDING` or `UNDER_REVIEW` settlements into a single batch. The source settlements become children of the new batch and continue through their individual lifecycles under one approval.


## OpenAPI

````yaml POST /api/v3/integrator/settlements/merge
openapi: 3.0.0
info:
  title: KOTANI PAY API PLATFORM
  description: ''
  version: '3.0'
  contact: {}
servers:
  - url: https://sandbox-api.kotanipay.io
    description: Sandbox
security: []
tags: []
paths:
  /api/v3/integrator/settlements/merge:
    post:
      tags:
        - INTEGRATOR
      operationId: IntegratorSettlementsController_mergeSettlements_api/v3
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MergeSettlementsDto'
      responses:
        '201':
          description: ''
      security:
        - JWT: []
components:
  schemas:
    MergeSettlementsDto:
      type: object
      properties:
        settlementIds:
          description: IDs of existing settlements to merge
          type: array
          items:
            type: string
        batchReference:
          type: string
        callbackUrl:
          type: string
        integratorNote:
          type: string
      required:
        - settlementIds
  securitySchemes:
    JWT:
      scheme: bearer
      bearerFormat: JWT
      type: http

````