Suddenly receiving error 21002 from verifyReceipt endpoint for sandbox receipt

We started getting error code 21002 from the verifyReceipt endpoint today for any receipt passed to it:

{
    "status": 21002
}

I have created a new sandbox tester, and cleared and reinstalled the application before attempting the purchase. I'm seeing this response through RevenueCat's receipt validation tool (https://www.revenuecat.com/app-store-receipt-validation/) and from a direct cURL command:

curl --location --request POST 'https://sandbox.itunes.apple.com/verifyReceipt' \

--header 'content-type: application/json' \

--data-raw '{

    "receipt-data":"{RECEIPT_DATA}",

    "password":"{SECRET}",

    "exclude-old-transactions":"false"

}'

This was working as of yesterday, but seems to be failing for anyone who has tried today. Has anyone else run into issues with this?

Answered by DTS Engineer in 744422022

There was an outage with the App Store receipt verification that is now resolved. See the status page for details. File a Feedback report if the issue still occurs.

Can you explain the process of taking a receipt from the sandbox and extracting the cert?

Ok, I tried using Restore Purchase item and it looks like the problem gets resolved (at least in sandbox!) with the help of certificate which is valid until Nov 17 20:40:52 2023 GMT. Looks like we'll have fun right before Thanksgiving day this time.

If someone is willing to check with production, I can provide 1 line of code and a couple terminal commands. Then those of us who had issues with production builds will have a way out... At least for the users who contacted us.

Within the last half hour or so, Apple updated their status page to show the issue as resolved. We're showing purchases that were started yesterday in sandbox as being able to be restored now.

I tried 100 times with the same receipt. It stills shows 21002 (Sandbox) and normal back and forth. tried 100 times but only a few get responses. Any idea?

We're still experiencing this issue in Sandbox. We're POSTing to https://sandbox.itunes.apple.com/verifyReceipt and we consistently get 21002. Production seems okay.

Still getting 21002 even if the status shows the outage was solved. We dont have the app published cause we thought is an error on our side. Go figure. Should I have any hopes the sandbox will work tomorrow? or rather go publish the app and consider the validation is working and they they wil really work after its in production

We are also still seeing this in the sandbox and in testflight builds. However, roughly 10% of purchase+verification attempts are succeeding.

Accepted Answer

There was an outage with the App Store receipt verification that is now resolved. See the status page for details. File a Feedback report if the issue still occurs.

Also still experiencing the issue. I have filed FB11983534.

Hi mate do you recommend using Revenuecat to support in-app subscriptions?I'm new in here, really appreciate it if you could offer some advices, thanks!!!!!

Hi, I am still getting the same issue and when I try the revenuecat receipt validator tool or direct link still get 21002.

Apple ID : 1551308775

This has started happening for me yesterday. Anyone else?

I have same issue with tvOS, kindly advice ?

Suddenly receiving error 21002 from verifyReceipt endpoint for sandbox receipt
 
 
Q