Create Part
Beta/v1/catalog/partsIdempotent with Idempotency-Key header. Learn more
Creates a part with the specified SKU and category.
Inventory tracking for the new part starts at a zero on-hand quantity in the category's base unit.
include[]optional arrayenumValues:itemitem.categoryitem.unit_valueSub-objects to expand in the response. When omitted, sub-objects are returned as null.
skustringStock keeping unit code for the part.
Must be unique within the account; creating a part with a SKU already used by another item fails with a conflict error.
descriptionoptional stringFree-form description of the part.
notesoptional stringFree-form notes about the part.
category_idstringID of the item category to place the part in.
The category's unit group determines the base unit used for the part's rates (unit_value, unit_cost, burn_rate).
unit_priceoptional objectInitial selling price per unit.
numerator_unit_id must reference a currency unit and denominator_unit_id must reference a non-currency unit (e.g. $5 per ea). When omitted, the price is initialized to a zero rate in the category's base unit.
valuestring (decimal)Decimal value of the rate, expressed as the amount of the numerator unit per one denominator unit.
numerator_unit_idstringID of the unit for the rate's numerator (e.g. the currency of a price).
denominator_unit_idstringID of the unit for the rate's denominator (the per-unit basis).
unit_costoptional objectInitial cost per unit.
Follows the same unit rule as unit_price: currency numerator, non-currency denominator. When omitted, the cost is initialized to a zero rate in the category's base unit.
valuestring (decimal)Decimal value of the rate, expressed as the amount of the numerator unit per one denominator unit.
numerator_unit_idstringID of the unit for the rate's numerator (e.g. the currency of a price).
denominator_unit_idstringID of the unit for the rate's denominator (the per-unit basis).
attribute_idsoptional array of stringIDs of existing attributes to link to the part at creation time.
Each attribute's property must be one the part's category carries; an attribute from any other property fails the whole request.
idstringPart ID.
objectstringenumValues:partResource type identifier.
The underlying inventory item this part record represents.
idstringItem ID.
objectstringenumValues:itemResource type identifier.
skustringStock keeping unit code, unique within the account.
descriptionstringnullableItem description.
notesstringnullableFree-form notes about the item.
typestringenumValues:productmaterialpartWhat kind of item this is.
product: a finished product.material: a raw material or component consumed in production.part: a part used in production.
The category this item belongs to.
The category's unit group determines the base unit the item's rates (unit_value, unit_cost, burn_rate) are expressed in.
idstringItem category ID.
objectstringenumValues:item_categoryResource type identifier.
namestringDisplay name of the item category.
notesstringnullableFree-form notes about the item category.
typestringenumValues:material_categoryproduct_categoryWhat kind of items this category groups.
material_category: groups raw materials and components (items of typematerial).product_category: groups finished products and parts (items of typeproductorpart).
An item can only be assigned to a category whose type matches the item's type, and the category's type is fixed at creation.
ownerownernullableProvenance of the item category.
System-owned categories are platform-provided defaults shared across all accounts and cannot be updated or deleted; account-owned categories are custom to your account.
null in this endpoint.Properties associated with this item category, such as Color or Size.
These describe the dimensions along which items in the category vary, and are also what the customer-facing catalog shows for the category. Attach and detach them with the Add Item Category Property and Remove Item Category Property endpoints.
null in this endpoint.Unit group associated with this item category.
Items in this category are measured in units belonging to this group, and can only be ordered in those units unless the item's product line defines its own unit group, which takes precedence.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
unit_valuerateExpandablenullableSelling value per unit, expressed as a rate (e.g. $25.50 / kg).
idstringRate ID.
objectstringenumValues:rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
null in this endpoint.Unit of the rate's denominator (the per-unit basis, e.g. kilograms for a price per kilogram).
null in this endpoint.display_valuestringHuman-readable formatted value (e.g. "$25.50 / kg" or "100 kg / hr").
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
unit_costrateExpandablenullableCost per unit, expressed as a rate (e.g. $10.00 / kg).
For items a production flow produces, retrieving the item's costs recomputes this from the flow and stores the result here, so it can change without the item having been edited.
idstringRate ID.
objectstringenumValues:rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
null in this endpoint.Unit of the rate's denominator (the per-unit basis, e.g. kilograms for a price per kilogram).
null in this endpoint.display_valuestringHuman-readable formatted value (e.g. "$25.50 / kg" or "100 kg / hr").
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
burn_raterateExpandablenullableRate at which this item is consumed in production, expressed as a quantity over time (e.g. 100 kg / hr).
idstringRate ID.
objectstringenumValues:rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
null in this endpoint.Unit of the rate's denominator (the per-unit basis, e.g. kilograms for a price per kilogram).
null in this endpoint.display_valuestringHuman-readable formatted value (e.g. "$25.50 / kg" or "100 kg / hr").
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Attributes assigned to this item.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of attributeResources in this page.
idstringAttribute ID.
objectstringenumValues:attributeResource type identifier.
valuestringThe selectable value this attribute represents, such as Red for a Color property or Large for a Size property.
colorstringenumValues:bluebrowndefaultSwatch color used to display this attribute in the UI.
The named colors are arbitrary display choices; default is a neutral fallback used when no specific swatch applies.
sort_orderintegerPosition of this attribute relative to its siblings within the property, starting at 1.
Positions are kept contiguous: creating, reordering, or deleting an attribute automatically shifts its siblings.
The property this attribute belongs to.
Populated only when the attribute is returned under an item's or a volume discount's attributes list.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Part