App Store Server API:交易历史和查找客户订单 ID return 404

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

我们可以通过这个获取客户的交易记录(API)[https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history]

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

并通过每个 wwdc21

的客户订单 ID 获取购买交易

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

但是,对于这两个 API,我们得到了 404,响应主体为空,curl 响应是

* 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
<

如何调试这个问题或我遗漏了什么?

更新

这个 API inApps/v1/lookup 将在今年向每个应用商店的人发布。

看来这个API目前只能在沙箱环境中使用:

source

这就是为什么你有一个一般的 404 错误,我想没有任何响应的正文。