ManufacturerSearch API Reference

Documentation:

The ManufacturerSearch method(s) will return manufacturers that relate to the parameters passed. You choose one parameter or the other to pass into the services. You can access this method either through SOAP Services or the REST API.

SOAP Method: ManufacturerSearch

REST Request: POST api/manufacturer/search

Properties

DataType: ManufacturerSearchRequest

NameDescriptionTypeAdditional information
StartsWith

string

None.

Contains

string

None.

DataType: ManufacturerSearchResponse
Parameters:
NameDescriptionTypeAdditional information
Results

Collection of NamedIdentity

None.

Request Samples

application/json, text/json

Sample:
{
  "startsWith": "sample string 1",
  "contains": "sample string 2"
}

application/xml, text/xml

Sample:
<ManufacturerSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PartsSource.Api.Model">
  <Contains>sample string 2</Contains>
  <StartsWith>sample string 1</StartsWith>
</ManufacturerSearchRequest>

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 'ManufacturerSearchRequest'.

Response Samples

application/json, text/json

Sample:
{
  "results": [
    {
      "id": 1,
      "name": "sample string 2"
    },
    {
      "id": 1,
      "name": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ManufacturerSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PartsSource.Api.Model">
  <Results>
    <NamedIdentity>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </NamedIdentity>
    <NamedIdentity>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </NamedIdentity>
  </Results>
</ManufacturerSearchResponse>