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-05-24T14:28:45.7884413+03:00", "endDate": "2025-05-24T14:28:45.7884413+03:00", "promotionUsingType": 1, "discount": 6.1, "usingTime": 7, "dealerID": "1edbe5a0-a899-4ab3-8510-33799492c240" }
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>1edbe5a0-a899-4ab3-8510-33799492c240</DealerID> <Discount>6.1</Discount> <EndDate>2025-05-24T14:28:45.7884413+03:00</EndDate> <Package>sample string 2</Package> <PromotionUsingType>UsingTime</PromotionUsingType> <StartDate>2025-05-24T14:28:45.7884413+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-05-24T14:28:45.7884413+03:00","endDate":"2025-05-24T14:28:45.7884413+03:00","promotionUsingType":1,"discount":6.1,"usingTime":7,"dealerID":"1edbe5a0-a899-4ab3-8510-33799492c240"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.