App store connect API returns 401 Sandbox and 404 Production

I also still getting the same error from sandbox "x": "Invalid response: Client error: GET https://api.storekit-sandbox.itunes.apple.com/inApps/v1/transactions/2000000632845273 resulted in a 401 Unauthorized response",

while for production url "x": "Invalid response: Client error: GET https://api.storekit.itunes.apple.com/inApps/v1/transactions/2000000632845273 resulted in a 404 Not Found response:\n{"errorCode":4040010,"errorMessage":"Transaction id not found."}\n",

Hey @m_elg I'm getting the same error. Did you find a solution?

From TransactionIdNotFoundError: Don’t unlock the service or content associated with the transaction ID for the app bundle ID and environment that you indicate in the request unless you successfully resolve this error. To resolve this error, check your request to ensure that:

  • The JSON Web Token (JWT) payload contains the bundle ID (bid) of your app that’s associated with the transaction ID. For more information, see Generating JSON Web Tokens for API requests.

  • You’re making the request in the same environment, production or sandbox, that generated the transaction ID.

In rare cases, you might get this error for transaction IDs that previously returned data successfully. Don’t unlock the service or content for the app bundle ID and environment in the request if you’re unable to resolve this error using the steps above.

App store connect API returns 401 Sandbox and 404 Production
 
 
Q