POST api/StockistCoupons

Request Information

URI Parameters

None.

Body Parameters

StoreCouponsModels
NameDescriptionTypeAdditional information
SC_Id

integer

None.

SC_CouponCode

string

Required

Max length: 50

SC_Description

string

Required

Max length: 50

SC_ValidFrom

date

Required

SC_ValidTo

date

Required

SC_DiscountValue

decimal number

Required

SC_DiscountType

string

Required

Max length: 1

SC_MinimumCartAmount

decimal number

Required

SC_ReuseCount

integer

Required

SC_Status

string

Required

Max length: 50

SC_CreatedDate

date

None.

SC_UserId_FK

string

None.

SC_TS

string

None.

SC_Inactive

string

None.

SC_TS_LastEdited

string

None.

SC_TS_Edited_Uid_FK

string

None.

StockistList

Collection of StoreCouponsDetailsModels

Required

Request Formats

application/json, text/json

Sample:
{
  "SC_Id": 1,
  "SC_CouponCode": "sample string 2",
  "SC_Description": "sample string 3",
  "SC_ValidFrom": "2019-10-23T03:32:45.204018+05:30",
  "SC_ValidTo": "2019-10-23T03:32:45.204018+05:30",
  "SC_DiscountValue": 6.0,
  "SC_DiscountType": "sample string 7",
  "SC_MinimumCartAmount": 8.0,
  "SC_ReuseCount": 9,
  "SC_Status": "sample string 10",
  "SC_CreatedDate": "2019-10-23T03:32:45.204018+05:30",
  "SC_UserId_FK": "sample string 12",
  "SC_TS": "sample string 13",
  "SC_Inactive": "sample string 14",
  "SC_TS_LastEdited": "sample string 15",
  "SC_TS_Edited_Uid_FK": "sample string 16",
  "StockistList": [
    {
      "SCD_Id": 1,
      "SCD_SC_Id_FK": 2,
      "SK_Id": 3,
      "SK_Name": "sample string 4",
      "IsSelected": true
    },
    {
      "SCD_Id": 1,
      "SCD_SC_Id_FK": 2,
      "SK_Id": 3,
      "SK_Name": "sample string 4",
      "IsSelected": true
    }
  ]
}

application/xml, text/xml

Sample:
<StoreCouponsModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <SC_CouponCode>sample string 2</SC_CouponCode>
  <SC_CreatedDate>2019-10-23T03:32:45.204018+05:30</SC_CreatedDate>
  <SC_Description>sample string 3</SC_Description>
  <SC_DiscountType>sample string 7</SC_DiscountType>
  <SC_DiscountValue>6</SC_DiscountValue>
  <SC_Id>1</SC_Id>
  <SC_Inactive>sample string 14</SC_Inactive>
  <SC_MinimumCartAmount>8</SC_MinimumCartAmount>
  <SC_ReuseCount>9</SC_ReuseCount>
  <SC_Status>sample string 10</SC_Status>
  <SC_TS>sample string 13</SC_TS>
  <SC_TS_Edited_Uid_FK>sample string 16</SC_TS_Edited_Uid_FK>
  <SC_TS_LastEdited>sample string 15</SC_TS_LastEdited>
  <SC_UserId_FK>sample string 12</SC_UserId_FK>
  <SC_ValidFrom>2019-10-23T03:32:45.204018+05:30</SC_ValidFrom>
  <SC_ValidTo>2019-10-23T03:32:45.204018+05:30</SC_ValidTo>
  <StockistList>
    <StoreCouponsDetailsModels>
      <IsSelected>true</IsSelected>
      <SCD_Id>1</SCD_Id>
      <SCD_SC_Id_FK>2</SCD_SC_Id_FK>
      <SK_Id>3</SK_Id>
      <SK_Name>sample string 4</SK_Name>
    </StoreCouponsDetailsModels>
    <StoreCouponsDetailsModels>
      <IsSelected>true</IsSelected>
      <SCD_Id>1</SCD_Id>
      <SCD_SC_Id_FK>2</SCD_SC_Id_FK>
      <SK_Id>3</SK_Id>
      <SK_Name>sample string 4</SK_Name>
    </StoreCouponsDetailsModels>
  </StockistList>
</StoreCouponsModels>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StoreCouponsModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.