---
title: "Make a final invoice draft"
description: "Invoicing API"
---

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

# Make a final invoice draft

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/final-invoices</code>
</div>
</div>

Makes a final invoice draft that deducts the down payments of one contract, and saves it. Its type is 380, or 877 when `construction` is true or a down payment has type 875. Each down payment becomes a preceding invoice reference and a note line with its net amount, VAT and gross amount. Their gross sum is the paid amount (BT-113), which the amount due subtracts. The lines come from the draft `draftId`, such as the quote. Without it the draft has no lines and the form adds them. Only a down payment marked paid is deducted: a final invoice deducts the part payments received and their tax. All the paid down payments of `reference` are deducted unless `downPaymentIds` names some of them.

## Headers

## Request body

`application/json`, required

## Response

A `201` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `201` | The saved draft. |
| `400` |  |
| `401` |  |
| `404` |  |
| `409` | No down payment invoice names the reference (`no_down_payments`), none is marked paid or one named is not (`down_payment_not_received`), or one cannot be read (`invoice_has_no_model`, `invoice_changed_since_check`). A repeat with the same Idempotency-Key and another body (`idempotency_key_reused`), or while the first is still being done (`request_in_progress`; send it again in a moment). Nothing was done twice. |
| `501` |  |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/invoicing/make-a-final-invoice-draft/index.mdx
