POST api/General/OfferManage/AddOfferInitialDetails
Request Information
URI Parameters
None.
Body Parameters
OfferInitialDetailsAddEdit| Name | Description | Type | Additional information |
|---|---|---|---|
| OfferID | integer |
None. |
|
| OfferName | string |
Required String length: inclusive between 0 and 200 |
|
| OfferType | OfferTypeEnum |
Required |
|
| IsCashbackType | boolean |
None. |
|
| IsRedeemableToWallet | boolean |
None. |
|
| IsBuyNGetM | boolean |
None. |
|
| OfferOn | OfferOnEnum |
Required |
|
| OfferValueType | OfferValueTypeEnum |
Required |
|
| IsOfferValueDerived | boolean |
None. |
|
| PercentageOfferValue | decimal number |
None. |
|
| FlatOfferValue | decimal number |
None. |
|
| UpToDiscountAmount | decimal number |
None. |
|
| ValidityStartDate | date |
None. |
|
| ValidityEndDate | date |
None. |
|
| RequiresCouponCode | boolean |
None. |
|
| CanCombineWithOtherCoupon | boolean |
None. |
|
| IsActive | boolean |
None. |
|
| TermsAndConditions | string |
None. |
|
| AddedByBusinessID | string |
String length: inclusive between 0 and 10 |
|
| BuyProductID | integer |
None. |
|
| BuyProductCount | integer |
None. |
|
| GetProductID | integer |
None. |
|
| GetProductCount | integer |
None. |
|
| ApplicableFor | ApplicableForEnum |
Required |
|
| OfferAvailabilityType | OfferAvailabilityTypeEnum |
Required |
|
| IsAutoApplicable | boolean |
None. |
|
| UserID | string |
Required String length: inclusive between 0 and 450 |
|
| TransDate | date |
Required |
|
| IPAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OfferID": 1,
"OfferName": "sample string 1",
"OfferType": 0,
"IsCashbackType": true,
"IsRedeemableToWallet": true,
"IsBuyNGetM": true,
"OfferOn": 0,
"OfferValueType": 0,
"IsOfferValueDerived": true,
"PercentageOfferValue": 1.1,
"FlatOfferValue": 1.0,
"UpToDiscountAmount": 1.0,
"ValidityStartDate": "2025-12-07T10:00:07.7762692+05:30",
"ValidityEndDate": "2025-12-07T10:00:07.7762692+05:30",
"RequiresCouponCode": true,
"CanCombineWithOtherCoupon": true,
"IsActive": true,
"TermsAndConditions": "sample string 9",
"AddedByBusinessID": "sample string 10",
"BuyProductID": 1,
"BuyProductCount": 1,
"GetProductID": 1,
"GetProductCount": 1,
"ApplicableFor": 0,
"OfferAvailabilityType": 0,
"IsAutoApplicable": true,
"UserID": "sample string 12",
"TransDate": "2025-12-07T10:00:07.7762692+05:30",
"IPAddress": "sample string 14"
}
application/xml, text/xml
Sample:
<OfferInitialDetailsAddEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/General.Operations.CustomModels"> <AddedByBusinessID>sample string 10</AddedByBusinessID> <ApplicableFor>SelfPickup</ApplicableFor> <BuyProductCount>1</BuyProductCount> <BuyProductID>1</BuyProductID> <CanCombineWithOtherCoupon>true</CanCombineWithOtherCoupon> <FlatOfferValue>1</FlatOfferValue> <GetProductCount>1</GetProductCount> <GetProductID>1</GetProductID> <IPAddress>sample string 14</IPAddress> <IsActive>true</IsActive> <IsAutoApplicable>true</IsAutoApplicable> <IsBuyNGetM>true</IsBuyNGetM> <IsCashbackType>true</IsCashbackType> <IsOfferValueDerived>true</IsOfferValueDerived> <IsRedeemableToWallet>true</IsRedeemableToWallet> <OfferAvailabilityType>AnyTime</OfferAvailabilityType> <OfferID>1</OfferID> <OfferName>sample string 1</OfferName> <OfferOn>SubTotal</OfferOn> <OfferType>Coupon</OfferType> <OfferValueType>Percentage</OfferValueType> <PercentageOfferValue>1.1</PercentageOfferValue> <RequiresCouponCode>true</RequiresCouponCode> <TermsAndConditions>sample string 9</TermsAndConditions> <TransDate>2025-12-07T10:00:07.7762692+05:30</TransDate> <UpToDiscountAmount>1</UpToDiscountAmount> <UserID>sample string 12</UserID> <ValidityEndDate>2025-12-07T10:00:07.7762692+05:30</ValidityEndDate> <ValidityStartDate>2025-12-07T10:00:07.7762692+05:30</ValidityStartDate> </OfferInitialDetailsAddEdit>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>