majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.34k stars 466 forks source link

Failed to purchase item with param 'STDQ': failed to purchase app while using --purchase flag #205

Closed dsevcik closed 1 year ago

dsevcik commented 1 year ago

What happened?

I am facing this error everytime when downloading app with --purchase parameter. This happens both when using interactive and non-interactive mode. Similar issue happens while using ipatool purchase command separately.

Version

1.1.3

Relevant log output

ipatool --non-interactive --keychain-passphrase "some_pasphrase" download -b com.some.bundleid --purchase

ERR error="failed to purchase item with param 'STDQ': failed to purchase app" success=false

ipatool  purchase -b com.some.bundleid

INF enter passphrase to unlock "/root/.ipatool" (this is separate from your Apple ID password): ERR error="failed to purchase item with param 'STDQ': failed to purchase app" success=false

dsevcik commented 1 year ago

The problem is solved. It required to accept Terms & Conditions changes in the app store from the device conntcted to given apple ID. Closing this issue.

fersilentt commented 11 months ago

The solution that worked for me was

  1. Run the purchase command ipatool purchase -b com.google.photos

It should show an output like the following 8:30AM INF success=true

  1. Then we download the application ipatool download -b com.google.photos --purchase
yuqiandoudou commented 8 months ago

The solution that worked for me was

  1. Run the purchase command ipatool purchase -b com.google.photos

It should show an output like the following 8:30AM INF success=true

  1. Then we download the application ipatool download -b com.google.photos --purchase

I dont work. ➜ ~ ipatool purchase -b com.app.ShiJi 10:32AM INF success=true ➜ ~ ipatool download -b com.app.ShiJi --purchase downloading 0% | | ( 0/ 1 B) 10:33AM ERR error="license is required" success=false

davipt commented 8 months ago

ERR error="license is required" success=false

Have you by any chance “purchased” 300 apps in 24 hours? After 300 the purchase call apparently succeeds but then the download fails with that exact message. Wait some time and try again.

AT5HK commented 8 months ago

The solution that worked for me was

  1. Run the purchase command ipatool purchase -b com.google.photos

It should show an output like the following 8:30AM INF success=true

  1. Then we download the application ipatool download -b com.google.photos --purchase

this fixed my issue