POST api/promotionCode/AddPromotionCode_Upsert
Request Information
URI Parameters
None.
Body Parameters
PromotionCodeName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
PromotionCode | string |
None. |
|
PromotionName | string |
None. |
|
InflationName | string |
None. |
|
StartDate | string |
None. |
|
EndDate | string |
None. |
|
SalonId | integer |
None. |
|
UsedCount | integer |
None. |
|
Discount | string |
None. |
|
Status | integer |
None. |
|
CreatedDate | date |
None. |
|
CreatedDateStr | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "PromotionCode": "sample string 2", "PromotionName": "sample string 3", "InflationName": "sample string 4", "StartDate": "sample string 5", "EndDate": "sample string 6", "SalonId": 7, "UsedCount": 8, "Discount": "sample string 9", "Status": 10, "CreatedDate": "2025-07-08T18:53:53.3260993+03:00", "CreatedDateStr": "08-Jul-2025 06:53 PM" }
text/xml
Sample:
<PromotionCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1"> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T18:53:53.3260993+03:00</CreatedDate> <Discount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</Discount> <EndDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</EndDate> <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id> <InflationName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 4</InflationName> <PromotionCode xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 2</PromotionCode> <PromotionName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 3</PromotionName> <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">7</SalonId> <StartDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 5</StartDate> <Status xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">10</Status> <UsedCount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">8</UsedCount> </PromotionCode>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.