BidUnity Help Center
  • BidUnity Help Center
  • Getting Started
    • Getting Started
    • Projects
    • Proposals
    • Deep Dive
  • Drawings
    • Elevation Drawings
  • Part & Cut Lists
    • Optimized Cut List
    • Glass Lists
    • Packing Lists
  • System Configurations
    • Overview
    • Component Types
    • Parts
    • Part Size Calculations
    • Doors
      • Door Frames
      • Door Leafs
      • Door Components
  • Mobile App
    • Overview
  • Supplier API
    • API Overview
    • Quote Request
    • Quote Response
    • Quote Response File
    • Reference
      • Objects
        • Part Object
        • Door Object
      • Types
        • Door Frame Components
        • Door Leaf Components
        • Finish Colors
        • Finish Types
  • Settings
    • User Settings
    • Company Settings
  • Back to BidUnity
Powered by GitBook
On this page
  • Overview
  • Terminology
  • Attributes
  • Examples
  • Example #1: Per each (i.e. door closer)
  • Example #2: Box of screws
  • Example #3A: Stock lengths sold individually
  • Example #3B: Stock lengths sold as a group
  • Example #4: Glass
  • Example #5: Caulking

Was this helpful?

  1. Supplier API
  2. Reference
  3. Objects

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 to items_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 be null.

  • For stock_length, each size will contain a length field with the number of inches for that piece.

  • For block_area, each size will have fields:

    • width the actual glass width needed in inches

    • height the actual glass height needed in inches

    • quantity the number of pieces of glass needed at this size

  • For ml, the sizes array will be null.

Examples

Example #1: Per each (i.e. door closer)

Purchasing 5 door closers, purchased individually.

{
    id: “407f191e810c19729de860ea”,
    name: “Example Door Closer Part Name”,
    part_number: “CLO482”,
    finish_type: “Class 1 Anodized”,
    finish_color: “Dark Bronze”,
    finish_multiplier: 1.0,
    total_cost: 250.00,
    package_unit_cost: 50.00,
    package_quantity_to_order: 5,
    item_measurement_type: “each”,
    items_per_package: 1,  # Sold individually
    item_stock_size: 1,
    item_size_unit_of_measure: “item”,
    sizes: null  # Items without a length do not have a size array
}

Example #2: Box of screws

Purchasing 5 boxes of screws, with each box containing 200 screws.

{
    id: “407f191e810c19729de860eb”,
    name: “Fastener: Tapcon 1/4" Diameter, Hex Washer Head”,
    part_number: “ELE435-100”,
    finish_type: null,
    finish_color: null,
    finish_multiplier: 1.0,
    total_cost: 100.00,
    package_unit_cost: 20.00,
    package_quantity_to_order: 5,
    item_measurement_type: “box”,
    items_per_package: 200,  # Each box contains 200 screws
    item_stock_size: 200,
    item_size_unit_of_measure: “item”,
    sizes: null  # Items without a length do not have a size array
}

Example #3A: Stock lengths sold individually

Purchasing 2 stock lengths of framing at 288” per stock length.

{
    id: “407f191e810c19729de860ec”,
    name: “Trulite 3101 Head/Sill/Jamb”,
    part_number: “3101”,
    finish_type: “Class 1 Anodized”,
    finish_color: “Dark Bronze”,
    finish_multiplier: 1.0,
    total_cost: 100.00,
    package_unit_cost: 20.00,
    package_quantity_to_order: 5,
    item_measurement_type: “stock_length”,
    items_per_package: 1,   # Lengths sold individually
    item_stock_size: 288,   # 288” stock lengths
    item_size_unit_of_measure: “in”,   # Inches
    sizes: [{  # Array of sizes needed
        length: 62,  # inches
        quantity: 5
    },{
        length: 29.125,  # inches
        quantity: 3
    }]
}

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.

{
    id: “407f191e810c19729de860ec”,
    name: “Trulite 3101 Head/Sill/Jamb”,
    part_number: “3101”,
    finish_type: “Class 1 Anodized”,
    finish_color: “Dark Bronze”,
    finish_multiplier: 1.0,
    total_cost: 400.00,
    package_unit_cost: 200.00,
    package_quantity_to_order: 2,
    item_measurement_type: “stock_length”
    items_per_package: 4   # 4 stock lengths per box
    item_stock_size: 288   # 288” stock lengths
    item_size_unit_of_measure: “in”
    sizes: [{
        length: 91,  # inches
        quantity: 12
    },{
        length: 29.125,  # inches
        quantity: 4
    }]
}

Example #4: Glass

Purchasing 1,260 block area square feet of glass.

{
    id: “407f191e810c19729de860ed”,
    name: “Glass 1-5/16" Overall: 1/4" Temp X 1/2" Air Space X 1/4" HS X 0.090 PVB X 1/4" HS”,
    part_number: “1/4" Clear Temp X 1/2" Air Space X 1/4" Clear HS X 0.090 PVB X 1/4" Clear HS”,
    finish_type: null,
    finish_color: null,
    finish_multiplier: 1.0,
    total_cost: 12600.00,
    package_unit_cost: 10.51,
    package_quantity_to_order: 1260
    item_measurement_type: “block_area”
    items_per_package: 1
    item_stock_size: 1
    item_size_unit_of_measure: “sqft”
    sizes: [{   # Array of the actual glass sizes needed (not block sizes)
        width: 28.63,    # inches, actual glass width
        height: 12.63,   # inches, actual glass height
        quantity: 3      # 3 pieces of glass at this size
    }]
}

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.

{
    id: “407f191e810c19729de860ee”,
    name: “Caulking Perimeter Sealant, Sausages (By Volume)”,
    part_number: “Contractors Weather Seal”,
    finish_type: null,
    finish_color: null,
    finish_multiplier: 1.0,
    total_cost: 100.00,
    package_unit_cost: 50.00,
    package_quantity_to_order: 2,
    item_measurement_type: “container”,
    items_per_package: 16,
    item_stock_size: 500,
    item_size_unit_of_measure: “ml”,
    sizes: null
}

PreviousObjectsNextDoor Object

Last updated 4 years ago

Was this helpful?

The metal finish for the part, or null if not applicable. See

The finish color for the part, or null if not applicable. See

Finish Types
Finish Colors