POST api/General/OfferManage/AddOfferRequirementDetails
Request Information
URI Parameters
None.
Body Parameters
OfferRequirementDetailsAddEdit| Name | Description | Type | Additional information |
|---|---|---|---|
| OfferID | integer |
Required |
|
| ApplicabilityTime | utblOfferApplicabilityTime |
None. |
|
| Budget | utblOfferBudget |
None. |
|
| MinRequirements | Collection of utblOfferMinAmountRequirement |
None. |
|
| SpendRquirement | utblOfferSpendRequirement |
None. |
|
| UserID | string |
String length: inclusive between 0 and 450 |
|
| IPAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OfferID": 1,
"ApplicabilityTime": {
"RecordID": 1,
"OfferID": 2,
"LimitType": 0,
"TimesLimit": 1,
"PerType": 0
},
"Budget": {
"RecordID": 1,
"OfferID": 2,
"LimitType": 0,
"AmountLimit": 1.0,
"PerType": 0
},
"MinRequirements": [
{
"RecordID": 1,
"OfferID": 2,
"OfferOn": 0,
"MinAmount": 3.0
},
{
"RecordID": 1,
"OfferID": 2,
"OfferOn": 0,
"MinAmount": 3.0
}
],
"SpendRquirement": {
"RecordID": 1,
"OfferID": 2,
"SpendAmount": 3.0,
"PerType": 0
},
"UserID": "sample string 2",
"IPAddress": "sample string 3"
}
application/xml, text/xml
Sample:
<OfferRequirementDetailsAddEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/General.Operations.CustomModels">
<ApplicabilityTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/General.Operations.Models">
<d2p1:LimitType>NoLimit</d2p1:LimitType>
<d2p1:OfferID>2</d2p1:OfferID>
<d2p1:PerType>Day</d2p1:PerType>
<d2p1:RecordID>1</d2p1:RecordID>
<d2p1:TimesLimit>1</d2p1:TimesLimit>
</ApplicabilityTime>
<Budget xmlns:d2p1="http://schemas.datacontract.org/2004/07/General.Operations.Models">
<d2p1:AmountLimit>1</d2p1:AmountLimit>
<d2p1:LimitType>NoLimit</d2p1:LimitType>
<d2p1:OfferID>2</d2p1:OfferID>
<d2p1:PerType>Day</d2p1:PerType>
<d2p1:RecordID>1</d2p1:RecordID>
</Budget>
<IPAddress>sample string 3</IPAddress>
<MinRequirements xmlns:d2p1="http://schemas.datacontract.org/2004/07/General.Operations.Models">
<d2p1:utblOfferMinAmountRequirement>
<d2p1:MinAmount>3</d2p1:MinAmount>
<d2p1:OfferID>2</d2p1:OfferID>
<d2p1:OfferOn>SubTotal</d2p1:OfferOn>
<d2p1:RecordID>1</d2p1:RecordID>
</d2p1:utblOfferMinAmountRequirement>
<d2p1:utblOfferMinAmountRequirement>
<d2p1:MinAmount>3</d2p1:MinAmount>
<d2p1:OfferID>2</d2p1:OfferID>
<d2p1:OfferOn>SubTotal</d2p1:OfferOn>
<d2p1:RecordID>1</d2p1:RecordID>
</d2p1:utblOfferMinAmountRequirement>
</MinRequirements>
<OfferID>1</OfferID>
<SpendRquirement xmlns:d2p1="http://schemas.datacontract.org/2004/07/General.Operations.Models">
<d2p1:OfferID>2</d2p1:OfferID>
<d2p1:PerType>Day</d2p1:PerType>
<d2p1:RecordID>1</d2p1:RecordID>
<d2p1:SpendAmount>3</d2p1:SpendAmount>
</SpendRquirement>
<UserID>sample string 2</UserID>
</OfferRequirementDetailsAddEdit>
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>