App store connect API returns 404 with production url, but it returns 401 with sandbox url

My app is currently in review (review completed).

I'm using the Get Transaction info API with a sandbox purchase transaction ID. "x": "Invalid response: Client error: GET https://api.storekit-sandbox.itunes.apple.com/inApps/v1/transactions/2000000632750685 resulted in a 401 Unauthorized response",

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

Should I generate my JWT differently for sandbox vs production? If not, what else could cause this issue?

Is there any missing congigration?

Hey @m_elg . The same issue here. Were you able to find a root cause?

App store connect API returns 404 with production url, but it returns 401 with sandbox url
 
 
Q