In the Name of Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
It is permissible for the person offering an Udhiyah (sacrificial offering) to include others in the spiritual reward of the sacrifice. However, it is not permissible for multiple people to jointly share the purchase price of a single sheep or goat, unless one person gifts the money to the other.
It is stated in Mughni al-Muhtaj (6/137) by Al-Khatib al-Shirbini:
"If a person includes someone else in the reward of his sacrifice and slaughters it on his own behalf, it is permissible."
It should be carefully noted that including someone else in the reward of one's sacrifice is completely distinct from offering a sacrifice on behalf of someone else. And Allah the Almighty Knows Best.