POST api/promotion/Promotion_Upsert
Request Information
URI Parameters
None.
Body Parameters
PromotionName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
VendorId | integer |
None. |
|
ProductId | integer |
None. |
|
ProductName | string |
None. |
|
ProductTypeId | integer |
None. |
|
ProductTypeName | string |
None. |
|
ProductBrandId | integer |
None. |
|
ProductBrandName | string |
None. |
|
StartDate | string |
None. |
|
EndDate | string |
None. |
|
Price | string |
None. |
|
OriginalPrice | decimal number |
None. |
|
OfferPrice | decimal number |
None. |
|
Language | string |
None. |
|
CreatedDate | date |
None. |
|
CreatedBy | integer |
None. |
|
UpdatedDate | date |
None. |
|
UpdatedBy | integer |
None. |
|
StartDateStr | string |
None. |
|
EndDateStr | string |
None. |
|
CreatedDateStr | string |
None. |
|
UpdatedDateStr | string |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
text/xml
Sample:
<Promotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">16</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:59:52.6450954+03:00</CreatedDate> <EndDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 10</EndDate> <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id> <Language xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 14</Language> <OfferPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</OfferPrice> <OriginalPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">12</OriginalPrice> <Price xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 11</Price> <ProductBrandId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">7</ProductBrandId> <ProductBrandName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</ProductBrandName> <ProductId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</ProductId> <ProductName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 4</ProductName> <ProductTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">5</ProductTypeId> <ProductTypeName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</ProductTypeName> <StartDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</StartDate> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">18</UpdatedBy> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:59:52.6450954+03:00</UpdatedDate> <VendorId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</VendorId> </Promotion>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.