POST api/Setting/Set

Request Information

URI Parameters

None.

Body Parameters

SettingBindingModel
NameDescriptionTypeAdditional information
BusinessId

integer

Required

ValidDuration

decimal number

None.

IsEnabledCredit

boolean

None.

SourceKey

string

None.

Pin

string

None.

Host

string

None.

BusinessName

string

None.

IsReminder

boolean

None.

EnableDetailsOfTheMeal

boolean

None.

NumDaysToExpiryDate

integer

None.

LimitDoubleDeals

boolean

None.

EnableInformationOnTransactions

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "BusinessId": 1,
  "ValidDuration": 2.1,
  "IsEnabledCredit": true,
  "SourceKey": "sample string 4",
  "Pin": "sample string 5",
  "Host": "sample string 6",
  "BusinessName": "sample string 7",
  "IsReminder": true,
  "EnableDetailsOfTheMeal": true,
  "NumDaysToExpiryDate": 10,
  "LimitDoubleDeals": true,
  "EnableInformationOnTransactions": true
}

application/xml, text/xml

Sample:
<SettingBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin2._0.Models.BindingModel">
  <BusinessId>1</BusinessId>
  <BusinessName>sample string 7</BusinessName>
  <EnableDetailsOfTheMeal>true</EnableDetailsOfTheMeal>
  <EnableInformationOnTransactions>true</EnableInformationOnTransactions>
  <Host>sample string 6</Host>
  <IsEnabledCredit>true</IsEnabledCredit>
  <IsReminder>true</IsReminder>
  <LimitDoubleDeals>true</LimitDoubleDeals>
  <NumDaysToExpiryDate>10</NumDaysToExpiryDate>
  <Pin>sample string 5</Pin>
  <SourceKey>sample string 4</SourceKey>
  <ValidDuration>2.1</ValidDuration>
</SettingBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SettingViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

BusinessId

integer

None.

ValidDuration

decimal number

None.

IsEnabledCredit

boolean

None.

SourceKey

string

None.

Pin

string

None.

Host

string

None.

BusinessName

string

None.

IsReminder

boolean

None.

NumDaysToExpiryDate

integer

None.

LimitDoubleDeals

boolean

None.

EnableInformationOnTransactions

boolean

None.

Response Formats

application/json, text/json

Sample:

Sample not available.