Skip to navigation

Update Inventory

View as Markdown

Updates an inventory item.

Requires the can_modify_sales_inventory permission on the key owner’s role.

Keys: secret key only.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Path parameters

idstringRequired

Request

This endpoint expects an object.
typestringRequired
namestringOptional
usagestringOptional
sales_account_idstringOptionalformat: "uuid"
purchase_account_idstringOptionalformat: "uuid"
sales_descriptionstringOptional
purchase_descriptionstringOptional
sales_tax_idstringOptionalformat: "uuid"
purchase_tax_idstringOptionalformat: "uuid"
purchase_vendor_idstringOptionalformat: "uuid"
tax_inclusivebooleanOptional
cost_priceslist of objectsOptional
selling_priceslist of objectsOptional

Response

OK
dataobject
statusboolean
messagestring

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error