REST API to query/change InApp price tier?

Hello,


Is there any way to programtically change the price tier of an In App Purchase item? We have a client with a large number of IAPs and changing price tiers using the App Store Connect web interface is very tedious for 100 IAPs. We'd like to submit a call to REST API along the lines of "set all these IAPs to price tier 4".


Anything like that exist?


Thanks,

Replies

App Store Connect has a new REST API: https://developer.apple.com/videos/play/wwdc2018/303/


It says "coming this summer", so I'm not sure if it's available yet.

Oh thanks - that's great. I wonder is there any documentation on this ? Is there anyone from Apple here who knows the current status of this REST API, and when it might be ready to test ?

Unfortunately, it looks like it's still "coming soon" (see the right side under "New App Store Connect Features"): https://developer.apple.com/app-store-connect/

2 years passed, it looks like it's still "coming soon"
I was looking for this API as well for the last few hours. I don't think there is API to retrieve or update/create the prices for in-app purchase.

https://developer.apple.com/videos/play/wwdc2020/10004/
It says you still need to use the App Store Connect website to configure in-app purchases manually....

Any update on this, or it still needs to be done Manually.

Hello,

You need to use two endpoints (appstoreconnectapi)

This entry point allows you to retrieve the inAppPurchasePricePoint ID for a specific tier of your purchase .

Example: https://api.appstoreconnect.apple.com/v2/inAppPurchases/%7BPurchase_ID%7D/pricePoints?limit=200&filter%5Bterritory%5D=USA (GET request)

This entry point allows you to add the new tier by specifying the inAppPurchasePricePointID in included (https://developer.apple.com/documentation/appstoreconnectapi/inapppurchasepriceinlinecreate/relationships/inapppurchasepricepoint/data)

  • If you drill down a little bit, there is an id under RelationShips, then ManualPrices. In the sample code snippets it gives: "manualPrices": { "data": [ { "type": "inAppPurchasePrices", "id": "${prices-id}" }, { "type": "inAppPurchasePrices", "id": "${prices-id-1}" } ] } } Any idea what those ${prices-id} and ${prices-id-1} should be? Do we just make them up? They appear again later under included.

  • In the overview (https://developer.apple.com/documentation/appstoreconnectapi/app_store/in-app_purchase/managing_in-app_purchases) for managing price changes it shows a sample payload for that. But it uses '"id": "${prices-id}",' and a ${priced-id-1} any idea what those are supposed to be? Are they looked up somewhere? Or just made up? for example can I just use "1" and "2"?

Add a Comment

When I try endpoint 1 and I filter down to USA, I still get 95 price points, which is all the price points in the USA territory. The IAP item in question only shows one price schedule on ASC, Tier 5 / $4.99. How do I get the actual price of the IAP item, instead of all the possible prices I could set the item to?