Apple API - How to update in-app purchase prices/create new purchases

Hello, my company got an email that the current way to upload in-app purchases for sales and new purchases updating via XML will be removed in November. Here is the message:

**We noticed that you recently used the XML feed to manage and deliver content to AppStore Connect. Starting in November 2022, the XML feed will no longer support in-app purchases, subscriptions, metadata, or app pricing. You can manage this content via the App Store Connect REST API, which makes it easy to customize and automate your workflows. 

The XML feed will continue to support existing Game Center management functionality.**

Apple Support and the documentation has not been very helpful for us to find what exactly the API endpoint is and how the data should be formed to send.

Does anyone have any direction on what we will need to do going forward?

Sorry but the above just is not helpful to find how to update a series of in-app purchases prices

This might get you a bit further:

https://developer.apple.com/documentation/appstoreconnectapi/add_a_scheduled_price_change_to_an_in-app_purchase

It's still lacking a lot of the details you will need.....

If I were trying to do this, and assuming that there is no useful answer on StackOverflow, I'd try the "get price schedule" endpoint to get the current price info, and see if that data can be suitably modified and sent back to that "schedule price change" endpoint.

Or maybe there is a WWDC video with some examples?

(Please let us know if you get this working. I'm also a former user of the XML API, and I may have to do this at some point.)

Thanks, i figured out how to do immediate and scheduled "price drops" but now I'm having problems with scheduling future sales with ending drops.

If i enter the post body with entries without a null start date (like the docs show, i even copy and pasted and updated my variables) I get an error about needing a null start date. If I try to do something like have an entry with a null start date (to make the current tier active) and two other entries where one is the start date of the sale and the start date of the sale end I get an error about not being able to use two null start states. One thing I was able to do was use the null start date to immediately trigger a scheduled sale but this is not what im looking for, i want to have a start date pushed out a few days.

This is so frustrating that the doc examples themselves don't work. I've gotten over the fact that the API endpoint docs are completely useless but this page https://developer.apple.com/documentation/appstoreconnectapi/app_store/in-app_purchase/managing_in-app_purchases seems to be the most verbose and still doesnt have correct information.

Has anyone figured out a way to schedule a tier update starting in the future and ending in the future?

I have this same problem. Was updating via the XML updates. I'm able to retrieve price point ids and such. But, when I schedule a price update looking almost exactly like the example at the bottom of the page https://developer.apple.com/documentation/appstoreconnectapi/app_store/in-app_purchase/managing_in-app_purchases, with the in_app_purchase id and price tier ids changed, it just returns an Error 500. No Info on whats wrong. I suspect my problem is with that $(price-id} and $(price-id-1} thats listed in the example. But I can't find ANYWHERE that says what those should be. I've been assuming they are just unique ids for this message, but is there something they should be instead?

Apple API - How to update in-app purchase prices/create new purchases
 
 
Q