Questions about collections API

AHOY11 0 Reputation points
2023-03-31T08:02:12.1833333+00:00

Hi there.

I have some questions about collections API like "https://collections.mp.microsoft.com/v8.0/collections/..."

(1) collections.mp.microsoft.com/v8.0/collections/consume
https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/commerce/service-to-service/microsoft-store-apis/xstore-v8-consume

Q. Can I use itemId for consume? There is only productId in Request body. But It can't specify which item to be consumed, because there may be several items with same productId.

For example, A user bought a product with productId P and 1 of quantity, And the user bought same product with productId P and 2 of quantity. Then there will be 2 items with productId P. When trying to consume, with just productId P, which item will be consumed? (productId P with 1 of quantity or productId P with 2 of quantity?).

I want to get idea for resolving above problem.

(2) collections.mp.microsoft.com/v9.0/collections/publisherQuery
https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/commerce/service-to-service/microsoft-store-apis/xstore-v9-query-for-products

Q. I wonder if consumed items disappear in Response of API.

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
931 questions
{count} votes