POST api/v1/coupons/{promotionCode}/generate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| promotionCode | string |
Required |
Body Parameters
GenerateCouponDto| Name | Description | Type | Additional information |
|---|---|---|---|
| OrganizationCode | string |
None. |
|
| PromotionCode | string |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| string |
None. |
||
| ChannelCommunicationCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"organizationCode": "sample string 1",
"promotionCode": "sample string 2",
"customerId": "030f91cf-8fef-4e79-ba49-8f983bb0acbc",
"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>030f91cf-8fef-4e79-ba49-8f983bb0acbc</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
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.