---
title: "Assign an invoice's contract"
method: PUT
path: "/v1/price-baseline/invoices/{documentId}"
tags: ["Contract Pricing"]
---

# Assign an invoice's contract

`PUT /v1/price-baseline/invoices/{documentId}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/price-baseline/invoices/{documentId}`
- Auth: HTTP bearer

Assigns the contract an invoice bills (`model_id`, any version of the contract), `model_id: null` to match it again, or `skip: true` when the document is not a bill. The price check runs again. Requires scope `apps:price-baseline:write`.

## Path parameters

- `documentId` string, required

## Request body

- object
  - `model_id` string: The contract, or null to match again.
  - `skip` boolean: true: not a bill.

## Response `200`

The result.

- object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/price-baseline/invoices/:documentId/put.md)

---

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