POST api/superadmin/promoCodes
add a new promocode for service, finishDate - iso
Request Information
URI Parameters
None.
Body Parameters
PromoCodeName | Description | Type | Additional information |
---|---|---|---|
name | string |
Required |
|
code | string |
Required |
|
finishDate | date |
None. |
|
discount | integer |
Required |
|
Type | PromocodeResourceType |
None. |
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "code": "sample string 2", "finishDate": "2025-04-04T00:29:53.519452+00:00", "discount": 4, "type": 0 }
application/xml, text/xml
Sample:
<PromoCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CraudWezom_v1.Models.Users"> <Type>TariffDiscount</Type> <code>sample string 2</code> <discount>4</discount> <finishDate>2025-04-04T00:29:53.519452+00:00</finishDate> <name>sample string 1</name> </PromoCode>
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.