> ## 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 Product Invoice Endpoint

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



## OpenAPI

````yaml patch /transactions/product-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/product-transactions/{hashid}/invoice/:
    patch:
      tags:
        - transactions
      description: Adding separate API for uploading invoice.
      operationId: transactions_product-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

````