POST api/store-portal/offers

Request Information

URI Parameters

None.

Body Parameters

StoreOfferCreateRequest
NameDescriptionTypeAdditional information
SectionId

integer

None.

Title

string

None.

ImageUrl

string

None.

Description

string

None.

DiscountType

string

None.

DiscountValue

decimal number

None.

StartAtUtc

string

None.

EndAtUtc

string

None.

Request Formats

application/json, text/json

Sample:
{
  "sectionId": 1,
  "title": "sample string 2",
  "imageUrl": "sample string 3",
  "description": "sample string 4",
  "discountType": "sample string 5",
  "discountValue": 6.0,
  "startAtUtc": "sample string 7",
  "endAtUtc": "sample string 8"
}

application/xml, text/xml

Sample:
<StoreOfferCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.StorePortal">
  <Description>sample string 4</Description>
  <DiscountType>sample string 5</DiscountType>
  <DiscountValue>6</DiscountValue>
  <EndAtUtc>sample string 8</EndAtUtc>
  <ImageUrl>sample string 3</ImageUrl>
  <SectionId>1</SectionId>
  <StartAtUtc>sample string 7</StartAtUtc>
  <Title>sample string 2</Title>
</StoreOfferCreateRequest>

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 'StoreOfferCreateRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.