Does undergoing an endoscopy during the day in Ramadan affect the validity of fasting?
Undergoing an endoscopic procedure during the day in Ramadan—whether through the mouth, nose, front private part, or back private part—invalidates the fast.
Whoever undergoes such a procedure must refrain from eating and drinking for the rest of the day out of respect for the sacred month and make up for that day after Ramadan.
What is the ruling if a postpartum woman becomes pure before forty days; are acts of worship obligatory upon her, and is she permissible for her husband?
If the postpartum woman becomes definitely pure before forty days, she must perform the ritual bath and perform acts of worship as a pure woman does. What was prohibited for her also becomes permissible, so she becomes permissible for her husband after her bath. The minimum duration for postpartum bleeding is a moment (an instant), and its usual maximum is forty days. Reaching forty days is not a condition; rather, it is sufficient for the blood to stop or to see the white discharge (qassa bayda'). And Allah the Almighty knows best.
Can I start fasting based on the moon sighting of another country?
You must follow the moon sighting of the country you are in.
Is it permissible to participate in an Udhiyah?
Praise be to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Regarding the sacrificial offering (Udhiyah), if it is a sheep or a goat, it only avails for one person. However, if it is a cow or a camel, it avails for seven people. It is permissible for the seven participants to have different intentions; for example, some may intend the sacrifice (Udhiyah), some the ’Aqiqah (sacrifice for a newborn), and others may simply intend to obtain meat.
It is stated in Hashiyat Qalyubi ‘ala Sharh al-Mahalli (Vol.4/P.256) and in Bushra al-Karim (p. 706):
"If one slaughters a camel or a cow on behalf of seven... it is permissible. Likewise, it is permissible if some of them intend their seventh for meat, and others intend their seventh for ’Aqiqah." And Allah the Almighty knows best.