POST api/Materials/Search

Request Information

URI Parameters

None.

Body Parameters

MSearch
NameDescriptionTypeAdditional information
name

string

None.

brand

string

None.

family

string

None.

subfamily

string

None.

CustomerID

string

None.

MaterialID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "brand": "sample string 2",
  "family": "sample string 3",
  "subfamily": "sample string 4",
  "CustomerID": "sample string 5",
  "MaterialID": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MSearch'.

Response Information

Resource Description

DataResultOfListOfMResult
NameDescriptionTypeAdditional information
Value

RetVal

None.

Message

string

None.

Data

Collection of MResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 0,
  "Message": "sample string 1",
  "Data": [
    {
      "MaterialID": "sample string 1",
      "Description": "sample string 2",
      "Family": "sample string 3",
      "SubFamily": "sample string 4",
      "Brand": "sample string 5",
      "DisplayUPC": "sample string 6",
      "GTIN": "sample string 7",
      "ShelfLife": "sample string 8",
      "CodeDating": "sample string 9",
      "RefrigerationText": "sample string 10",
      "Establishment": "sample string 11",
      "Characteristics": "sample string 12",
      "Allergens": "sample string 13",
      "UMConversions": "sample string 14",
      "Package": "sample string 15",
      "Case": "sample string 16",
      "CaseWeightType": "sample string 17",
      "CaseWt": "sample string 18",
      "ShippingWt": "sample string 19",
      "Pallet": "sample string 20",
      "SellingRestriction": "sample string 21",
      "CaseUPC": "sample string 22",
      "ImageUrl": "sample string 23",
      "NutritionFactsUrl": "sample string 24",
      "Price": 25.0,
      "PriceUnit": "sample string 26",
      "Per": "sample string 27",
      "SellingUnit": "sample string 28"
    },
    {
      "MaterialID": "sample string 1",
      "Description": "sample string 2",
      "Family": "sample string 3",
      "SubFamily": "sample string 4",
      "Brand": "sample string 5",
      "DisplayUPC": "sample string 6",
      "GTIN": "sample string 7",
      "ShelfLife": "sample string 8",
      "CodeDating": "sample string 9",
      "RefrigerationText": "sample string 10",
      "Establishment": "sample string 11",
      "Characteristics": "sample string 12",
      "Allergens": "sample string 13",
      "UMConversions": "sample string 14",
      "Package": "sample string 15",
      "Case": "sample string 16",
      "CaseWeightType": "sample string 17",
      "CaseWt": "sample string 18",
      "ShippingWt": "sample string 19",
      "Pallet": "sample string 20",
      "SellingRestriction": "sample string 21",
      "CaseUPC": "sample string 22",
      "ImageUrl": "sample string 23",
      "NutritionFactsUrl": "sample string 24",
      "Price": 25.0,
      "PriceUnit": "sample string 26",
      "Per": "sample string 27",
      "SellingUnit": "sample string 28"
    }
  ]
}