---
title: "PATCH /companies/{companySlug}/invoices/{invoiceId}"
method: PATCH
path: "/companies/{companySlug}/invoices/{invoiceId}"
tags: ["invoices"]
---

# PATCH /companies/{companySlug}/invoices/{invoiceId}

`PATCH /companies/{companySlug}/invoices/{invoiceId}`

## Request

- Base URL: `https://api.fiken.no/api/v2`
- URL: `https://api.fiken.no/api/v2/companies/{companySlug}/invoices/{invoiceId}`
- Auth: OAuth 2
  - Authorization code: `https://fiken.no/oauth/authorize`
  - Token URL: `https://fiken.no/oauth/token`

Updates invoice with provided id. It is possible to update the due date of an invoice
as well as if the invoice was sent manually, outside of Fiken.

## Request body

- UpdateInvoiceRequest
  - `newDueDate` string, date: Due date of invoice, format yyyy-mm-dd
  - `sentManually` boolean: If the invoice was not sent using Fiken this can be set to "true"

## Response `200`

OK

## Changes

- **2023-05-26** `e093a0c9db87`: 1 info
  - the request property `sentManually` became optional
- **2021-12-08** `4813e5666340`: 1 info
  - the endpoint scheme security `fiken_api_oauth` was removed from the API

[Operation history](https://skmtc.dev/fiken/apis/fiken-api/changes/companies/:companySlug/invoices/:invoiceId/patch.md)

---

[API](https://skmtc.dev/fiken/apis/fiken-api.md) - [All operations](https://skmtc.dev/fiken/apis/fiken-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fiken/apis/fiken-api/revisions/29111da67f94?raw)
