POST api/V3/Incentives/UploadIncentiveGrowth

(Max 2000 records can be updated in one request)

Request Information

URI Parameters

None.

Body Parameters

Date, Outlet and Style for the Sale

Collection of V3.UploadIncentiveGrowth
NameDescriptionTypeAdditional information
EmployeeErpId

Erp id Of the Employeee

string

None.

Month

JC Month number i.e., 8

integer

None.

Year

JC Year i.e., 2019

integer

None.

BaseLine

Base Line

decimal number

None.

Growth

Growth

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "EmployeeErpId": "sample string 1",
    "Month": 2,
    "Year": 3,
    "BaseLine": 4.1,
    "Growth": 5.1
  },
  {
    "EmployeeErpId": "sample string 1",
    "Month": 2,
    "Year": 3,
    "BaseLine": 4.1,
    "Growth": 5.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfUploadIncentiveGrowth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
  <UploadIncentiveGrowth>
    <BaseLine>4.1</BaseLine>
    <EmployeeErpId>sample string 1</EmployeeErpId>
    <Growth>5.1</Growth>
    <Month>2</Month>
    <Year>3</Year>
  </UploadIncentiveGrowth>
  <UploadIncentiveGrowth>
    <BaseLine>4.1</BaseLine>
    <EmployeeErpId>sample string 1</EmployeeErpId>
    <Growth>5.1</Growth>
    <Month>2</Month>
    <Year>3</Year>
  </UploadIncentiveGrowth>
</ArrayOfUploadIncentiveGrowth>

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

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>