POST api/V3/Category/Create
Creates a new category
Request Information
URI Parameters
None.
Body Parameters
Provide Brand and Category
V3.CategoryModelName | Description | Type | Additional information |
---|---|---|---|
ProductDivision |
Product Division |
string |
None. |
Brand |
Brand Name or the Primary Category |
string |
None. |
Category |
Category or Secondary Category or SKU Group Name |
string |
None. |
StandardUnit |
Standard unit of category |
string |
None. |
SuperUnit |
Super unit of category |
string |
None. |
DivisionId |
DivisionId |
integer |
None. |
ProductDivisionErpId |
ErpId |
string |
None. |
BrandErpId |
Brand Name or the Primary Category ErpId |
string |
None. |
CategoryErpId |
Category or Secondary Category or SKU Group Name ErpId |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProductDivision": "sample string 1", "Brand": "sample string 2", "Category": "sample string 3", "StandardUnit": "sample string 4", "SuperUnit": "sample string 5", "DivisionId": 6, "ProductDivisionErpId": "sample string 7", "BrandErpId": "sample string 8", "CategoryErpId": "sample string 9" }
application/xml, text/xml
Sample:
<CategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models"> <Brand>sample string 2</Brand> <BrandErpId>sample string 8</BrandErpId> <Category>sample string 3</Category> <CategoryErpId>sample string 9</CategoryErpId> <DivisionId>6</DivisionId> <ProductDivision>sample string 1</ProductDivision> <ProductDivisionErpId>sample string 7</ProductDivisionErpId> <StandardUnit>sample string 4</StandardUnit> <SuperUnit>sample string 5</SuperUnit> </CategoryModel>
Response Information
Resource Description
Response object as shown or the Error message
ApiResponseMessageName | Description | Type | Additional information |
---|---|---|---|
ERPId |
ERPID of the Requested insertion/updation |
string |
None. |
Message |
Error Message for the indicated ERPID |
string |
None. |
ResponseStatus |
Status of the action requested from Api |
ResponseStatus |
None. |
GUID |
GUID of the database Entry with respect to the ERP Id Provided |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ERPId": "sample string 1", "Message": "sample string 2", "ResponseStatus": "Failure", "GUID": "sample string 3" }
application/xml, text/xml
Sample:
<ApiResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage>