POST api/V3/SkuSalesData/UploadSkuNorms
Upload Sku norms (Max 2000 records can be updated in one request)
Request Information
URI Parameters
None.
Body Parameters
Sku norms to be uploaded
Collection of V3.SkuNormsName | Description | Type | Additional information |
---|---|---|---|
ProductERPId |
SAP or ERP id of the product |
string |
Required String length: inclusive between 0 and 50 |
RetailerCode |
SAP or ERP id of the outlet/customer |
string |
Required String length: inclusive between 0 and 50 |
SuggestiveQuantity | decimal number |
None. |
|
ProductType | ProductType |
None. |
|
IsShortSupply | boolean |
None. |
|
MaximumOrderQuantity | decimal number |
None. |
|
MinimumOrderQuantity | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[ { "ProductERPId": "sample string 1", "RetailerCode": "sample string 2", "SuggestiveQuantity": 1.0, "ProductType": "Nothing", "IsShortSupply": true, "MaximumOrderQuantity": 1.0, "MinimumOrderQuantity": 1.0 }, { "ProductERPId": "sample string 1", "RetailerCode": "sample string 2", "SuggestiveQuantity": 1.0, "ProductType": "Nothing", "IsShortSupply": true, "MaximumOrderQuantity": 1.0, "MinimumOrderQuantity": 1.0 } ]
application/xml, text/xml
Sample:
<ArrayOfSkuNorms xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models"> <SkuNorms> <IsShortSupply>true</IsShortSupply> <MaximumOrderQuantity>1</MaximumOrderQuantity> <MinimumOrderQuantity>1</MinimumOrderQuantity> <ProductERPId>sample string 1</ProductERPId> <ProductType>Nothing</ProductType> <RetailerCode>sample string 2</RetailerCode> <SuggestiveQuantity>1</SuggestiveQuantity> </SkuNorms> <SkuNorms> <IsShortSupply>true</IsShortSupply> <MaximumOrderQuantity>1</MaximumOrderQuantity> <MinimumOrderQuantity>1</MinimumOrderQuantity> <ProductERPId>sample string 1</ProductERPId> <ProductType>Nothing</ProductType> <RetailerCode>sample string 2</RetailerCode> <SuggestiveQuantity>1</SuggestiveQuantity> </SkuNorms> </ArrayOfSkuNorms>
Response Information
Resource Description
ApiResponseName | Description | Type | Additional information |
---|---|---|---|
Message |
Message Indicating the Overall Response Summary of the Requested API |
string |
None. |
ResponseList |
List of Errors |
Collection of ApiResponseMessage |
None. |
Response |
Enum Indicating the Response status |
ResponseStatus |
None. |
ResponseStatusCount |
Summary containing Number of SuccessFull And Failed Tasks |
ResponseStatusCount |
None. |
Response Formats
application/json, text/json
Sample:
{ "Message": "sample string 1", "ResponseList": [ { "ERPId": "sample string 1", "Message": "sample string 2", "ResponseStatus": "Failure", "GUID": "sample string 3" }, { "ERPId": "sample string 1", "Message": "sample string 2", "ResponseStatus": "Failure", "GUID": "sample string 3" } ], "Response": "Failure", "ResponseStatusCount": { "Updated": 1, "Failed": 2, "Ignored": 3, "Name": "sample string 1", "Total": 6, "StatusMessage": "sample string 1: Total-6, Updated-1, Failed-2, Ignored-3", "ResponseStatus": "PartialSuccess" } }
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <Message>sample string 1</Message> <Response>Failure</Response> <ResponseList> <ApiResponseMessage> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage> <ApiResponseMessage> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage> </ResponseList> <ResponseStatusCount> <Failed>2</Failed> <Ignored>3</Ignored> <Name>sample string 1</Name> <Updated>1</Updated> </ResponseStatusCount> </ApiResponse>