ipatool icon indicating copy to clipboard operation
ipatool copied to clipboard

failed to purchase item with param 'STDQ'

Open 503380393 opened this issue 8 months ago • 5 comments

What happened?

When my Apple ID changes region, such as from the United States to India, and then I log in and purchase the app, failed to purchase occurs. But I can be sure that the app I purchased is available in India.

Version

2.3.0

Relevant log output

6:32PM DBG error="failed to purchase item with param 'STDQ': An unknown error has occurred" metadata={"Data":{"CustomerMessage":"An unknown error has occurred","FailureType":"5002","JingleDocType":"","Status":0},"Headers":{"Apple-Originating-System":"MZFinance","Apple-Seq":"0.0","Apple-Timing-App":"160 ms","Apple-Tk":"false","B3":"cd721b06ba599a036dea0ff2c697dac8-91a444dc48175479","Cache-Control":"private; no-cache; no-store; no-transform; must-revalidate; max-age=0","Connection":"keep-alive","Date":"Tue, 10 Mar 2026 10:32:18 GMT","Edge-Control":"no-store; cache-maxage=0","Expires":"Tue, 10 Mar 2026 10:32:18 GMT","Itspod":"53","Pod":"53","Server":"Apple","Set-Cookie":"wosid-lite=; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; secure; wosid-lite=; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; domain=.apple.com; secure; wosid-lite=njAO6spoIcgfOBxeUMcb60; version=\"1\"; path=/; domain=.apple.com; secure; HttpOnly; itspod=53; version=\"1\"; expires=Fri, 10-Apr-2026 10:32:18 GMT; path=/; domain=.apple.com; mzf_in=531079; version=\"1\"; path=/WebObjects; domain=.apple.com; secure; HttpOnly; mzf_dr=0; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; domain=.apple.com","Strict-Transport-Security":"max-age=31536000; includeSubdomains","X-Apple-Application-Instance":"531079","X-Apple-Application-Site":"ST44","X-Apple-Jingle-Correlation-Key":"ZVZBWBV2LGNAG3PKB7ZMNF62ZA","X-Apple-Lokamai-No-Cache":"true","X-Apple-Orig-Url":"https://p53-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/buyProduct","X-Apple-Request-Uuid":"cd721b06-ba59-9a03-6dea-0ff2c697dac8","X-Apple-Translated-Wo-Url":"/WebObjects/MZFinance.woa/wa/buyProduct","X-B3-Spanid":"91a444dc48175479","X-B3-Traceid":"cd721b06ba599a036dea0ff2c697dac8","X-Content-Type-Options":"nosniff","X-Daiquiri-Debug-Worker-Pid":"61034; 56685","X-Daiquiri-Instance":"daiquiri:44236002:st41p00it-qukt09031302:7987:26RELEASE40:daiquiri-amp-commerce-legacy-int-001-st; daiquiri:14626001:mr55p00it-qukt01010301:7987:26RELEASE40:daiquiri-amp-commerce-pci-ext-001-mr","X-Frame-Options":"SAMEORIGIN","X-Responding-Instance":"MZFinance:531079:::","X-Webobjects-Loadaverage":"94","X-Xss-Protection":"1; mode=block"},"StatusCode":200}
6:32PM ERR error="failed to purchase item with param 'STDQ': An unknown error has occurred" success=false

503380393 avatar Mar 12 '26 03:03 503380393

But if we continue to purchase American apps, we can succeed.

503380393 avatar Mar 12 '26 03:03 503380393

i have same problem. may be because of the apps need another api to confirm purchase in some apps.

9k00 avatar Mar 25 '26 07:03 9k00

Version 2.4.0 I have same problem for non US storefronts.

satroschenko avatar Aug 31 '26 07:08 satroschenko

Can you provide the exact command to reproduce this?

majd avatar Sep 13 '26 11:09 majd

Can you provide the exact command to reproduce this?

Login to RU account - succsessfully. ipatool purchase -b "uz.wildberries.taxi.client" --verbose

Output:

DBG error="failed to purchase item with param 'STDQ': failed to purchase app" metadata={"Data":{"CustomerMessage":"","FailureType":"","JingleDocType":"buyProductFailure","Status":0},"Headers":{"Apple-Originating-System":"MZFinance","Apple-Seq":"0.0","Apple-Timing-App":"144 ms","Apple-Tk":"false","B3":"44b798f14324515db1a2aeda07eb04f5-0814b5abc491406f","Cache-Control":"private; no-cache; no-store; no-transform; must-revalidate; max-age=0","Content-Type":"text/xml; charset=UTF-8","Date":"Sun, 13 Sep 2026 19:11:10 GMT","Edge-Control":"no-store; cache-maxage=0","Expires":"Sun, 13 Sep 2026 19:11:10 GMT","Itspod":"20","Pod":"20","Server":"Apple","Set-Cookie":"wosid-lite=; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; secure; wosid-lite=; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; domain=.apple.com; secure; wosid-lite=63cjWdzODOzvicqO88td40; version=\"1\"; path=/; domain=.apple.com; secure; HttpOnly; itspod=20; version=\"1\"; expires=Tue, 13-Oct-2026 19:11:10 GMT; path=/; domain=.apple.com; mzf_in=3200219; version=\"1\"; path=/WebObjects; domain=.apple.com; secure; HttpOnly; mzf_dr=0; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; domain=.apple.com","Strict-Transport-Security":"max-age=31536000; includeSubdomains","X-Apple-Application-Instance":"3200219","X-Apple-Application-Site":"MR22","X-Apple-Date-Generated":"Sun, 13 Sep 2026 19:11:10 GMT","X-Apple-Jingle-Correlation-Key":"IS3ZR4KDERIV3MNCV3NAP2YE6U","X-Apple-Lokamai-No-Cache":"true","X-Apple-Orig-Url":"https://p20-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/buyProduct","X-Apple-Request-Store-Front":"143517-2,34","X-Apple-Request-Uuid":"44b798f1-4324-515d-b1a2-aeda07eb04f5","X-Apple-Translated-Wo-Url":"/WebObjects/MZFinance.woa/wa/buyProduct","X-B3-Spanid":"0814b5abc491406f","X-B3-Traceid":"44b798f14324515db1a2aeda07eb04f5","X-Content-Type-Options":"nosniff","X-Daiquiri-Debug-Worker-Pid":"28597; 5824","X-Daiquiri-Instance":"daiquiri:14236001:mr55p00it-qukt05050701:7987:26RELEASE153:daiquiri-amp-commerce-legacy-int-001-mr; daiquiri:44626004:st41p00it-qukt09070301:7987:26RELEASE153:daiquiri-amp-commerce-pci-ext-001-st","X-Frame-Options":"SAMEORIGIN","X-Responding-Instance":"MZFinance:3200219:::","X-Webobjects-Loadaverage":"24","X-Xss-Protection":"1; mode=block"},"StatusCode":200}

satroschenko avatar Sep 13 '26 19:09 satroschenko