AvdLee / appstoreconnect-swift-sdk

The Swift SDK to work with the App Store Connect API from Apple.
Other
1.48k stars 198 forks source link

InAppPurchasePriceScheduleCreateRequest fails when an in-app purchase has a different territory other than US. #225

Closed whirr closed 1 year ago

whirr commented 1 year ago

The struct InAppPurchasePriceScheduleCreateRequest.Data.Relationships is missing the field baseTerritory.

I get the following error:

Request https://api.appstoreconnect.apple.com/v1/inAppPurchasePriceSchedules failed with status code 409. Related response error(s):

The request failed with response code 409 ENTITY_ERROR.ATTRIBUTE.REQUIRED

The provided entity is missing a required field. You must provide a value for the field (baseTerritory) with this request).
whirr commented 1 year ago

On master it's available.