Bug: App Store Connect API no longer permits updating app prices

When attempting to set the price for an app, the App Store Connect API returns a 500 error.

"An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/.'"

Can anyone else reproduce this error? I've filed it as FB11924370.

Answered by dfabulich in 742636022

This turned out to be my fault. I was trying to post like this:

{
    "data": {
        "type": "apps",
        "id": XXXXXXXXX,
        "relationships": {
            "prices": {
                "data": [
                    {
                        "type": "appPrices",
                        "id": "${price1}"
                    }
                ]
            }
        }
    },
    "included": [
        {
            "type": "appPrices",
            "id": "${price1}",
            "attributes": {
                "startDate": null
            },
            "relationships": {
                "priceTier": {
                    "data": {
                        "type": "priceTiers",
                        "id": "2"
                    }
                }
            }
        }
    ]
}

My mistake? The type of the priceTier object isn't priceTiers, it's appPriceTiers. 😭

I wish the API had given me a clearer error message for this, but at least Apple responded to my FB report and told me how to fix my code.

Accepted Answer

This turned out to be my fault. I was trying to post like this:

{
    "data": {
        "type": "apps",
        "id": XXXXXXXXX,
        "relationships": {
            "prices": {
                "data": [
                    {
                        "type": "appPrices",
                        "id": "${price1}"
                    }
                ]
            }
        }
    },
    "included": [
        {
            "type": "appPrices",
            "id": "${price1}",
            "attributes": {
                "startDate": null
            },
            "relationships": {
                "priceTier": {
                    "data": {
                        "type": "priceTiers",
                        "id": "2"
                    }
                }
            }
        }
    ]
}

My mistake? The type of the priceTier object isn't priceTiers, it's appPriceTiers. 😭

I wish the API had given me a clearer error message for this, but at least Apple responded to my FB report and told me how to fix my code.

Bug: App Store Connect API no longer permits updating app prices
 
 
Q