Hi @Muhammed Işık ,
Thanks for reaching out.
From what you shared, the main reason you're getting { "items": [] } is most likely because the request is filtering by the wrong product type. You're currently using "productTypes": ["Durable"], but subscriptions are not Durable products. Durable means a one-time purchase. For subscriptions, you should use:
"productTypes": ["Subscription"]
If you update that and still receive an empty list, the next things to double-check are:
- Make sure the
identityTypeandidentityValuematch the exact account that made the purchase. You’re currently using'identityType': 'b2b', which represents a business identity. If the purchase was made by a regular consumer account (B2C), or if the identity value doesn’t exactly match the purchasing account, the API will return 200 OK with no items. - Verify that the
productIdandskuIdare correct and belong to the same environment. - Ensure you're not mixing Sandbox and Production (a Sandbox purchase won’t appear in Production queries).
- Confirm the subscription is active and not expired or refunded.
The Microsoft Store Collections API only returns items that match all filters exactly, so even a small mismatch will result in an empty list rather than an error.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.