Thanks to Grok v2 I have a possible solution. This is what it tells me to try:
According to the information available on Apple's App Store Connect API documentation, you can indeed set pricing for an app, but this is done through scheduled price changes rather than a direct pricing endpoint for immediate application. Here's how you can manage app pricing using the App Store Connect API:
Endpoint:
Scheduled Price Change for an App:
Endpoint: POST /v1/apps/{id}/priceSchedules
Request Format:
To schedule a price change for an app, you would use the following structure:
json
{
"data": {
"attributes": {
"startDate": "2024-12-31T00:00:00Z",
"manualPrices": [
{
"territory": "USA",
"priceTier": "TIER_1"
}
]
},
"type": "appPriceSchedules"
}
}
Explanation:
startDate:
The date when the price change should take effect. This needs to be in ISO 8601 format.
manualPrices:
An array of price changes for different territories. You specify the territory (country/region code) and the price tier.
territory:
ISO 3166-1 alpha-3 country code. For example, "USA" for the United States.
priceTier:
This is a string representing the price tier. Tiers range from TIER_1 to TIER_800 with possible additional higher tiers upon request. The exact mapping of these tiers to actual prices can be found in the App Store Connect web interface or through the GET /v1/pricePoints endpoint.
Additional Points:
Price Tiers:
The actual monetary value associated with each tier can vary by country due to currency and tax differences. You can fetch current price points and tiers for different territories using GET /v1/pricePoints or get price information for an app with GET /v1/apps/{id}/pricePoints.
Automatic Pricing:
If you don't specify manual prices for all territories, Apple will automatically generate prices for other territories based on your base territory's price, considering local taxes and currency conversions. However, if you specify a manual price for a territory, that price will be fixed and not automatically adjusted by Apple.
Permissions:
You'll need the appropriate role (like Account Holder, Admin, or App Manager) to use these endpoints.
Testing:
Before pushing changes live, it's advisable to test your API calls in a controlled environment or with a test app to ensure everything works as expected.
References:
This information is based on Apple's App Store Connect API documentation, particularly related to managing app pricing and availability:
For detailed API usage, including endpoints for price management, refer to the official documentation for App Store Connect API.
Remember, the exact behavior and available endpoints might evolve, so always check the latest documentation or Apple's developer forums for the most current practices.