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

# Update Payment Invoice Endpoint

> The Update Invoice for a Payment Transaction endpoint allows you to patch and update the invoice for a specific payment transaction identified by the `hashid` parameter. The request should include the invoice file as form data with the key invoice. The API responds with the updated transaction details, including the transaction's ID and the new invoice value.



## OpenAPI

````yaml patch /transactions/payment-transactions/{hashid}/invoice/
openapi: 3.0.1
info:
  title: Trace Connect API
  version: v1
servers:
  - url: http://localhost:3000/connect/v1
security:
  - Bearer: []
paths:
  /transactions/payment-transactions/{hashid}/invoice/:
    patch:
      tags:
        - transactions
      description: Adding separate API for uploading invoice.
      operationId: transactions_payment-transactions_invoice
      parameters:
        - name: hashid
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TransactionInvoice'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionInvoiceResponse'
components:
  schemas:
    TransactionInvoice:
      required:
        - invoice
      type: object
      properties:
        invoice:
          title: Invoice
          type: string
          format: binary
    TransactionInvoiceResponse:
      type: object
      properties:
        id:
          type: string
        invoice:
          title: Invoice
          type: string
          format: binary
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````