Add the required permissions
Under
Access Permissions, click
Add API System and add both of the following, setting
Read and
Write on each:
game-passes
developer-products
Important: for each one, use the Restrict by Experience toggle and search for your specific game — don't leave it open to all experiences.