GET product?code={code}

This will return product details based on the code

Request Information

Parameters

NameDescriptionAdditional information
code
Accepts Code

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ProductCode": "sample string 3",
  "Price": 4.0,
  "RRP": 1.0,
  "VatRate": 5.0,
  "AvailableStock": 1,
  "NewProductCode": "sample string 6",
  "MatrixCode": "sample string 7",
  "DateAdded": "2017-11-23T21:58:11.7160047+00:00",
  "CostPrice": 8.1
}

application/xml, text/xml

Sample:
<ProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <AvailableStock>1</AvailableStock>
  <CostPrice>8.1</CostPrice>
  <DateAdded>2017-11-23T21:58:11.7160047+00:00</DateAdded>
  <Id>1</Id>
  <MatrixCode>sample string 7</MatrixCode>
  <Name>sample string 2</Name>
  <NewProductCode>sample string 6</NewProductCode>
  <Price>4</Price>
  <ProductCode>sample string 3</ProductCode>
  <RRP>1</RRP>
  <VatRate>5</VatRate>
</ProductModel>