---
title: "Set Opening Balance"
method: PUT
path: "/api/finance/bills/{line_id}/opening-balance"
tags: ["finance"]
---

# Set Opening Balance

`PUT /api/finance/bills/{line_id}/opening-balance`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/finance/bills/{line_id}/opening-balance`
- Auth: none declared

Record or adjust the debt that already existed when the bill was
created, as of a date. Salary debt that predates Roost counts.

## Path parameters

- `line_id` string, uuid, required

## Request body

- OpeningBalanceIn
  - `amount` union, required
    - string
    - number
    - integer
  - `as_of` string, date, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
