App Store Connect API - Creating In App Purchase Strings Errors

Anyone successfully created and submitted an in app purchase string with the new app store connect API?

I can create the in app and add localizations and review screenshots but I am unable to get it to add the pricing to it.

I am POST TO URL: v1/inAppPurchasePriceSchedules

         {
   "data":{
      "type":"inAppPurchasePriceSchedules",
      "relationships":{
         "inAppPurchase":{
            "data":{
               "type":"inAppPurchases",
               "id":"1640694240"
            },
         "manualPrices":{
            "data":[
               {
                  "type":"inAppPurchasePrices",
                  "id":"${price1}"
               }
            ]
         }
      }
   },
   "included":[
      {
         "attributes":{
            "startDate":null
         },
         "relationships":{
            "inAppPurchaseV2":{
               "data":{
                  "type":"inAppPurchasesV2",
                  "id":"1640694240"
               }
            },
            "inAppPurchasePricePoint":{
               "data":{
                  "type":"inAppPurchasePricePoints",
                  "id":"eyJzIjoiMTY0MDY5NDI0MCIsInQiOiJHQlIiLCJwIjoiNiJ9"
               }
            }
         },
         "type":"inAppPurchasePrices",
         "id":"${price1}"
      }
   ]
}

Unfortunately all i get back is the following, I've tried with multiple different apps (as we need to automate this for 100s of apps)

   "errors":[
      {
         "status":"500",
         "code":"UNEXPECTED_ERROR",
         "title":"An unexpected error occurred.",
         "detail":"An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/."
      }
   ]
}

anyone have any ideas on this? transporter is getting shut down soon and this is blocking us able to build something to replace it.

Have spent an hour or two trying to figure this out myself, reading through the api documentation and not getting it to work at all. Trying to see how a swift library did it and also looking through the network request that App Store Connect does when adding the price manually.

This is my current solution to this, it seems to work and the price schedule changes when looking at the InAppProduct in App Store Connect

Example id: ABCDEF123 // replace with your in app product id
GET /v2/inAppPurchases/ABCDEF123/pricePoints?filter[territory]=USA&include=territory&limit=200
[
 ...
{
  type: 'inAppPurchasePricePoints',
  id: 'fb80023b033f415abfacfcc9514571a1',
  attributes: { customerPrice: '4.99', proceeds: '3.5', priceTier: '5' },
  links: {
    self: 'https://api.appstoreconnect.apple.com/v1/inAppPurchasePricePoints/fb80023b033f415abfacfcc9514571a1'
  }
}
  ...
]

Extract the price id and make a post

POST /v1/inAppPurchasePriceSchedules
{
    data: {
      type: 'inAppPurchasePriceSchedules',
      relationships: {
        inAppPurchase: {
          data: {
            type: 'inAppPurchases',
            id: 'ABCDEF123'
          },
        },
        manualPrices: {
          data: [
            {
              type: 'inAppPurchasePrices',
              id: '${price1}',
            },
          ],
        },
      },
    },
    included: [
      {
        type: 'inAppPurchasePrices',
        id: '${price1}',
        attributes: {
          startDate: null,
        },
        relationships: {
          inAppPurchaseV2: {
            data: {
              type: 'inAppPurchases',
              id: 'ABCDEF123'
            },
          },
          inAppPurchasePricePoint: {
            data: {
              type: 'inAppPurchasePricePoints',
              id: 'fb80023b033f415abfacfcc9514571a1',
            },
          },
        },
      },
    ],
  }
App Store Connect API - Creating In App Purchase Strings Errors
 
 
Q