---
title: "PUT /bills/{id}"
method: PUT
path: "/bills/{id}"
tags: ["Bill", "Bills"]
---

# PUT /bills/{id}

`PUT /bills/{id}`

## Request

- Base URL: `https://api.railz.ai`
- URL: `https://api.railz.ai/bills/{id}`
- Auth: HTTP bearer

Update an individual bill or a business.

## Path parameters

- `id` string, required

## Request body

- UpdateBillsV1Dto
  - `connection` PushUpdateBillsConnection, required
    - `businessName` string, required: Unique business name identifier.
    - `serviceName` 'quickbooks' | 'xero' | 'sageIntacct' | 'sageBusinessCloud', required: Name of accounting platform service.
  - `data` UpdateBillsV1, required
    - `vendorInvoiceNumber` string
    - `postedDate` string, date
    - `dueDate` string, date
    - `currencyRate` number, float
    - `memo` string
    - `vendorRef` string, required
    - `currency` string
    - `locationRef` string
    - `subsidiaryRefs` string[]
    - `trackingCategoryRef` string
    - `lines` UpdateBillLineItemV1[]
      - `description` string
      - `unitAmount` number, float, required
      - `quantity` number, float, required
      - `billableStatus` 'billable' | 'notBillable' | 'hasBeenBilled'
      - `customerRef` CustomerObjectRefDto
        - `id` string, required
      - `id` string
      - `taxAmount` number, float
      - `taxRef` string
      - `accountRef` string
      - `trackingCategoryRef` string
      - `subTotal` number, float
      - `totalAmount` number, float

## Response `200`

- UpdateBillsResponseV1Dto
  - `pushCommunicationId` string, required
  - `requestedOn` string, date-time, required
  - `status` 'success' | 'failed' | 'pending', required
  - `businessName` string, required
  - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod', required
  - `data` UpdateBillsV1, required
    - `vendorInvoiceNumber` string
    - `postedDate` string, date
    - `dueDate` string, date
    - `currencyRate` number, float
    - `memo` string
    - `vendorRef` string, required
    - `currency` string
    - `locationRef` string
    - `subsidiaryRefs` string[]
    - `trackingCategoryRef` string
    - `lines` UpdateBillLineItemV1[]
      - `description` string
      - `unitAmount` number, float, required
      - `quantity` number, float, required
      - `billableStatus` 'billable' | 'notBillable' | 'hasBeenBilled'
      - `customerRef` CustomerObjectRefDto
        - `id` string, required
      - `id` string
      - `taxAmount` number, float
      - `taxRef` string
      - `accountRef` string
      - `trackingCategoryRef` string
      - `subTotal` number, float
      - `totalAmount` number, float

## Other responses

- `400`: Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401`: Unauthorized - Not logged in or log in expired
- `403`: Forbidden - Not enough permission
- `500`: Server Error

## Changes

- **2026-09-03** `1383b9a47ac9`: 1 info
  - api tag `Bill` added
- **2026-08-10** `5cdfae3fa1fa`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/changes/bills/:id/put.md)

---

[API](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api.md) - [All operations](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/revisions/1383b9a47ac9?raw)
