GET /service/api/ecom/shop/products/{keycode}/orderstatus

Gets information about the order status for a keycode.

This API returns status information about all orders associated with the provided keycode. The response may include multiple status information in case an existing license is upgraded or renewed for example. Each status information record provides the VendorOrderCode value which identifies the cart order that was used to create an order on the license.

Note: If no order status information is available for the provided keycode, the API will respond with a status code of 404 (NotFound). This can be the case for example when trying to query information for a trial license.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
keycode

The product keycode to query order status information for. In general, this is the keycode that was returned when an order is placed by processing a cart via the CreateOrder API.

string

Required

URI Sample(s)

GET
https://unityapi.webrootcloudav.com/service/api/ecom/shop/products/D922A2FEE7A04D8D9C94/orderstatus

Body Parameters

None.

Response Information

Resource Description

Information about the status of orders associated with the keycode.

GetOrderStatusResponseServiceModel
NameDescriptionTypeAdditional Information
OrderStatus

List of status information records for each order associated with a keycode.

Collection of GetOrderStatusResponseServiceModelOrderStatus

None.

Sample Response

{
  "OrderStatus": [
    {
      "Keycode": "A66A24EF6B9640E19430",
      "VendorOrderCode": "PSV0056013561",
      "ExceptionStatus": null,
      "PartnerLicenseStatus": "approved"
    },
    {
      "Keycode": "A66A24EF6B9640E19430",
      "VendorOrderCode": "PSV0081381289",
      "ExceptionStatus": "resolved",
      "PartnerLicenseStatus": null
    }
  ]
}                    
<GetOrderStatusResponseServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models">
  <OrderStatus>
    <GetOrderStatusResponseServiceModelOrderStatus>
      <ExceptionStatus i:nil="true" />
      <Keycode>A66A24EF6B9640E19430</Keycode>
      <PartnerLicenseStatus>approved</PartnerLicenseStatus>
      <VendorOrderCode>PSV0056013561</VendorOrderCode>
    </GetOrderStatusResponseServiceModelOrderStatus>
    <GetOrderStatusResponseServiceModelOrderStatus>
      <ExceptionStatus>resolved</ExceptionStatus>
      <Keycode>A66A24EF6B9640E19430</Keycode>
      <PartnerLicenseStatus i:nil="true" />
      <VendorOrderCode>PSV0081381289</VendorOrderCode>
    </GetOrderStatusResponseServiceModelOrderStatus>
  </OrderStatus>
</GetOrderStatusResponseServiceModel>