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

# Validates which payments received can be deleted and returns the results.



## OpenAPI

````yaml api-reference/openapi.json post /api/payments-received/validate-bulk-delete
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/payments-received/validate-bulk-delete:
    post:
      tags:
        - Payments Received
      summary: >-
        Validates which payments received can be deleted and returns the
        results.
      operationId: PaymentReceivesController_validateBulkDeletePaymentsReceived
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteDto'
      responses:
        '200':
          description: >-
            Validation completed with counts and IDs of deletable and
            non-deletable payments received.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateBulkDeleteResponseDto'
components:
  schemas:
    BulkDeleteDto:
      type: object
      properties:
        ids:
          description: Array of IDs to delete
          example:
            - 1
            - 2
            - 3
          type: array
          items:
            type: number
        skipUndeletable:
          type: boolean
          description: >-
            When true, undeletable items will be skipped and only deletable ones
            will be removed.
          default: false
      required:
        - ids
    ValidateBulkDeleteResponseDto:
      type: object
      properties:
        deletableCount:
          type: number
          description: Number of items that can be deleted
          example: 2
        nonDeletableCount:
          type: number
          description: Number of items that cannot be deleted
          example: 1
        deletableIds:
          description: IDs of items that can be deleted
          example:
            - 1
            - 2
          type: array
          items:
            type: number
        nonDeletableIds:
          description: IDs of items that cannot be deleted
          example:
            - 3
          type: array
          items:
            type: number
      required:
        - deletableCount
        - nonDeletableCount
        - deletableIds
        - nonDeletableIds

````