POST api/Dealer/AddPromotionCode
Request Information
URI Parameters
None.
Body Parameters
PromotionCodeAddDtoName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
Package | string |
None. |
|
Comission | decimal number |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
PromotionUsingType | PromotionUsingType |
None. |
|
Discount | decimal number |
None. |
|
UsingTime | integer |
None. |
|
DealerID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "package": "sample string 2", "comission": 3.0, "startDate": "2025-07-08T20:59:38.2568604+03:00", "endDate": "2025-07-08T20:59:38.2568604+03:00", "promotionUsingType": 1, "discount": 6.1, "usingTime": 7, "dealerID": "a8919cb2-4895-470f-a711-6235e38de54b" }
application/xml, text/xml
Sample:
<PromotionCodeAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <Code>sample string 1</Code> <Comission>3</Comission> <DealerID>a8919cb2-4895-470f-a711-6235e38de54b</DealerID> <Discount>6.1</Discount> <EndDate>2025-07-08T20:59:38.2568604+03:00</EndDate> <Package>sample string 2</Package> <PromotionUsingType>UsingTime</PromotionUsingType> <StartDate>2025-07-08T20:59:38.2568604+03:00</StartDate> <UsingTime>7</UsingTime> </PromotionCodeAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","package":"sample string 2","comission":3.0,"startDate":"2025-07-08T20:59:38.2568604+03:00","endDate":"2025-07-08T20:59:38.2568604+03:00","promotionUsingType":1,"discount":6.1,"usingTime":7,"dealerID":"a8919cb2-4895-470f-a711-6235e38de54b"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.