---
title: "Link Invoice"
method: POST
path: "/api/contracts/{contract_id}/link-invoice"
tags: ["Contracts - Protected"]
---

# Link Invoice

`POST /api/contracts/{contract_id}/link-invoice`

Link an invoice to a contract.

Sets Contratos.FaturaID, creates Documentos record (tipodoc=62),
and closes the contract (IDestado=2).

Body:
    invoice_id: int — Faturas.ID to link

## Path parameters

- `contract_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
