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

# Search

> Searches for transactions related to customer service mitigation using multiple optional filters.



## OpenAPI

````yaml /api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/search
openapi: 3.0.0
info:
  title: Paysight Mitigation API
  version: 1.0.0
  description: >-
    API for handling mitigation-related customer service operations such as
    search and refund
servers:
  - url: https://test.paysight.io
    description: Test Server
security:
  - ApiKeyAuth: []
paths:
  /api/mitigation/search:
    post:
      tags:
        - API for Chargeback Mitigation Providers
      summary: Search
      description: >-
        Searches for transactions related to customer service mitigation using
        multiple optional filters.
      parameters:
        - $ref: '#/components/parameters/ClientId'
        - $ref: '#/components/parameters/UserEmail'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  count:
                    type: integer
                  transactions:
                    type: array
                    items:
                      type: object
        '400':
          description: Bad request
        '404':
          description: No matches found
        '500':
          description: Unexpected error
components:
  parameters:
    ClientId:
      name: ClientId
      in: header
      required: true
      description: >-
        Your Paysight Tenant/Client Id. This is the id of the parent company
        listed in https://app.paysight.io/management/companies. Alternatively,
        this will be provided by Paysight
      schema:
        type: string
    UserEmail:
      name: UserEmail
      in: header
      required: true
      description: The email address of the party or group making the request
      schema:
        type: string
  schemas:
    SearchRequest:
      type: object
      description: Request payload for searching mitigation-related transactions
      properties:
        email:
          type: string
          description: Customer's email address
          example: user@example.com
        orderId:
          type: integer
          description: Unique order identifier
          example: 123456
        bin:
          type: string
          description: First 6 digits of the credit card (BIN)
          example: '411111'
        last4:
          type: string
          description: Last 4 digits of the credit card
          example: '4242'
        firstName:
          type: string
          description: Customer's first name
          example: John
        lastName:
          type: string
          description: Customer's last name
          example: Doe
        authCode:
          type: string
          description: Authorization code for the transaction
          example: ABC123
        arn:
          type: string
          description: Acquirer Reference Number
          example: '123456789012345'
        amount:
          type: number
          format: decimal
          description: Transaction amount
          example: 49.99
        currencyCode:
          type: string
          description: ISO currency code
          example: USD
        dateFrom:
          type: string
          format: date
          description: Start date of the search range (yyyy-MM-dd)
          example: '2024-01-01'
        dateTo:
          type: string
          format: date
          description: End date of the search range (yyyy-MM-dd)
          example: '2024-01-31'
        mid:
          type: string
          description: Merchant ID
          example: MID123456
        descriptorExactMatch:
          type: string
          description: Descriptor string to match exactly
          example: mydescriptor.com 558111222
        descriptorContains:
          type: string
          description: Descriptor substring to search for
          example: mydescriptor
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Your Paysight API key

````