POST api/v1/coupons/{promotionCode}/generate

Request Information

URI Parameters

NameDescriptionTypeAdditional information
promotionCode

string

Required

Body Parameters

GenerateCouponDto
NameDescriptionTypeAdditional information
OrganizationCode

string

None.

PromotionCode

string

None.

CustomerId

globally unique identifier

None.

Email

string

None.

ChannelCommunicationCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "organizationCode": "sample string 1",
  "promotionCode": "sample string 2",
  "customerId": "86e9f7ce-0b45-4cfc-bbc5-a83456b4cfd5",
  "email": "sample string 3",
  "channelCommunicationCode": "sample string 4"
}

application/xml, text/xml

Sample:
<GenerateCouponDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.Services.Dtos">
  <ChannelCommunicationCode>sample string 4</ChannelCommunicationCode>
  <CustomerId>86e9f7ce-0b45-4cfc-bbc5-a83456b4cfd5</CustomerId>
  <Email>sample string 3</Email>
  <OrganizationCode>sample string 1</OrganizationCode>
  <PromotionCode>sample string 2</PromotionCode>
</GenerateCouponDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.