Get Models By Category

GetModelsByCategory Input

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetItemDetailByCategoryNameCYA xmlns="http://www.cpscorporation.com/services/">
      <CYAModelCategoryListRequestType>
        <Authentication>
          <DealerID>int</DealerID>
          <DealerKey>string</DealerKey>
        </Authentication>
        <Category>string</Category>
      </CYAModelCategoryListRequestType>
    </GetItemDetailByCategoryNameCYA>
  </soap:Body>
</soap:Envelope>


Argument Required Type Details
Authentication yes AuthenticationType
Authentication.DealerID yes Int Your dealer number
Authentication.DealerKey yes String Your dealer key
Category yes String Category Name for the List Search


GetModelsByCategory Output

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetItemDetailByCategoryNameCYAResponse xmlns="http://www.cpscorporation.com/services/">
      <CYAModelCategoryListResponseType>
        <Errors>
          <ErrorID>int</ErrorID>
          <ErrorMessage>string</ErrorMessage>
        </Errors>
        <ModelType>
          <ID>int</ID>
          <Name>string</Name>
          <Manufacturer>string</Manufacturer>
          <CategoryName>string</CategoryName>
          <MinPrice>decimal</MinPrice>
          <MaxPrice>decimal</MaxPrice>
        </ModelType>
        <Ack>String</Ack>
      </CYAModelCategoryListResponseType>
    </GetItemDetailByCategoryNameCYAResponse>
  </soap:Body>
</soap:Envelope>


Argument Type Details
Errors ErrorsType
Errors.ErrorID Int Error Number
Errors.ErrorMessage String Detailed error message
ModelList ModelType
ModelList.ID Int Model ID
ModelList.Name String Model Name
ModelList.Manufacturer String Model Manufacturer
ModelList.CategoryName String Model Category Name
ModelList.MinPrice Decimal Model Min Price
ModelList.MaxPrice Decimal Model Max Price
Ack String Return API success or error.

C#.NET Sample

Create a Web Reference named "cpsapi" with URL https://www.consumerpriorityservice.com/services/cya_api.asmx

CYAModelCategoryListRequestType request = new CYAModelCategoryListRequestType();
request.Authentication = new ApiAuthenticationType() { ApiKey = "Your Key", DealerId = YourID, SubAccountId = 0 };
request.Category = "Smartphone";
cya_api api = new cya_api();
CYAModelCategoryListResponseType response = api.GetItemDetailByCategoryNameCYA(request);