---
title: "PUT /inventory/{id}"
method: PUT
path: "/inventory/{id}"
tags: ["Inventory"]
---

# PUT /inventory/{id}

`PUT /inventory/{id}`

## Request

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

PUT an update to an individual inventory item for a business.

## Path parameters

- `id` string, required

## Request body

- UpdateInventoryV1Dto
  - `connection` UpdateInventoryConnection, required
    - `businessName` string, required: Unique business name identifier.
    - `serviceName` 'quickbooks' | 'xero' | 'freshbooks' | 'dynamicsBusinessCentral' | 'oracleNetsuite' | 'wave' | 'sageIntacct', required: Name of accounting platform service.
  - `data` UpdateInventoryV1, required
    - `code` string
    - `type` 'inventory' | 'nonInventory' | 'service'
    - `subsidiaryRefs` string[]
    - `name` string
    - `invoiceItem` InventoryBillInvoiceLineItems
      - `description` string
      - `unitPrice` number, float
      - `accountRef` string
      - `taxRateRef` string
    - `billItem` InventoryBillInvoiceLineItems
      - `description` string
      - `unitPrice` number, float
      - `accountRef` string
      - `taxRateRef` string
    - `isBillItem` boolean
    - `isInvoiceItem` boolean

## Response `200`

- UpdateInventoryV1ResponseDto
  - `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` UpdateInventoryV1, required
    - `code` string
    - `type` 'inventory' | 'nonInventory' | 'service'
    - `subsidiaryRefs` string[]
    - `name` string
    - `invoiceItem` InventoryBillInvoiceLineItems
      - `description` string
      - `unitPrice` number, float
      - `accountRef` string
      - `taxRateRef` string
    - `billItem` InventoryBillInvoiceLineItems
      - `description` string
      - `unitPrice` number, float
      - `accountRef` string
      - `taxRateRef` string
    - `isBillItem` boolean
    - `isInvoiceItem` boolean

## 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

---

[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)
