Part Object
Defines the structure of the Part object, which is used by the quote request API.
Overview
The Part object can represent many different types of items, such as items purchased individually, in a box, as a stock length, area, or volume. But no matter how the part is purchased, it has the same JSON object structure.
Terminology
Some definitions before we get started:
Package is the thing that is being purchased.
A package can contain a single item or a group of items.
Attributes
Field Name
Type
Description
id
string
The unique identifier for the part.
name
string
The name of the part.
part_number
string
The supplier's part number.
finish_type
string
finish_color
string
finish_multiplier
number
A value to multiply against the configured finish price to calculate the cost for the part. This defaults to 1.0 but can be changed by users when creating the proposal.
total_cost
number
The total cost for the part, including all quantities of the part being ordered.
package_unit_cost
number
The cost for a single quantity of the part. The unit cost multiplied by the package quantity to order will equal the total cost for the part.
package_quantity_to_order
number
The quantity of the package being ordered.
item_measurement_type
string
Describes what is being ordered. Possible values:
each
, box
, stock_length
, block_area
, container
items_per_package
number
The number of items contained in each package. This will be 1 for items purchased individually.
Examples:
If purchasing a single door handle then the value is 1.
If purchasing a box of 4 stock lengths then the value is 4.
If purchasing a box of 200 screws then the value is 200.
item_stock_size
number
The stock size for the item. The units of measure depend on the measurement type:
For
each
this will be 1.For
box
this will be equal toitems_per_package
.For
stock_length
this may be 288 inches.For
block_area
this will be 1 square foot.For
container
this may be 500 milliliters.
item_size_unit_of_measure
string
The units of measure for the item_stock_size. Possible values: item
, in
(inches), sqft
(square feet), ml
(milliliters)
sizes
array
The array of part sizes needed. This will vary based on the unit of measure.
For
item
, the sizes array will benull
.For
stock_length
, each size will contain alength
field with the number of inches for that piece.For
block_area
, each size will have fields:width
the actual glass width needed in inchesheight
the actual glass height needed in inchesquantity
the number of pieces of glass needed at this size
For
ml
, the sizes array will benull
.
Examples
Example #1: Per each (i.e. door closer)
Purchasing 5 door closers, purchased individually.
Example #2: Box of screws
Purchasing 5 boxes of screws, with each box containing 200 screws.
Example #3A: Stock lengths sold individually
Purchasing 2 stock lengths of framing at 288” per stock length.
Example #3B: Stock lengths sold as a group
Purchasing 2 boxes of stock lengths, with each box containing 4 lengths at 288” for a total of 8 stock lengths.
Example #4: Glass
Purchasing 1,260 block area square feet of glass.
Example #5: Caulking
Purchasing 2 boxes of caulking, with each box containing 16 sausages at 500 ml per sausage, for a total of 32 sausages.
Last updated
Was this helpful?