Found the link with the pinout infomation.
https://wiki.bambulab.com/en/x1/troubleshooting/ams-power-failure