POST api/promotionCode/AddPromotionCode_Upsert
Request Information
URI Parameters
None.
Body Parameters
PromotionCode| Name | 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": "2026-02-04T05:10:38.1226175+03:00",
"CreatedDateStr": "04-Feb-2026 05:10 AM"
}
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">2026-02-04T05:10:38.1226175+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.