---
agentTools:
  projectIndex: https://apidocs.macrofab.com/llms.txt
---

# Batch Get Approved Vendor Lists

Quote several approved vendor lists at once, each at its own quantity. Each AVL in the
response has the same shape as
`GET /api/v4/quote/approved_vendor_list/{approved_vendor_list_id}`.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "MacroFab API",
    "description": "MacroFab API\n\n**Authentication**\n\nAuthenticate every request by sending your API key in the `X-MacroFab-API-Key` header.\nRequests act as the user that generated the API key.\n\n**Responses**\n\nSend `Accept: application/json` with every request. Some endpoints return an empty response\nwithout it.\n\n**Versions**\n\nEndpoints are versioned in their path (`/api/v2/`, `/api/v3/`, `/api/v4/`, `/api/v5/`), and\ndifferent endpoints are at different versions. Use the version documented here for each\nendpoint.\n",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.macrofab.com"
    }
  ],
  "paths": {
    "/api/v4/quote/approved_vendor_list": {
      "post": {
        "tags": [
          "Parts"
        ],
        "summary": "Batch Get Approved Vendor Lists",
        "description": "Quote several approved vendor lists at once, each at its own quantity. Each AVL in the\nresponse has the same shape as\n`GET /api/v4/quote/approved_vendor_list/{approved_vendor_list_id}`.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "avl_id_qtys"
                ],
                "properties": {
                  "avl_id_qtys": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "required": [
                        "approved_vendor_list_id",
                        "quantity"
                      ],
                      "properties": {
                        "approved_vendor_list_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    }
                  },
                  "tier": {
                    "type": "string",
                    "enum": [
                      "budget",
                      "standard",
                      "fast",
                      "extreme"
                    ],
                    "default": "standard"
                  },
                  "itar_restricted": {
                    "type": "boolean",
                    "default": false
                  }
                }
              },
              "example": {
                "avl_id_qtys": [
                  {
                    "approved_vendor_list_id": "48774583-95e5-42c7-ad5b-1815b0c22670",
                    "quantity": 100
                  },
                  {
                    "approved_vendor_list_id": "ba4cf671-1894-4ebe-831f-603de818c5c6",
                    "quantity": 250
                  }
                ],
                "tier": "standard"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The quoted AVLs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "approved_vendor_lists"
                  ],
                  "properties": {
                    "approved_vendor_lists": {
                      "type": "array",
                      "items": {
                        "$ref": "#/paths/~1api~1v4~1quote~1approved_vendor_list~1{approved_vendor_list_id}/get/responses/200/content/application~1json/schema"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "apikeyHeader": []
          }
        ]
      }
    },
    "/api/v4/quote/approved_vendor_list/{approved_vendor_list_id}": {
      "get": {
        "tags": [
          "Parts"
        ],
        "summary": "Get Approved Vendor List",
        "description": "Get an approved vendor list (AVL) with every part on it quoted at `quantity`: availability,\npricing, and labor. `primary_part_ipn`, and the part marked `primary`, is the part MacroFab\nwould purchase for this AVL, chosen by the AVL's `precedence_preference` and the parts'\navailability. This is how parts are selected for a BOM line when a PCB is quoted.\n",
        "parameters": [
          {
            "name": "quantity",
            "in": "query",
            "required": false,
            "description": "The number of parts to quote, before overage",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "description": "The service tier to quote for",
            "schema": {
              "type": "string",
              "enum": [
                "budget",
                "standard",
                "fast",
                "extreme"
              ],
              "default": "standard"
            }
          },
          {
            "name": "itar_restricted",
            "in": "query",
            "required": false,
            "description": "Quote for an ITAR-restricted build",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The quoted AVL",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "An approved vendor list (AVL) with each of its parts quoted at `quoted_quantity`, and the part\nMacroFab would choose for it (`primary_part_ipn`).\n",
                  "additionalProperties": true,
                  "required": [
                    "id",
                    "internal_part_number",
                    "organization_id",
                    "precedence_preference",
                    "kind",
                    "parts",
                    "quoted_quantity"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The AVL's ID; the `approved_vendor_list_id` on BOM lines",
                      "example": "48774583-95e5-42c7-ad5b-1815b0c22670"
                    },
                    "internal_part_number": {
                      "type": "string",
                      "description": "MacroFab's internal part number for the AVL",
                      "example": "MFI-C1879318-392420"
                    },
                    "customer_part_number": {
                      "type": "string",
                      "nullable": true,
                      "description": "Your internal part number for the AVL, if one has been assigned"
                    },
                    "description": {
                      "type": "string",
                      "nullable": true
                    },
                    "organization_id": {
                      "type": "string"
                    },
                    "is_global": {
                      "type": "boolean",
                      "description": "Whether the AVL is a MacroFab-wide list rather than your organization's"
                    },
                    "precedence_preference": {
                      "type": "string",
                      "description": "How MacroFab chooses among the parts. A part is available when enough are in stock and its\nminimum order quantity is met.\n\n* `price` - the lowest-priced available part, preferring MacroFab's preferred suppliers.\n  If no part is available, the lowest-priced part.\n* `manual` - the first available part in `list_precedence` order. If no part is\n  available, the first part in the list.\n",
                      "enum": [
                        "price",
                        "manual"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "electrical",
                        "mechanical"
                      ]
                    },
                    "quoted_quantity": {
                      "type": "integer",
                      "description": "The quantity the parts were quoted at",
                      "example": 100
                    },
                    "primary_part_ipn": {
                      "type": "string",
                      "nullable": true,
                      "description": "The `internal_part_number` of the part MacroFab would purchase for this AVL at\n`quoted_quantity`, or null if none of its parts can be sourced\n",
                      "example": "MFI-C1201804-708824"
                    },
                    "parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A manufacturer part on an approved vendor list, quoted at the list's `quoted_quantity`",
                        "additionalProperties": true,
                        "required": [
                          "internal_part_number",
                          "part_id",
                          "manufacturer",
                          "manufacturer_part_number"
                        ],
                        "properties": {
                          "internal_part_number": {
                            "type": "string",
                            "description": "MacroFab's internal part number for the part. Use it to add or remove the part.",
                            "example": "MFI-C1201804-708824"
                          },
                          "part_id": {
                            "type": "string",
                            "format": "uuid",
                            "example": "3de834ab-eb84-57ee-a8b9-68905d624f5e"
                          },
                          "manufacturer": {
                            "type": "string",
                            "example": "TDK"
                          },
                          "manufacturer_part_number": {
                            "type": "string",
                            "example": "C3216X5R1V226M160AC"
                          },
                          "list_precedence": {
                            "type": "integer",
                            "description": "The part's position in the list (1 is first), used with `manual` precedence",
                            "example": 2
                          },
                          "primary": {
                            "type": "boolean",
                            "description": "Whether this is the part MacroFab would purchase for the AVL"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "electrical",
                              "mechanical"
                            ]
                          },
                          "description": {
                            "type": "string"
                          },
                          "house": {
                            "type": "boolean",
                            "description": "Whether this is a MacroFab house part"
                          },
                          "manual": {
                            "type": "boolean",
                            "description": "Whether the part was entered manually rather than found in supplier data"
                          },
                          "form_factor": {
                            "type": "object",
                            "nullable": true,
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "SMD",
                                  "PTH"
                                ]
                              },
                              "pins": {
                                "type": "integer"
                              }
                            }
                          },
                          "attributes": {
                            "type": "object",
                            "nullable": true,
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "availability": {
                            "type": "object",
                            "description": "Stock at MacroFab's preferred suppliers (`preferred`) and other suppliers (`standard`)",
                            "properties": {
                              "preferred": {
                                "$ref": "#/paths/~1api~1v4~1quote~1approved_vendor_list~1{approved_vendor_list_id}/get/responses/200/content/application~1json/schema/properties/parts/items/properties/availability/properties/standard"
                              },
                              "standard": {
                                "type": "object",
                                "properties": {
                                  "in_stock": {
                                    "type": "integer",
                                    "nullable": true,
                                    "description": "Quantity in stock",
                                    "example": 24000
                                  },
                                  "on_order": {
                                    "type": "integer",
                                    "nullable": true,
                                    "description": "Quantity on order with the supplier"
                                  },
                                  "moq": {
                                    "type": "integer",
                                    "nullable": true,
                                    "description": "Minimum order quantity",
                                    "example": 1
                                  },
                                  "lead_time": {
                                    "type": "integer",
                                    "nullable": true,
                                    "description": "Supplier lead time when not in stock, in days",
                                    "example": 168
                                  }
                                }
                              }
                            }
                          },
                          "pricing": {
                            "type": "object",
                            "properties": {
                              "component": {
                                "type": "object",
                                "properties": {
                                  "price_breaks": {
                                    "type": "object",
                                    "description": "Unit prices by minimum purchase quantity, from preferred and standard suppliers",
                                    "properties": {
                                      "preferred": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/paths/~1api~1v4~1quote~1approved_vendor_list~1{approved_vendor_list_id}/get/responses/200/content/application~1json/schema/properties/parts/items/properties/pricing/properties/component/properties/price_breaks/properties/standard/items"
                                        }
                                      },
                                      "standard": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "required": [
                                            "quantity",
                                            "price"
                                          ],
                                          "properties": {
                                            "quantity": {
                                              "type": "integer",
                                              "description": "Minimum purchase quantity for this price",
                                              "example": 100
                                            },
                                            "price": {
                                              "type": "number",
                                              "description": "Unit price at this quantity",
                                              "example": 0.3982
                                            }
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "using": {
                                    "type": "object",
                                    "description": "The pricing that applies at the quoted quantity. `unit_price` and `total_price` are\n`-1` when no price is available.\n",
                                    "additionalProperties": true,
                                    "properties": {
                                      "unit_price": {
                                        "type": "number"
                                      },
                                      "total_price": {
                                        "type": "number",
                                        "description": "`unit_price` times the quantity purchased, including `overage`, before tariffs"
                                      },
                                      "price_break": {
                                        "type": "integer"
                                      },
                                      "overage": {
                                        "type": "integer",
                                        "description": "Extra parts purchased to cover losses during assembly"
                                      },
                                      "preferred": {
                                        "type": "boolean",
                                        "description": "Whether the price comes from a preferred supplier"
                                      },
                                      "tariff_rate": {
                                        "type": "number",
                                        "description": "Tariff rate applied, in percent"
                                      },
                                      "total_tariffs": {
                                        "type": "number"
                                      },
                                      "customs_fee": {
                                        "type": "number"
                                      },
                                      "additional_fees": {
                                        "type": "number"
                                      },
                                      "country_code": {
                                        "type": "string",
                                        "nullable": true,
                                        "description": "Country of origin, if known"
                                      },
                                      "hts_code": {
                                        "type": "string",
                                        "nullable": true,
                                        "description": "Harmonized Tariff Schedule code, if known"
                                      }
                                    }
                                  }
                                }
                              },
                              "labor": {
                                "type": "object",
                                "description": "Assembly labor price for placing this part",
                                "properties": {
                                  "unit_labor": {
                                    "type": "object",
                                    "properties": {
                                      "price": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "total_labor": {
                                    "type": "object",
                                    "properties": {
                                      "price": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "quoted_quantity": {
                            "type": "integer"
                          },
                          "images": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "datasheets": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "created_timestamp": {
                      "type": "string",
                      "description": "UTC time, without a time zone suffix"
                    },
                    "created_by": {
                      "type": "string"
                    },
                    "updated_timestamp": {
                      "type": "string"
                    },
                    "updated_by": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "48774583-95e5-42c7-ad5b-1815b0c22670",
                  "internal_part_number": "MFI-C1879318-392420",
                  "customer_part_number": null,
                  "description": null,
                  "organization_id": "m5x5f5",
                  "is_global": false,
                  "precedence_preference": "price",
                  "kind": "electrical",
                  "dimensionality": null,
                  "parts": [
                    {
                      "internal_part_number": "MFI-C1096379-879855",
                      "part_id": "d1a1addb-acf9-5717-9c3b-683d4d4852f6",
                      "manufacturer": "Taiyo Yuden",
                      "manufacturer_part_number": "C3216X5R1V226M160AC",
                      "manufacturer_id": "7e2d427c-9cf6-4561-b21a-f34f66425f02",
                      "list_precedence": 1,
                      "kind": "electrical",
                      "dimensionality": null,
                      "attributes": {
                        "Multilayer": "Yes",
                        "Country/Region of Origin": "Japan"
                      },
                      "availability": {
                        "preferred": {
                          "in_stock": 0,
                          "lead_time": null,
                          "on_order": null,
                          "moq": null
                        },
                        "standard": {
                          "in_stock": 0,
                          "lead_time": null,
                          "on_order": null,
                          "moq": null
                        }
                      },
                      "datasheets": [],
                      "description": "",
                      "form_factor": {
                        "pins": 2,
                        "type": "SMD"
                      },
                      "house": false,
                      "images": {},
                      "manual": false,
                      "pricing": {
                        "component": {
                          "price_breaks": {
                            "preferred": [],
                            "standard": []
                          },
                          "using": {
                            "additional_fees": 0,
                            "customs_fee": 0,
                            "overage": 25,
                            "preferred": true,
                            "price_break": 0,
                            "total_price": -125,
                            "unit_price": -1,
                            "vendor": "",
                            "country_code": "JP",
                            "hts_code": "8532.24.00.20",
                            "tariff_rate": 15,
                            "total_tariffs": 0
                          }
                        },
                        "labor": {
                          "total_labor": {
                            "price": 3.7069565217391314
                          },
                          "unit_labor": {
                            "price": 0.03706956521739131
                          }
                        }
                      },
                      "quoted_quantity": 100,
                      "primary": false,
                      "suppliers": null
                    },
                    {
                      "internal_part_number": "MFI-C1201804-708824",
                      "part_id": "3de834ab-eb84-57ee-a8b9-68905d624f5e",
                      "manufacturer": "TDK",
                      "manufacturer_part_number": "C3216X5R1V226M160AC",
                      "manufacturer_id": "78ec2e56-92d8-4db2-a08d-24ef7774433e",
                      "list_precedence": 2,
                      "kind": "electrical",
                      "dimensionality": null,
                      "attributes": {
                        "Multilayer": "Yes",
                        "Country/Region of Origin": "Japan"
                      },
                      "availability": {
                        "preferred": {
                          "in_stock": 0,
                          "lead_time": 168,
                          "on_order": null,
                          "moq": 1
                        },
                        "standard": {
                          "in_stock": 24000,
                          "lead_time": 168,
                          "on_order": null,
                          "moq": 1
                        }
                      },
                      "datasheets": [],
                      "description": "Multilayer Ceramic Capacitors MLCC – SMD/SMT; TDK; C3216X5R1V226M160AC; 22 µF; 1206; 35 V; 35 V",
                      "form_factor": {
                        "pins": 2,
                        "type": "SMD"
                      },
                      "house": false,
                      "images": {
                        "thumbnail": "https://sigma.octopart.com/155376839/image/TDK-C3216X5R1V226M160AC.png",
                        "thumbnail_credit": "TDK"
                      },
                      "manual": false,
                      "pricing": {
                        "component": {
                          "price_breaks": {
                            "preferred": [
                              {
                                "quantity": 1,
                                "price": 1.0853658536585364
                              },
                              {
                                "quantity": 10,
                                "price": 0.6853658536585366
                              },
                              {
                                "quantity": 50,
                                "price": 0.5273170731707316
                              }
                            ],
                            "standard": [
                              {
                                "quantity": 1,
                                "price": 1.0817073170731706
                              },
                              {
                                "quantity": 25,
                                "price": 0.5621951219512195
                              },
                              {
                                "quantity": 100,
                                "price": 0.5146341463414633
                              }
                            ]
                          },
                          "using": {
                            "additional_fees": 50,
                            "customs_fee": 0.03620000000000001,
                            "overage": 25,
                            "preferred": false,
                            "price_break": 2000,
                            "total_price": 49.775,
                            "unit_price": 0.3982,
                            "vendor": "Newark",
                            "country_code": "JP",
                            "hts_code": "8532.24.00.20",
                            "tariff_rate": 15,
                            "total_tariffs": 7.46625
                          }
                        },
                        "labor": {
                          "total_labor": {
                            "price": 3.7069565217391314
                          },
                          "unit_labor": {
                            "price": 0.03706956521739131
                          }
                        }
                      },
                      "quoted_quantity": 100,
                      "primary": true,
                      "suppliers": null
                    }
                  ],
                  "created_timestamp": "2025-10-28T22:25:35.562623",
                  "created_by": "k21c6m",
                  "updated_timestamp": "2025-10-28T22:25:35.562799",
                  "updated_by": "k21c6m",
                  "quoted_quantity": 100,
                  "primary_part_ipn": "MFI-C1201804-708824"
                }
              }
            }
          },
          "404": {
            "description": "The AVL does not exist, or you do not have access to it"
          }
        },
        "security": [
          {
            "apikeyHeader": []
          }
        ]
      },
      "parameters": [
        {
          "name": "approved_vendor_list_id",
          "in": "path",
          "required": true,
          "description": "The AVL's ID, such as a BOM line's `approved_vendor_list_id`",
          "schema": {
            "type": "string",
            "format": "uuid",
            "example": "48774583-95e5-42c7-ad5b-1815b0c22670"
          }
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "apikeyHeader": {
        "type": "apiKey",
        "name": "X-MacroFab-API-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 251,
      "2": 93,
      "3": 50,
      "4": 34,
      "5": 139,
      "6": 70,
      "7": 0,
      "8": 113,
      "9": 3,
      "10": 149,
      "11": 120
    }
  }
}
```