# Edit Or Deferred Split Settlement

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/split-transaction/{transactionId}:
    post:
      summary: Edit Or Deferred Split Settlement
      deprecated: false
      description: >-

        :::highlight purple 📌

        Use this API to update split rules or defer the settlement of an
        existing payment. This allows you to adjust how funds are distributed or
        delay the settlement process as needed.

        :::
      tags:
        - Payment Gateway/APIs - Payment Gateway /Split Settlement
      parameters:
        - name: transactionId
          in: path
          description: transactionId
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: merchantAccessKey
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditSplitTransactionRequest'
            examples:
              '1':
                value:
                  splitSettlement:
                    amountSplitType: FLAT
                    splitSettlementDetails:
                      - splitAccountId: '63'
                        value: 60
                      - label: Test
                        value: 40
                summary: FLAT
              '2':
                value:
                  splitSettlement:
                    amountSplitType: PERCENTAGE
                    splitSettlementDetails:
                      - splitAccountId: '63'
                        value: 60
                      - label: Test
                        value: 40
                summary: PERCENTAGE
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  payload:
                    $ref: '#/components/schemas/EditSplitTransactionResponse'
                x-apidog-orders:
                  - code
                  - message
                  - payload
                required:
                  - payload
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Payment Gateway/APIs - Payment Gateway /Split Settlement
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-11766683-run
components:
  schemas:
    EditSplitTransactionRequest:
      type: object
      properties:
        splitSettlement:
          $ref: '#/components/schemas/SplitSettlementDTO'
      x-apidog-orders:
        - splitSettlement
      required:
        - splitSettlement
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    SplitSettlementDTO:
      type: object
      properties:
        amountSplitType:
          type: string
          enum:
            - FLAT
            - PERCENTAGE
          x-apidog-enum:
            - value: FLAT
              name: ''
              description: ''
            - value: PERCENTAGE
              name: ''
              description: ''
        splitSettlementDetails:
          type: array
          items:
            $ref: '#/components/schemas/SplitSettlementDetail'
      x-apidog-orders:
        - amountSplitType
        - splitSettlementDetails
      required:
        - amountSplitType
        - splitSettlementDetails
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    SplitSettlementDetail:
      type: object
      properties:
        splitAccountId:
          type: string
          description: Required of label not provided
        label:
          type: string
          description: Required if splitAccountId not provided
        value:
          type: number
      x-apidog-orders:
        - splitAccountId
        - label
        - value
      required:
        - value
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    EditSplitTransactionResponse:
      type: object
      properties:
        resultCode:
          type: integer
        resultMessage:
          type: string
        error:
          type: boolean
      x-apidog-orders:
        - resultCode
        - resultMessage
        - error
      required:
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
