GET api/Product/GetParentCategories?providerID={providerID}&SCCategoryID={SCCategoryID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| providerID | integer |
Required |
|
| SCCategoryID | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CategoryParentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SCCategoryID | integer |
None. |
|
| ParentSCCategoryIDs | string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[
{
"SCCategoryID": 1,
"ParentSCCategoryIDs": "sample string 2"
},
{
"SCCategoryID": 1,
"ParentSCCategoryIDs": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfCategoryParentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.Products">
<CategoryParentViewModel>
<ParentSCCategoryIDs>sample string 2</ParentSCCategoryIDs>
<SCCategoryID>1</SCCategoryID>
</CategoryParentViewModel>
<CategoryParentViewModel>
<ParentSCCategoryIDs>sample string 2</ParentSCCategoryIDs>
<SCCategoryID>1</SCCategoryID>
</CategoryParentViewModel>
</ArrayOfCategoryParentViewModel>