Automate In-App purchases using backend APIs

I am interested in using sandbox users for my automation, and I want to bypass the UI and execute the automation using the APIs. Currently, our app calls Apple to get the payment receipt, and then our internal workflows are triggered based on the response received from Apple. Is there a way to bypass UI and achieve the same thing using the backend APIs for sandbox user accounts? Thank you for your time and consideration.

Automate In-App purchases using backend APIs
 
 
Q