Available here:
- https://developer.apple.com/documentation/appstoreconnectapi/list_all_in-app_purchases_for_an_app_v1 ("deprecated")
- https://developer.apple.com/documentation/appstoreconnectapi/list_all_in-app_purchases_for_an_app (v2)
v1 Example from their page:
{
"data": [
{
"type": "inAppPurchases",
"id": "ca38ea26-b7d5-4989-9615-c678cb05aabd",
"attributes": {
"referenceName": "YNC1",
"productId": "YNCNC1",
"inAppPurchaseType": "NON_CONSUMABLE",
"state": "WAITING_FOR_SCREENSHOT"
},
"links": {
"self": "https://api.appstoreconnect.apple.com/v1/inAppPurchases/ca38ea26-b7d5-4989-9615-c678cb05aabd"
}
}
],
"links": {
"self": "https://api.appstoreconnect.apple.com/v1/apps/6446998023/inAppPurchases"
},
"meta": {
"paging": {
"total": 1,
"limit": 50
}
}
}
Challenge here seems to be:
- the
data field being a list instead of dict
- the url requires the App ID in the middle of the path
e.g.: GET https://api.appstoreconnect.apple.com/v1/apps/{id}/inAppPurchases
Available here:
v1 Example from their page:
{ "data": [ { "type": "inAppPurchases", "id": "ca38ea26-b7d5-4989-9615-c678cb05aabd", "attributes": { "referenceName": "YNC1", "productId": "YNCNC1", "inAppPurchaseType": "NON_CONSUMABLE", "state": "WAITING_FOR_SCREENSHOT" }, "links": { "self": "https://api.appstoreconnect.apple.com/v1/inAppPurchases/ca38ea26-b7d5-4989-9615-c678cb05aabd" } } ], "links": { "self": "https://api.appstoreconnect.apple.com/v1/apps/6446998023/inAppPurchases" }, "meta": { "paging": { "total": 1, "limit": 50 } } }Challenge here seems to be:
datafield being alistinstead ofdicte.g.:
GET https://api.appstoreconnect.apple.com/v1/apps/{id}/inAppPurchases