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

# Update Purchase Invoice



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#DYNAMICS_BUSINESS_CENTRAL_UPDATE_PURCHASE_INVOICE
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#DYNAMICS_BUSINESS_CENTRAL_UPDATE_PURCHASE_INVOICE:
    post:
      summary: Update Purchase Invoice
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: DYNAMICS_BUSINESS_CENTRAL_UPDATE_PURCHASE_INVOICE
                parameters:
                  type: object
                  properties:
                    purchaseInvoiceId:
                      type: string
                      description: >-
                        Purchase Invoice ID : Specify the record ID of the
                        Purchase Invoice to update.
                    purchaseInvoiceVendorId:
                      type: string
                      description: >-
                        Vendor Id : The Id of the vendor who delivers the
                        products.
                    vendorInvoiceNumber:
                      type: string
                      description: >-
                        Vendor Invoice Number : An internal number for the
                        invoice.
                    invoiceDate:
                      type: string
                      description: >-
                        Invoice Date : Accepts ISO 8601 date format. (example:
                        "2022-01-01")
                    postingDate:
                      type: string
                      description: >-
                        Posting Date : Accepts ISO 8601 date format. (example:
                        "2022-01-02")
                    dueDate:
                      type: string
                      description: >-
                        Due Date : Accepts ISO 8601 date format. (example:
                        "2022-02-03")
                    purchaseInvoiceAdditionalFields:
                      type: object
                      description: >-
                        Additional Fields : Specify additional fields to include
                        on this Purchase Invoice as JSON. See the docs
                        (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseinvoice)
                        for available fields. (example: "{
                          shipToName: "John Apple",
                          shipToAddressLine1: "2000 Durant Ave."
                        }")
                      properties: {}
                  required:
                    - purchaseInvoiceId
                    - purchaseInvoiceVendorId
                  x-integration: dynamicsbusinesscentral
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````