newuser-1130fe18-ef22-4bb8-8f33-d9fe244fb70c avatar image

API based App Publishing


I'm looking to automate the APK uploading to the Appstore using the Amazon Submission API. I'm having trouble getting the upload to work.

The steps for uploading the APK is:

  1. Authenticate and get an access token
  2. Get an active edit or create a new one
  3. Replace the existing APK in the edit or add a new one
  4. Commit the edit

I'm running into issues at Step (2):

  • When I look for active edits, the HTTP response is that there are none; so I move on to creating a new edit
  • When I try to create a new edit, I get an HTTP 412 error and the following response body

  • {"httpCode":412,"message":"Precondition Failed","errors":[{"errorCode":"error_new_version_creation_not_allowed","errorMessage":"Cannot create a new 'edit' for the app in it's current state."}

What does this error mean? What am I doing wrong? Is it possible to automate APK uploads to the Amazon Appstore?

If you need information on the specific app and Appstore account this refers to, please contact me directly.


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Could you please login to your Developer Portal account and send us the code snippet that you use to automate this app's submission? Please also include the URL to this forum post for context, and we will investigate. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Trying to executed the following steps from script and it fails in the second steps while trying to perform "create edit"

1) Use the following API call to get the Authentication token

  1. curl --location --request POST '' \
  2. --header 'Content-Type: application/x-www-form-urlencoded' \
  3. --data-urlencode 'client_id=amzn1.application-oa2-client.XXXXXXXXXXXXXXXXXXXXX' \
  4. --data-urlencode 'client_secret=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' \
  5. --data-urlencode 'grant_type=client_credentials' \
  6. --data-urlencode 'scope=appstore::apps:readwrite

2) Create Edit (Live Testing App)

  1. curl --location --request POST '' \
  2. --header 'Authorization: Bearer <Token received from step-2>'

Getting following error response

  1. {
  2.     "httpCode": 412,
  3.     "message": "Precondition Failed",
  4.     "errors": [
  5.         {
  6.             "errorCode": "error_new_version_creation_not_allowed",
  7.             "errorMessage": "Cannot create a new 'edit' for the app in it's current state."
  8.         }
  9.     ]
  10. }

Can you pls check and confirm, what is wrong with the #2 API call.

I was trying to make the script based on the documentation in

As part of our CI, wanted to upload APKs to Amazon Appstore Live Testing automatically.


1 Like 1 ·
Josef avatar image Josef newuser-1130fe18-ef22-4bb8-8f33-d9fe244fb70c ·


did you solve this?

I got the same issue.
Best regards,


0 Likes 0 ·
I'm also seeing this issue
0 Likes 0 ·