2

I am trying to create an In-App Purchase Review Screenshot to create a new In-App Purchase by API.

I'm following Apple's guide, but am stuck at step : "Make an image reservation with POST /v1/inAppPurchaseAppStoreReviewScreenshots (Create an In-App Purchase Review Screenshot)."

Payload example :

{
    "data": {
        "type": "inAppPurchaseAppStoreReviewScreenshots",
        "attributes": {
            "fileName": "my-screenshot.jpg",
            "fileSize": "45482"
        },
        "relationships": {
            "inAppPurchaseV2": {
                "data": {
                    "id": "1651010682",
                    "type": "inAppPurchases"
                }
            }
        }
    }
}

I always get error 409.

Exception = Client error: `POST https://api.appstoreconnect.apple.com/v1/inAppPurchaseAppStoreReviewScreenshots` resulted in a `409 Conflict` response:
{
  "errors" : [ {
    "id" : "7c813a34-37a6-49e7-be5f-699236659d0e",
    "status" : "409",
    "code" : "ENTITY_ERROR.A (truncated...)

I tried to remove V2 from inAppPurchaseV2 in relationships, but get the same error.

Has anyone succeeded by any chance?

1 Answer 1

3

I found the cause of the problem, it's because I was passing a string on "fileSize". By removing the quotes everything works!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.