Post

Replies

Boosts

Views

Activity

How to get and set IAP Item prices via App Store Connect API?
I need to get and set the prices of IAP items via the App Store Connect API. I have the item IDs, and I can already get and set the localization information, but the prices are just a circular loop of lists of schedules and price points, none of which have currency associated with them. I can't find ANY API endpoint that will let me get the current price of the IAP item in dollars, or even in price tier, without just returning ALL the price points (something like 16 thousand different ones, for some reason). What am I supposed to do, poll all 16 thousand price points, 50 at a time (taking hours every time this code runs and DEFINITELY ruining my rate limit), store them all, and just manually loop through them all? As far as I can tell, that STILL won't actually get me a DOLLAR PRICE, just some amorphous blob object directing me to yet another object. How is this supposed to work? What's the series of API calls and field queries that allows me to see and edit the prices of API items? Is no one else doing this?
4
0
2.3k
Jan ’23
Can't get the price for an In App Purchase
I'm using the App Store Connect API. I need to programmatically check that the IAP prices are correct against my own database. I can get a list of price points for each item with https://api.appstoreconnect.apple.com/v2/inAppPurchases/${appleIapItemId}/pricePoints?filter[territory]=USA but that just gives a list of ALL price points in the territory, not a specific one for the IAP item. I also can't find any endpoints for an IAP Item that point to a single Price Point ID. How do I get the price for an individual IAP Item with the API? This was a lot easier with the ITMSP file and transporter before.
0
0
1.3k
Jan ’23
Can't Upload IAP Item Review Screenshots via the API
I'm uploading IAP Item review screenshots via the App Store Connect API. I create the request, then receive the upload operations. I perform the upload, making sure to populate the headers, and put the data in a buffer in the body of the PUT request. https://developer.apple.com/documentation/appstoreconnectapi/create_an_in-app_purchase_review_screenshot When that upload API call returns, it gives me back an empty buffer. Nothing I do seems to alter the buffer, including intentionally sending incorrect data as a test. Is this intended behavior? What does the empty buffer mean? https://developer.apple.com/documentation/appstoreconnectapi/commit_a_review_screenshot_for_an_in-app_purchase Then, without knowing whether my upload has succeeded, I try to commit the upload. That call always returns an unexpected internal server error. I suspect this is because the upload didn't actually succeed, and that the screenshot is still empty, but I have no way of knowing why. There's no documentation page for the actual upload API call, as far as I know. Here's the error. { status: '500', code: 'UNEXPECTED_ERROR', title: 'An unexpected error occurred.', detail: 'An unexpected error occurred on the server side. If this issuue continues, contact us at https://developer.apple.com/contact/.' } How do you upload IAP screenshots?
2
0
864
Feb ’23