The same subscription purchase has different transaction IDs.

I found that the same subscription purchase generated multiple transactions with different transaction IDs. As a server, how can I determine that these belong to the same purchase in order to grant the membership benefits only once? Steps to reproduce: When multiple devices are logged in with the same Apple ID, and one of the devices purchases a subscription product.

The same subscription purchase has different transaction IDs.
 
 
Q