The headlight connectors and contacts are these:
https://www.ebay.com/itm/61132359991...4383.l4275.c10
The Male pins are on the connector. on the headlight but doesn't really have a bmw part number. The part number I found is the TE connectivity part number: 1-452337-1