GET api/{context}/inventory/ID/{text}

Retrieve a product by its ID (SKU)

Request Information

ParameterDescriptionAdditional information
text
The SKU of the product

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "ProductCategory": "sample string 2",
  "BinLocation": "sample string 3",
  "WarehouseID": "sample string 4",
  "SKU": "sample string 5",
  "Name": "sample string 6",
  "Summary": "sample string 7",
  "FullDescription": "sample string 8",
  "Author": "sample string 9",
  "ForSale": true,
  "Taxable": true,
  "Weight": 1.0,
  "FMV": 1.0,
  "Price": 1.0,
  "MaxStock": 1,
  "ReorderLevel": 1,
  "LeadTime": 1,
  "Notes": "sample string 10",
  "Active": true,
  "OnDemand": true,
  "AllowBackorder": true,
  "ServiceOnly": true,
  "DefaultFund": "sample string 11",
  "IsTicket": true,
  "UPC": "sample string 12",
  "ForSaleOnWeb": true,
  "WebAvailableStart": "2024-10-06T08:09:52.412415-06:00",
  "WebAvailableEnd": "2024-10-06T08:09:52.412415-06:00",
  "WebPrice": 1.0,
  "WebMaxQuantity": 1,
  "WebFreeWithDonation": true,
  "WebMinimumDonation": 1.0,
  "WebDonationFund": "sample string 14",
  "Enclosure": true,
  "Featured": true,
  "MaxQuantity": 1,
  "AllowDiscount": true,
  "Version": 1,
  "IgnoreVersion": true,
  "AvailableQty": "sample string 16",
  "Attributes": [
    {
      "Name": "sample string 1",
      "DisplayOrder": 2,
      "DataType": "sample string 3",
      "Required": true
    },
    {
      "Name": "sample string 1",
      "DisplayOrder": 2,
      "DataType": "sample string 3",
      "Required": true
    },
    {
      "Name": "sample string 1",
      "DisplayOrder": 2,
      "DataType": "sample string 3",
      "Required": true
    }
  ]
}

application/xml, text/xml

Sample:
<InventoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDS.Web.WebApi.Models">
  <Active>true</Active>
  <AllowBackorder>true</AllowBackorder>
  <AllowDiscount>true</AllowDiscount>
  <Attributes>
    <InventoryModel.ProductAttribute>
      <DataType>sample string 3</DataType>
      <DisplayOrder>2</DisplayOrder>
      <Name>sample string 1</Name>
      <PickListID>e0a58660-55d9-42f4-9a66-9b717a5cb8c2</PickListID>
      <Required>true</Required>
    </InventoryModel.ProductAttribute>
    <InventoryModel.ProductAttribute>
      <DataType>sample string 3</DataType>
      <DisplayOrder>2</DisplayOrder>
      <Name>sample string 1</Name>
      <PickListID>e0a58660-55d9-42f4-9a66-9b717a5cb8c2</PickListID>
      <Required>true</Required>
    </InventoryModel.ProductAttribute>
    <InventoryModel.ProductAttribute>
      <DataType>sample string 3</DataType>
      <DisplayOrder>2</DisplayOrder>
      <Name>sample string 1</Name>
      <PickListID>e0a58660-55d9-42f4-9a66-9b717a5cb8c2</PickListID>
      <Required>true</Required>
    </InventoryModel.ProductAttribute>
  </Attributes>
  <Author>sample string 9</Author>
  <AvailableQty>sample string 16</AvailableQty>
  <BinLocation>sample string 3</BinLocation>
  <DefaultFund>sample string 11</DefaultFund>
  <DefaultFundID>821845f6-d0b6-4a66-ac7a-668468865df5</DefaultFundID>
  <Enclosure>true</Enclosure>
  <FMV>1</FMV>
  <Featured>true</Featured>
  <ForSale>true</ForSale>
  <ForSaleOnWeb>true</ForSaleOnWeb>
  <FullDescription>sample string 8</FullDescription>
  <ID>6cb1554f-5140-4690-ac52-30e81162a668</ID>
  <IgnoreVersion>true</IgnoreVersion>
  <IsTicket>true</IsTicket>
  <LeadTime>1</LeadTime>
  <MaxQuantity>1</MaxQuantity>
  <MaxStock>1</MaxStock>
  <Name>sample string 6</Name>
  <Notes>sample string 10</Notes>
  <OnDemand>true</OnDemand>
  <Price>1</Price>
  <ProductCategory>sample string 2</ProductCategory>
  <ProductCategoryID>d4ff465c-8f5f-4555-86ca-e63d10acb767</ProductCategoryID>
  <ReorderLevel>1</ReorderLevel>
  <SKU>sample string 5</SKU>
  <ServiceOnly>true</ServiceOnly>
  <Summary>sample string 7</Summary>
  <Taxable>true</Taxable>
  <UPC>sample string 12</UPC>
  <Version>1</Version>
  <WarehouseID>sample string 4</WarehouseID>
  <WebAvailableEnd>2024-10-06T08:09:52.412415-06:00</WebAvailableEnd>
  <WebAvailableStart>2024-10-06T08:09:52.412415-06:00</WebAvailableStart>
  <WebDonationFund>sample string 14</WebDonationFund>
  <WebDonationFundID>1f4eae12-6fdb-418a-a979-8ad7fcc3672e</WebDonationFundID>
  <WebFreeWithDonation>true</WebFreeWithDonation>
  <WebMaxQuantity>1</WebMaxQuantity>
  <WebMinimumDonation>1</WebMinimumDonation>
  <WebPrice>1</WebPrice>
  <Weight>1</Weight>
</InventoryModel>