---
title: "Update Product Accounting"
method: PUT
path: "/api/products/{product_id}/accounting"
tags: ["products"]
---

# Update Product Accounting

`PUT /api/products/{product_id}/accounting`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/products/{product_id}/accounting`
- Auth: none declared

## Path parameters

- `product_id` integer, required

## Request body

- ProductAccountingUpdate
  - `category_id` integer, nullable
  - `qbo_account_number` string
  - `qbo_account_name` string

## Response `200`

OK

- AdminProductSchema
  - `id` integer, required
  - `name` string, required
  - `code` string, nullable
  - `description` string, required
  - `contract_description` string, nullable
  - `price` number, required
  - `cost` number, nullable
  - `st_sku_id` integer, required
  - `st_type` 'Equipment' | 'Material' | 'Service', required
  - `image_url` string, nullable
  - `model` string, nullable
  - `manufacturer` string, nullable
  - `category_id` integer, nullable
  - `category_name` string
  - `active` boolean
  - `sellable` boolean
  - `qbo_account` string
  - `qbo_account_source` string
  - `labor_hours` number, nullable
  - `part_count` integer
  - `supplier_id` integer, nullable
  - `supplier_name` string
  - `supplier_part_number` string
  - `supplier_price` number, nullable

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-31** `ac22bba75db1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/products/:product_id/accounting/put.md)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
