Search code examples
iosin-app-purchaseapp-store-connectstorekit

App Store Server API: both transaction history and lookup customer order id return 404


We can get a customer’s transaction history through this (API)[https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history]

https://api.storekit.itunes.apple.com/inApps/v1/history/{transactionid}

and get purchase transactions through the customer order id per wwdc21

https://api.storekit.itunes.apple.com/inApps/v1/lookup/customer_order_id

However, we got 404 with an empty response body for those two APIs and the curl response is

* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 404
< server: daiquiri/3.0.0
< date: Mon, 19 Jul 2021 12:03:24 GMT
< content-length: 0
< x-apple-jingle-correlation-key: EJJPZLFC7B3NTSO3PLZNUVVIXY
< x-apple-request-uuid: 2252fcac-a2f8-76d9-c9db-7af2da56a8be
< b3: 2252fcaca2f876d9c9db7af2da56a8be-ad831e3618544a32
< x-b3-traceid: 2252fcaca2f876d9c9db7af2da56a8be
< x-b3-spanid: ad831e3618544a32
< apple-seq: 0.0
< apple-tk: false
< apple-originating-system: CommerceGateway
< x-responding-instance: CommerceGateway:010116:::
< apple-timing-app: 0 ms
< strict-transport-security: max-age=31536000; includeSubDomains
< x-daiquiri-instance: daiquiri:45824002:st44p00it-hyhk15104701:7987:21HOTFIX14
<

How to debug this issue or anything am I missing?

Update

This API inApps/v1/lookup will be released per app store guys this year.


Solution

  • It seems that this API is only available in the sandbox environment for now:

    enter image description here

    source

    That's why you have a generic 404 error without any response's body I suppose.