Hello,
can any help to set a price change to any of our In-Apps programmaticly(C#).
I'm have no problem to create the token and i get positive results for GET calls (like In-App purchase data or Apple PriceTemplates).
My Get call is a simple HttpClient GetAsync(id) so I supposed I need a HttpClient PostAsync(url, content).
The result is a "404 NotFound" which is no error shown for this call.
I searched a lot to fix the error but I found nothing that is explaining this error.
My content is created like this:
var content = new StringContent(jsonmodel, Encoding.UTF8, "application/json");
My URL:
https://api.appstoreconnect.apple.com/v1/inAppPriceSchedules
My JsonModel:
{
"data": {
"relationships": {
"baseTerritory": {
"data": {
"id": "DEU",
"type": "territories"
}
},
"inAppPurchase": {
"data": {
"id": "6448129561",
"type": "inAppPurchases"
}
},
"manualPrices": {
"data": [
{
"id": "eyJzIjoiNjQ0ODEyOTU2MSIsInQiOiJERVUiLCJwIjoiMTAxMjcifQ",
"type": "inAppPurchasePrices"
}
]
}
},
"type": "inAppPurchases",
"id": "eyJzIjoiNjQ0ODEyOTU2MSIsInQiOiJERVUiLCJwIjoiMTAxMjcifQ"
},
"included": [
{
"attributes": {
"startDate": null,
"endDate": null
},
"id": "eyJzIjoiNjQ0ODEyOTU2MSIsInQiOiJERVUiLCJwIjoiMTAxMjcifQ",
"relationships": {
"inAppPurchasePricePoint": {
"data": {
"id": "eyJzIjoiNjQ0ODEyOTU2MSIsInQiOiJERVUiLCJwIjoiMTAxMjcifQ",
"type": "inAppPurchasePricePoints"
}
},
"inAppPurchaseV2": {
"data": {
"id": "6448129561",
"type": "inAppPurchases"
}
}
},
"type": "inAppPurchasePrices"
}
]
}
regards kas