POST api/V3/SkuSalesData/UploadCategoryProductTypes

Upload Category ProductTypes (Max 2000 records can be updated in one request)

Request Information

URI Parameters

None.

Body Parameters

Category ProductTypes to be uploaded

Collection of V3.CategoryProductTypes
NameDescriptionTypeAdditional information
Region

name of region

string

Required

String length: inclusive between 0 and 256

DisplayCategory

name of display category

string

Required

String length: inclusive between 0 and 128

ProductType

ProductType

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Region": "sample string 1",
    "DisplayCategory": "sample string 2",
    "ProductType": "Nothing"
  },
  {
    "Region": "sample string 1",
    "DisplayCategory": "sample string 2",
    "ProductType": "Nothing"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategoryProductTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models">
  <CategoryProductTypes>
    <DisplayCategory>sample string 2</DisplayCategory>
    <ProductType>Nothing</ProductType>
    <Region>sample string 1</Region>
  </CategoryProductTypes>
  <CategoryProductTypes>
    <DisplayCategory>sample string 2</DisplayCategory>
    <ProductType>Nothing</ProductType>
    <Region>sample string 1</Region>
  </CategoryProductTypes>
</ArrayOfCategoryProductTypes>

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional 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>