App Store Server API, How to confirm a Transaction whether it is in success status in server side

When the user finish the Product.purchase in ios, I get an transaction id in the client side. But how can I use the App Store Server API to confirm this transaction whether it is in success status or not in server side?

thanks