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

# Update dispute evidence

> Upload JSON data as dispute evidence to support your case



## OpenAPI

````yaml post /disputes/update-evidence
openapi: 3.1.0
info:
  title: DisputeNinja API
  description: API for managing dispute evidence and file uploads
  version: 1.0.0
servers:
  - url: https://app.disputeninja.io/api/v1
security: []
paths:
  /disputes/update-evidence:
    post:
      summary: Update dispute evidence
      description: Upload JSON data as dispute evidence to support your case
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DisputeEvidence'
      responses:
        '200':
          description: Evidence updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvidenceResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    DisputeEvidence:
      type: object
      required:
        - stripe_dispute_id
        - evidence
      properties:
        stripe_dispute_id:
          type: string
          description: The Stripe dispute ID to which the evidence data will be attached
        evidence:
          type: object
          properties:
            products:
              type: array
              items:
                type: object
                properties:
                  product_title:
                    type: string
                    description: Title or name of the product
                  price:
                    type: integer
                    description: >-
                      Price of the item in the smallest currency unit (e.g.,
                      cents for USD)
                  quantity:
                    type: integer
                    description: Quantity of the item
                  currency_code:
                    type: string
                    description: ISO-4217 currency code (e.g., "USD", "EUR")
              description: An array of products related to the dispute
            delivery_method:
              type: string
              enum:
                - digital
                - physical
              description: The method of delivery for the product or service
            merchant_profile:
              type: object
              properties:
                merchant_id:
                  type: string
                  description: The merchant's ID
                merchant_name:
                  type: string
                  description: Name of the merchant
                merchant_website:
                  type: string
                  description: Website of the merchant
              description: Information about the merchant involved in the transaction
            shipping_tracking_numbers:
              type: array
              items:
                type: string
              description: An array of shipping tracking numbers
            additional_evidence:
              type: object
              description: An object for additional evidence as arbitrary JSON data
    EvidenceResponse:
      type: object
      properties:
        message:
          type: string
          description: A message indicating the success of the evidence data upload
        dispute_id:
          type: string
          description: The ID of the dispute associated with the uploaded evidence
        stripe_dispute_id:
          type: string
          description: The Stripe dispute ID associated with the uploaded evidence
    Error:
      type: object
      properties:
        type:
          type: string
          enum:
            - api_error
            - card_error
            - idempotency_error
            - invalid_request_error
          description: Error type
        code:
          type: string
          description: Short error code for programmatic handling
        message:
          type: string
          description: Human-readable error description
        param:
          type: string
          description: Parameter causing the error, if applicable
      required:
        - type
        - message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````