POST api/Dealer/UpdatePromotionCode

Request Information

URI Parameters

None.

Body Parameters

PromotionCodeUpdateDto
NameDescriptionTypeAdditional 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-05-24T14:32:23.4973356+03:00",
  "endDate": "2025-05-24T14:32:23.4973356+03:00",
  "promotionUsingType": 1,
  "discount": 6.1,
  "usingTime": 7,
  "dealerID": "53e832d1-d43e-46e6-b2a6-b81ed0218cbf",
  "id": "7053666c-8c49-4799-9c7c-8d864705b265",
  "companyID": "b2e4064b-5b9a-4912-94fc-32a6a4e21431"
}

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>b2e4064b-5b9a-4912-94fc-32a6a4e21431</CompanyID>
  <ID>7053666c-8c49-4799-9c7c-8d864705b265</ID>
  <Code>sample string 1</Code>
  <Comission>3</Comission>
  <DealerID>53e832d1-d43e-46e6-b2a6-b81ed0218cbf</DealerID>
  <Discount>6.1</Discount>
  <EndDate>2025-05-24T14:32:23.4973356+03:00</EndDate>
  <Package>sample string 2</Package>
  <PromotionUsingType>UsingTime</PromotionUsingType>
  <StartDate>2025-05-24T14:32:23.4973356+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-05-24T14:32:23.4973356+03:00","endDate":"2025-05-24T14:32:23.4973356+03:00","promotionUsingType":1,"discount":6.1,"usingTime":7,"dealerID":"53e832d1-d43e-46e6-b2a6-b81ed0218cbf","id":"7053666c-8c49-4799-9c7c-8d864705b265","companyID":"b2e4064b-5b9a-4912-94fc-32a6a4e21431"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.