POST api/VatManagement/AddCashback
Request Information
URI Parameters
None.
Body Parameters
CashBackModelName | 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. |
|
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-04-04T03:47:53.5583643+00:00", "endDate": "2025-04-04T03:47:53.5583643+00:00", "locationTypeId": 1, "locationId": 10, "BusinessId": 11, "LoginuserId": 12 }
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>11</BusinessId> <LoginuserId>12</LoginuserId> <cashback>5</cashback> <cashbackPerCustomer>7</cashbackPerCustomer> <cashbackTypeId>flatFee</cashbackTypeId> <description>sample string 6</description> <endDate>2025-04-04T03:47:53.5583643+00:00</endDate> <itemId>1</itemId> <locationId>10</locationId> <locationTypeId>branch</locationTypeId> <maxCashbackValueForRateType>3</maxCashbackValueForRateType> <maximumAmountToEarnThroughCashbackDuration>4</maximumAmountToEarnThroughCashbackDuration> <minimumSkuQty>2</minimumSkuQty> <startDate>2025-04-04T03:47:53.5583643+00:00</startDate> </CashBackModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponseName | 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/04/04 03:47:53", "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>