POST api/Dealer/UpdatePromotionCode
Request Information
URI Parameters
None.
Body Parameters
PromotionCodeUpdateDtoName | 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. |
|
ID | globally unique identifier |
Required |
|
CompanyID | 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-08T21:05:09.6919085+03:00", "endDate": "2025-07-08T21:05:09.6919085+03:00", "promotionUsingType": 1, "discount": 6.1, "usingTime": 7, "dealerID": "09d3b9c3-5f2c-434c-80c1-4bf277ede460", "id": "231e6eef-d005-4710-ac7f-df110a7f1773", "companyID": "2d7ed5f8-d42d-4353-a6f9-b70c09c98854" }
application/xml, text/xml
Sample:
<PromotionCodeUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <CompanyID>2d7ed5f8-d42d-4353-a6f9-b70c09c98854</CompanyID> <ID>231e6eef-d005-4710-ac7f-df110a7f1773</ID> <Code>sample string 1</Code> <Comission>3</Comission> <DealerID>09d3b9c3-5f2c-434c-80c1-4bf277ede460</DealerID> <Discount>6.1</Discount> <EndDate>2025-07-08T21:05:09.6919085+03:00</EndDate> <Package>sample string 2</Package> <PromotionUsingType>UsingTime</PromotionUsingType> <StartDate>2025-07-08T21:05:09.6919085+03:00</StartDate> <UsingTime>7</UsingTime> </PromotionCodeUpdateDto>
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-08T21:05:09.6919085+03:00","endDate":"2025-07-08T21:05:09.6919085+03:00","promotionUsingType":1,"discount":6.1,"usingTime":7,"dealerID":"09d3b9c3-5f2c-434c-80c1-4bf277ede460","id":"231e6eef-d005-4710-ac7f-df110a7f1773","companyID":"2d7ed5f8-d42d-4353-a6f9-b70c09c98854"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.