POST api/VatManagement/EditCashback

Request Information

URI Parameters

None.

Body Parameters

EditCashbackModel
NameDescriptionTypeAdditional information
cashbackIdInput

integer

None.

itemId

integer

None.

minimumSkuQty

integer

None.

maxCashbackValueForRateType

decimal number

None.

maximumAmountToEarnThroughCashbackDuration

decimal number

None.

cashbackTypeId

CashbackTypeId

None.

cashback

decimal number

None.

description

string

None.

cashbackPerCustomer

integer

None.

startDate

date

None.

endDate

date

None.

locationTypeId

LocationTypeId

None.

locationId

integer

None.

BusinessId

integer

None.

LoginuserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "cashbackIdInput": 1,
  "itemId": 2,
  "minimumSkuQty": 3,
  "maxCashbackValueForRateType": 4.0,
  "maximumAmountToEarnThroughCashbackDuration": 5.0,
  "cashbackTypeId": 1,
  "cashback": 6.0,
  "description": "sample string 7",
  "cashbackPerCustomer": 8,
  "startDate": "2025-04-04T04:07:39.2307678+00:00",
  "endDate": "2025-04-04T04:07:39.2307678+00:00",
  "locationTypeId": 1,
  "locationId": 11,
  "BusinessId": 12,
  "LoginuserId": 13
}

application/xml, text/xml

Sample:
<EditCashbackModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <BusinessId>12</BusinessId>
  <LoginuserId>13</LoginuserId>
  <cashback>6</cashback>
  <cashbackPerCustomer>8</cashbackPerCustomer>
  <cashbackTypeId>flatFee</cashbackTypeId>
  <description>sample string 7</description>
  <endDate>2025-04-04T04:07:39.2307678+00:00</endDate>
  <itemId>2</itemId>
  <locationId>11</locationId>
  <locationTypeId>branch</locationTypeId>
  <maxCashbackValueForRateType>4</maxCashbackValueForRateType>
  <maximumAmountToEarnThroughCashbackDuration>5</maximumAmountToEarnThroughCashbackDuration>
  <minimumSkuQty>3</minimumSkuQty>
  <startDate>2025-04-04T04:07:39.2307678+00:00</startDate>
  <cashbackIdInput>1</cashbackIdInput>
</EditCashbackModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional information
Version

string

None.

dateTime

string

None.

StatusCode

integer

None.

ErrorMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "1.0.0",
  "dateTime": "2025/04/04 04:07:39",
  "StatusCode": 1,
  "ErrorMessage": "sample string 2",
  "Result": {}
}

application/xml, text/xml

Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result />
  <StatusCode>1</StatusCode>
</VCAPIResponse>