POST api/VatManagement/AddCashback
Request Information
URI Parameters
None.
Body Parameters
CashBackModel| Name | Description | Type | Additional information |
|---|---|---|---|
| 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. |
|
| minimumOrderValue | integer |
None. |
|
| brandId | integer |
None. |
|
| cashbackWiseType | CashbackWiseType |
None. |
|
| BusinessId | integer |
None. |
|
| LoginuserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"itemId": 1,
"minimumSkuQty": 2,
"maxCashbackValueForRateType": 3.0,
"maximumAmountToEarnThroughCashbackDuration": 4.0,
"cashbackTypeId": 1,
"cashback": 5.0,
"description": "sample string 6",
"cashbackPerCustomer": 7,
"startDate": "2025-12-25T09:12:04.0128309+00:00",
"endDate": "2025-12-25T09:12:04.0128309+00:00",
"locationTypeId": 1,
"locationId": 10,
"minimumOrderValue": 11,
"brandId": 12,
"cashbackWiseType": 0,
"BusinessId": 13,
"LoginuserId": 14
}
application/xml, text/xml
Sample:
<CashBackModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <BusinessId>13</BusinessId> <LoginuserId>14</LoginuserId> <brandId>12</brandId> <cashback>5</cashback> <cashbackPerCustomer>7</cashbackPerCustomer> <cashbackTypeId>flatFee</cashbackTypeId> <cashbackWiseType>None</cashbackWiseType> <description>sample string 6</description> <endDate>2025-12-25T09:12:04.0128309+00:00</endDate> <itemId>1</itemId> <locationId>10</locationId> <locationTypeId>branch</locationTypeId> <maxCashbackValueForRateType>3</maxCashbackValueForRateType> <maximumAmountToEarnThroughCashbackDuration>4</maximumAmountToEarnThroughCashbackDuration> <minimumOrderValue>11</minimumOrderValue> <minimumSkuQty>2</minimumSkuQty> <startDate>2025-12-25T09:12:04.0128309+00:00</startDate> </CashBackModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponse| Name | Description | Type | Additional 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/12/25 09:12:04",
"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>