Calling App Store Server API Get All Subscription Statuses production url always returns 401

Viewed 112

I'm having a problem with communication between my backend server (written in net 6.0) and App Store Server API.

After finishing all related setups (setting up an API key, creating JWT), when calling Get All Subscription Statuses sandbox URL (https://api.storekit-sandbox.itunes.apple.com), I'm able to get HTTP 200 with the correct content of my subscription. But when I switch to the production URL (https://api.storekit.itunes.apple.com), the request always returns HTTP 401 which specifies an invalid JWT.

Is there any difference between the sandbox and production's JWT? Do I need different API keys for each environment or am I missing any configs/setups?

0 Answers
Related