Needio.Services

<back to all web services

GetSmCategoryDetailRequest

The following routes are available for this service:
All Verbs/Sm/GetSmCategoryDetail/
GetSmCategoryDetailRequest Parameters:
NameParameterData TypeRequiredDescription
CodequerystringNo
CTypequerySmCategoryTypeNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
GetSmCategoryDetailResponse Parameters:
NameParameterData TypeRequiredDescription
CategoryformSmCategoryMetaDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
SmCategoryMetaDTO Parameters:
NameParameterData TypeRequiredDescription
CTypeformSmCategoryTypeNo
SearchYnformboolNo
OrderformintNo
NTypeformSmCategoryTypeNo
FriendlyURLformstringNo
SelectedformboolNo
SubCatsformList<SmCategoryMetaDTO>No
CountformintNo
SmCategoryInfoDTO Parameters:
NameParameterData TypeRequiredDescription
CategoryIdformintNo
NameformstringNo
CodeformstringNo
PIdformshort?No
ActiveYnformboolNo
SmCategoryType Enum:
NameValue
None0
PostType1
StoreCategory2
PostCategory3
Department11
Brand21
Model23
GetSmCategoryDetailResponse Parameters:
NameParameterData TypeRequiredDescription
CategoryformSmCategoryMetaDTONo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Sm/GetSmCategoryDetail/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetSmCategoryDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <CType>None</CType>
  <Code>String</Code>
</GetSmCategoryDetailRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSmCategoryDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <Error>
    <ErrorCode>String</ErrorCode>
    <ErrorDescription>String</ErrorDescription>
    <ErrorYn>false</ErrorYn>
  </Error>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <Category xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.Models">
    <d2p1:ActiveYn>false</d2p1:ActiveYn>
    <d2p1:CategoryId>0</d2p1:CategoryId>
    <d2p1:Code>String</d2p1:Code>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:PId>0</d2p1:PId>
    <d2p1:CType>None</d2p1:CType>
    <d2p1:Count>0</d2p1:Count>
    <d2p1:FriendlyURL>String</d2p1:FriendlyURL>
    <d2p1:NType>None</d2p1:NType>
    <d2p1:Order>0</d2p1:Order>
    <d2p1:SearchYn>false</d2p1:SearchYn>
    <d2p1:Selected>false</d2p1:Selected>
    <d2p1:SubCats>
      <d2p1:SmCategoryMetaDTO>
        <d2p1:ActiveYn>false</d2p1:ActiveYn>
        <d2p1:CategoryId>0</d2p1:CategoryId>
        <d2p1:Code>String</d2p1:Code>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:PId>0</d2p1:PId>
        <d2p1:CType>None</d2p1:CType>
        <d2p1:Count>0</d2p1:Count>
        <d2p1:FriendlyURL>String</d2p1:FriendlyURL>
        <d2p1:NType>None</d2p1:NType>
        <d2p1:Order>0</d2p1:Order>
        <d2p1:SearchYn>false</d2p1:SearchYn>
        <d2p1:Selected>false</d2p1:Selected>
        <d2p1:SubCats>
          <d2p1:SmCategoryMetaDTO>
            <d2p1:ActiveYn>false</d2p1:ActiveYn>
            <d2p1:CategoryId>0</d2p1:CategoryId>
            <d2p1:Code>String</d2p1:Code>
            <d2p1:Name>String</d2p1:Name>
            <d2p1:PId>0</d2p1:PId>
            <d2p1:CType>None</d2p1:CType>
            <d2p1:Count>0</d2p1:Count>
            <d2p1:FriendlyURL>String</d2p1:FriendlyURL>
            <d2p1:NType>None</d2p1:NType>
            <d2p1:Order>0</d2p1:Order>
            <d2p1:SearchYn>false</d2p1:SearchYn>
            <d2p1:Selected>false</d2p1:Selected>
            <d2p1:SubCats>
              <d2p1:SmCategoryMetaDTO i:nil="true" />
            </d2p1:SubCats>
          </d2p1:SmCategoryMetaDTO>
        </d2p1:SubCats>
      </d2p1:SmCategoryMetaDTO>
    </d2p1:SubCats>
  </Category>
</GetSmCategoryDetailResponse>