# Bill of Material

## Get Bill Of Materials v2.0

<mark style="color:blue;">`GET`</mark> `https://yoursite.demanddriventech.com/odata/v2/billofmaterial`

This endpoint allows you to get part bill of materials for the current dataset. This endpoint does not currently accept parameters.

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{
    "@odata.context": "https://yoursite.demanddriventech.com/odata/v2/$metadata#billofmaterial",
    "value": [
        {
            "DataSetId": 1,
            "ParentPartId": 47772,
            "ChildPartId": 47771,
            "ParentLocationId": 96,
            "ChildLocationId": 96,
            "ParentPartNumber": "FPA",
            "ParentRevision": "",
            "ParentLocation": "",
            "ChildPartNumber": "PPA",
            "ChildRevision": "",
            "ChildLocation": "",
            "Quantity": 1.0
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## Bill of Material Fields

| Field Name       | Type    |
| ---------------- | ------- |
| DataSetId        | int     |
| ParentPartId     | int     |
| ParentLocationId | int     |
| ChildPartId      | int     |
| ChildLocationId  | int     |
| ParentPartNumber | text    |
| ParentRevision   | text    |
| ParentLocation   | text    |
| ChildPartNumber  | text    |
| ChildRevision    | text    |
| ChildLocation    | text    |
| Quantity         | decimal |
