title: Unknown Error trying to add Pricing to a In App Purchase String
body: <p>I am trying to automated the upload of In app purchase string via the new iTunes Connect API endpoints. I have successfully called the Create InAppPurchase but now trying to add the pricing tier with a call to inAppPurchasePriceSchedules ( <a href="https://developer.apple.com/documentation/appstoreconnectapi/add_a_scheduled_price_change_to_an_in-app_purchase" rel="nofollow noreferrer">https://developer.apple.com/documentation/appstoreconnectapi/add_a_scheduled_price_change_to_an_in-app_purchase</a> ) but it is failing.</p>
  <p>I am getting an &quot;UNEXPECTED_ERROR&quot; message and to contact apple if the problem continues</p>
  <pre><code>{
     &quot;errors&quot;:[
        {
           &quot;status&quot;:&quot;500&quot;,
           &quot;code&quot;:&quot;UNEXPECTED_ERROR&quot;,
           &quot;title&quot;:&quot;An unexpected error occurred.&quot;,
           &quot;detail&quot;:&quot;An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/.&quot;
        }
     ]
  }
  </code></pre>
  <p>I am not sure what I am doing wrong? I might have missed exactly what I need to be doing. I am finding it hard to understand this API endpoint as its asking for a ID of a price point which I get by calling one of the other endpoints for price points. But when I call it requesting Tier 6, I am returned with 175 results for a single tier (it seems one per territory for that single tier 6). So then, do I need to include 175 pricing tiers to the endpoint I am getting an error for? I have tried adding a single tier and also all 175 but it still gives the same error Adding to my confusion,</p>
  <p>I have found the examples shown on this page ( <a href="https://developer.apple.com/documentation/appstoreconnectapi/app_store/in-app_purchase/managing_in-app_purchases" rel="nofollow noreferrer">https://developer.apple.com/documentation/appstoreconnectapi/app_store/in-app_purchase/managing_in-app_purchases</a> ) do not match the OpenAPI/Swagger definition for the <code>inAppPurchasePriceSchedules</code> endpoint, for example the example shows a property <code>prices</code> but swagger has a <code>manualPrices</code> property in the data.relationships section.</p>
  <h2>The Request I am Making</h2>
  <p>[POST] v1/inAppPurchasePriceSchedules</p>
  <pre><code>   &quot;data&quot;:{
        &quot;type&quot;:&quot;inAppPurchasePriceSchedules&quot;,
        &quot;relationships&quot;:{
           &quot;inAppPurchase&quot;:{
              &quot;data&quot;:{
                 &quot;type&quot;:&quot;inAppPurchases&quot;,
                 &quot;id&quot;:&quot;1640694240&quot;
              }
           },
           &quot;manualPrices&quot;:{
              &quot;data&quot;:[
                 {
                    &quot;type&quot;:&quot;inAppPurchasePrices&quot;,
                    &quot;id&quot;:&quot;${price1}&quot;
                 }
              ]
           }
        }
     },
     &quot;included&quot;:[
        {
           &quot;attributes&quot;:{
              &quot;startDate&quot;:null
           },
           &quot;relationships&quot;:{
              &quot;inAppPurchaseV2&quot;:{
                 &quot;data&quot;:{
                    &quot;type&quot;:&quot;inAppPurchasesV2&quot;,
                    &quot;id&quot;:&quot;1640694240&quot;
                 }
              },
              &quot;inAppPurchasePricePoint&quot;:{
                 &quot;data&quot;:{
                    &quot;type&quot;:&quot;inAppPurchasePricePoints&quot;,
                    &quot;id&quot;:&quot;eyJzIjoiMTY0MDY5NDI0MCIsInQiOiJHQlIiLCJwIjoiNiJ9&quot;
                 }
              }
           },
           &quot;type&quot;:&quot;inAppPurchasePrices&quot;,
           &quot;id&quot;:&quot;${price1}&quot;
        }
     ]
  } 
  
  </code></pre>