Skip to navigation

Create Inventory

View as Markdown

Creates an inventory item with sales and purchase account/tax mappings.

Requires the can_create_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.

Request

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

Response

Created
dataobject
statusboolean
messagestring

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error