purchase.mp.microsoft.com/v8.0/b2b/orders/query
This API is deprecated for refund detection. Instead, use the Clawback event service as outlined in Managing refunds and chargebacks from your service.
purchase.mp.microsoft.com/v8.0/b2b/orders/query API lets a game service query a user’s consumable purchases from the last 90 days. It also returns fields not available in a Collections query, such as ShortOrderID for support workflows.
Prerequisites
Review Prerequisites for service-to-service APIs. This API only supports the Microsoft Entra ID auth type. If product configuration isn’t published in Partner Center, the API can succeed but return no results.Request
Request syntax
Request header
Request body
Line item states
Request example
Response
Response body
The
PurchasedItem object contains the following parameters.
The
OrderLineItem object contains the following parameters.
Response example
Explanation of example response
In this example, the user purchased consumable9MT5TGW893HV five times. Two purchases are Revoked, meaning they were refunded after being consumed. For near-real-time refund detection, use the Clawback event flow described in Managing refunds and chargebacks from your service.
