BOM API Documentation

GET BOM

Sample Call
URL: /api/bom/get?bom_id=1 
Parameters
bom_id The BOM Record ID Saved in the database


Response
bom Array of boms
components Array of BOM Components

Sample Response (JSON)

{"bom":{"user_json_head":["Qty","Value","Device","Package","Parts","Description"],"locked":"N"},"components":[{"bom_component_id":"27","user_json_row":["8","","LED-0603","LED-603","LED1, LED1A, LED2, LED2A, LED3, LED3A, LED4, LED4A","Light Emitting Diode"],"component_id":"1","quantity":"1","quote_request":"Y","c_value":"0R 50V 1\/16W 1%","c_package":"0402","c_type":"resistor thick film","c_pins":"2","user_json_row_short":["8","","LED-06..","LED-60..","LED1,..","Light Emit.."],"unit_cost":"0.0000","setup_cost":"11.7241","placement_cost":"0.0345"},{"bom_component_id":"28","user_json_row":["1","","PINHD-1X5","1X05","ICSP","PIN HEADER"],"quantity":"1","quote_request":"Y","user_json_row_short":["1","","PINHD-..","1X05","ICSP","PIN HEADER"]},{"bom_component_id":"29","user_json_row":["6","0.1uF","CAPC603","C603","C1, C2, C3, C4, C5, C6",""],"quantity":"1","quote_request":"N","user_json_row_short":["6","0.1uF","CAPC60..","C603","C1, C2..",""]},{"bom_component_id":"30","user_json_row":["3","10k","RNETWORK","RN8P-4R-CRA06S","RN1, RN2, RN3","4 Resistor Array 0603"],"quantity":"1","quote_request":"N","user_json_row_short":["3","10k","RNETWO..","RN8P-4..","RN1, R..","4 Resistor.."]},{"bom_component_id":"31","user_json_row":["2","10uF","CPOL-EUSMCA","SMC_A","C10, C11","POLARIZED CAPACITOR, European symbol"],"quantity":"1","quote_request":"N","user_json_row_short":["2","10uF","CPOL-E..","SMC_A","C10, C..","POLARIZED.."]},{"bom_component_id":"32","user_json_row":["4","1K1","RESISTORR603","R603","R2, R3, R4, R6",""],"quantity":"1","quote_request":"N","user_json_row_short":["4","1K1","RESIST..","R603","R2, R3..",""]},{"bom_component_id":"33","user_json_row":["3","1uF","CAPC603","C603","C7, C8, C9",""],"quantity":"1","quote_request":"N","user_json_row_short":["3","1uF","CAPC60..","C603","C7, C8..",""]},{"bom_component_id":"34","user_json_row":["2","2K","RESISTORR603","R603","R1, R5",""],"quantity":"1","quote_request":"N","user_json_row_short":["2","2K","RESIST..","R603","R1, R5",""]},{"bom_component_id":"35","user_json_row":["1","4066","4066","TSSOP14","IC3","Quad bilateral ANALOG SWITCH"],"quantity":"1","quote_request":"N","user_json_row_short":["1","4066","4066","TSSOP1..","IC3","Quad bilat.."]},{"bom_component_id":"36","user_json_row":["1","700mA+ ferrite","WE-KIL_0805","WE-KI_0805_B","L1","SMD Wire Wound Ceramic Inductor WE-KIL"],"quantity":"1","quote_request":"N","user_json_row_short":["1","700mA+..","WE-KIL..","WE-KI_..","L1","SMD Wire W.."]},{"bom_component_id":"37","user_json_row":["1","CON-USB-F-MICRO-B","CON-USB-F-MICRO-B","CONN_USB_MICRO-B","J1","USB Female connector"],"quantity":"1","quote_request":"N","user_json_row_short":["1","CON-US..","CON-US..","CONN_U..","J1","USB Female.."]},{"bom_component_id":"38","user_json_row":["1","CON_HEADER_2X05-PTH+SHROUDED_A","CON_HEADER_2X05-PTH+SHROUDED_A","PINSHRD_PTH_2X05","IO","2x05 pin header"],"quantity":"1","quote_request":"N","user_json_row_short":["1","CON_HE..","CON_HE..","PINSHR..","IO","2x05 pin h.."]},{"bom_component_id":"39","user_json_row":["1","FT232RL","FT232RL","SSOP28","IC2","USB to serial UART interface"],"quantity":"1","quote_request":"N","user_json_row_short":["1","FT232R..","FT232R..","SSOP28","IC2","USB to ser.."]},{"bom_component_id":"40","user_json_row":["1","LOGO_CC-0","LOGO_CC-0","LOGO_CC-0","LOGO1",""],"quantity":"1","quote_request":"N","user_json_row_short":["1","LOGO_C..","LOGO_C..","LOGO_C..","LOGO1",""]},{"bom_component_id":"41","user_json_row":["2","MIC5205-3.3YM5","MIC5205","SOT-23-5","VR1, VR2","150ma Low-Noise LDO Regulator"],"component_id":"3157","quantity":"1","quote_request":"N","c_value":null,"c_package":null,"c_type":null,"c_pins":null,"user_json_row_short":["2","MIC520..","MIC520..","SOT-23..","VR1, V..","150ma Low-.."],"unit_cost":"0.0000","setup_cost":"0.0000","placement_cost":"0.0000"},{"bom_component_id":"42","user_json_row":["1","MIC5205-5.0YM5","MIC5205","SOT-23-5","VR3","150ma Low-Noise LDO Regulator"],"component_id":"3158","quantity":"1","quote_request":"N","c_value":null,"c_package":null,"c_type":null,"c_pins":null,"user_json_row_short":["1","MIC520..","MIC520..","SOT-23..","VR3","150ma Low-.."],"unit_cost":"0.0000","setup_cost":"0.0000","placement_cost":"0.0000"},{"bom_component_id":"43","user_json_row":["1","PCB_DP_RECTANGLE-37X60","PCB_DP_RECTANGLE-37X60","DP6037_V1","PCB1","Dangerous Prototypes Standard Rectangular PCB sizes"],"quantity":"1","quote_request":"N","user_json_row_short":["1","PCB_DP..","PCB_DP..","DP6037..","PCB1","Dangerous.."]},{"bom_component_id":"44","user_json_row":["1","PIC24FJ64GA002","PIC24FJ64GA002","SSOP28","IC1","16-bit General Purpose Flash Microcontroller"],"component_id":"3148","quantity":"1","quote_request":"N","c_value":null,"c_package":null,"c_type":null,"c_pins":null,"user_json_row_short":["1","PIC24F..","PIC24F..","SSOP28","IC1","16-bit Gen.."],"unit_cost":"0.0000","setup_cost":"0.0000","placement_cost":"0.0000"}]}

BOM SELECT ( POST )

Sample Call
URL: /api/bom/select/ 
Parameters
component_id Component ID from part library to assign to a BOM line item
bom_component_id BOM component line item ID to assign a this component_id from the parts library


Response
bom Array of boms
components Array of BOM Components
costs Array of Component Costs

Sample Response (JSON)

{"bom":{"user_json_head":["Qty","Value","Device","Package","Parts","Description"],"locked":"N"},"component":{"user_json_row":["8","","LED-0603","LED-603","LED1, LED1A, LED2, LED2A, LED3, LED3A, LED4, LED4A","Light Emitting Diode"],"user_json_row_short":["8","","LED-06..","LED-60..","LED1,..","Light Emit.."],"quote_request":"Y","quantity":"1","user_json_head":["Qty","Value","Device","Package","Parts","Description"],"component_id":"50","c_value":"100R 50V 1\/16W 1%","c_package":"0402","c_type":"resistor thick film","c_pins":"2","unit_cost":"0.0000","setup_cost":"7.2414","placement_cost":"0.0345"},"costs":{"plus100":"1.61","plus500":"0.34","total_weight":"100g"}}