POST api/offer/Offer_Upsert
Request Information
URI Parameters
None.
Body Parameters
OfferName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
OfferId | integer |
None. |
|
SalonId | integer |
None. |
|
OfferName | string |
None. |
|
ApplyOn | string |
None. |
|
SalonNewName | string |
None. |
|
SalonLogo | string |
None. |
|
OfferPeriodStart | string |
None. |
|
OfferPeriodEnd | string |
None. |
|
LookUpServicesIdStr | string |
None. |
|
OfferPriceStr | string |
None. |
|
TimeRemaining | string |
None. |
|
AgeBetweenMinYear | integer |
None. |
|
AgeBetweenMaxYear | integer |
None. |
|
LookUpServicesId | integer |
None. |
|
ParentId | integer |
None. |
|
IsDeleted | boolean |
None. |
|
CreatedDate | date |
None. |
|
CreatedBy | integer |
None. |
|
DeletedDate | date |
None. |
|
DeletedBy | integer |
None. |
|
UpdatedDate | date |
None. |
|
UpdatedBy | integer |
None. |
|
FullName | string |
None. |
|
Duration | string |
None. |
|
PackagesIds | string |
None. |
|
PackagesOfferPrices | string |
None. |
|
Language | string |
None. |
|
PackagesId | integer |
None. |
|
NewPrice | integer |
None. |
|
OldPrice | integer |
None. |
|
HomeService | integer |
None. |
|
SalonInsideService | integer |
None. |
|
IsWeeklyOffer | string |
None. |
|
WeeklyOfferDay | string |
None. |
|
PackagesOfferPrice | decimal number |
None. |
|
IsType | boolean |
None. |
|
MasterOfferPrice | Collection of MasterOfferPrice |
None. |
|
PackageOfferPrice | Collection of PackageOfferPrice |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "OfferId": 2, "SalonId": 3, "OfferName": "sample string 4", "ApplyOn": "sample string 5", "SalonNewName": "sample string 6", "SalonLogo": "sample string 7", "OfferPeriodStart": "sample string 8", "OfferPeriodEnd": "sample string 9", "LookUpServicesIdStr": "sample string 10", "OfferPriceStr": "sample string 11", "TimeRemaining": "sample string 12", "AgeBetweenMinYear": 13, "AgeBetweenMaxYear": 14, "LookUpServicesId": 15, "ParentId": 16, "IsDeleted": true, "CreatedDate": "2025-07-08T19:51:20.1922203+03:00", "CreatedBy": 19, "DeletedDate": "2025-07-08T19:51:20.1922203+03:00", "DeletedBy": 21, "UpdatedDate": "2025-07-08T19:51:20.1922203+03:00", "UpdatedBy": 23, "FullName": "sample string 24", "Duration": "sample string 25", "PackagesIds": "sample string 26", "PackagesOfferPrices": "sample string 27", "Language": "sample string 28", "PackagesId": 29, "NewPrice": 30, "OldPrice": 31, "HomeService": 32, "SalonInsideService": 33, "IsWeeklyOffer": "sample string 34", "WeeklyOfferDay": "sample string 35", "PackagesOfferPrice": 36.0, "IsType": true, "MasterOfferPrice": [ { "Id": 1, "OfferId": 2, "LookUpServicesId": 3, "ServicePackageId": 4, "OfferPrice": 5.0, "ParentId": 6, "ServiceName": "sample string 7", "CategoryName": "sample string 8", "LookUpServicesPrice": 9.0, "LookUpServicesDuration": 10.0, "CreatedDate": "2025-07-08T19:51:20.1922203+03:00", "CreatedBy": 12, "CreatedDateStr": "08-Jul-2025 07:51 PM" }, { "Id": 1, "OfferId": 2, "LookUpServicesId": 3, "ServicePackageId": 4, "OfferPrice": 5.0, "ParentId": 6, "ServiceName": "sample string 7", "CategoryName": "sample string 8", "LookUpServicesPrice": 9.0, "LookUpServicesDuration": 10.0, "CreatedDate": "2025-07-08T19:51:20.1922203+03:00", "CreatedBy": 12, "CreatedDateStr": "08-Jul-2025 07:51 PM" } ], "PackageOfferPrice": [ { "Id": 1, "OfferId": 2, "PackagesId": 3, "PackagesOfferPrice": 4.0, "IsType": 5, "CreatedDate": "2025-07-08T19:51:20.1922203+03:00", "CreatedBy": 7, "CreatedDateStr": "08-Jul-2025 07:51 PM" }, { "Id": 1, "OfferId": 2, "PackagesId": 3, "PackagesOfferPrice": 4.0, "IsType": 5, "CreatedDate": "2025-07-08T19:51:20.1922203+03:00", "CreatedBy": 7, "CreatedDateStr": "08-Jul-2025 07:51 PM" } ] }
text/xml
Sample:
<Offer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1"> <AgeBetweenMaxYear xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">14</AgeBetweenMaxYear> <AgeBetweenMinYear xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</AgeBetweenMinYear> <ApplyOn xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 5</ApplyOn> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">19</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:51:20.1922203+03:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">21</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:51:20.1922203+03:00</DeletedDate> <Duration xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 25</Duration> <FullName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 24</FullName> <HomeService xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">32</HomeService> <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsDeleted> <IsType xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsType> <IsWeeklyOffer xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 34</IsWeeklyOffer> <Language xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 28</Language> <LookUpServicesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">15</LookUpServicesId> <LookUpServicesIdStr xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 10</LookUpServicesIdStr> <MasterOfferPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract"> <d2p1:MasterOfferPrice> <CategoryName>sample string 8</CategoryName> <CreatedBy>12</CreatedBy> <CreatedDate>2025-07-08T19:51:20.1922203+03:00</CreatedDate> <Id>1</Id> <LookUpServicesDuration>10</LookUpServicesDuration> <LookUpServicesId>3</LookUpServicesId> <LookUpServicesPrice>9</LookUpServicesPrice> <OfferId>2</OfferId> <OfferPrice>5</OfferPrice> <ParentId>6</ParentId> <ServiceName>sample string 7</ServiceName> <ServicePackageId>4</ServicePackageId> </d2p1:MasterOfferPrice> <d2p1:MasterOfferPrice> <CategoryName>sample string 8</CategoryName> <CreatedBy>12</CreatedBy> <CreatedDate>2025-07-08T19:51:20.1922203+03:00</CreatedDate> <Id>1</Id> <LookUpServicesDuration>10</LookUpServicesDuration> <LookUpServicesId>3</LookUpServicesId> <LookUpServicesPrice>9</LookUpServicesPrice> <OfferId>2</OfferId> <OfferPrice>5</OfferPrice> <ParentId>6</ParentId> <ServiceName>sample string 7</ServiceName> <ServicePackageId>4</ServicePackageId> </d2p1:MasterOfferPrice> </MasterOfferPrice> <NewPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">30</NewPrice> <OfferId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</OfferId> <OfferName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 4</OfferName> <OfferPeriodEnd xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</OfferPeriodEnd> <OfferPeriodStart xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</OfferPeriodStart> <OfferPriceStr xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 11</OfferPriceStr> <OldPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">31</OldPrice> <PackageOfferPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract"> <d2p1:PackageOfferPrice> <CreatedBy>7</CreatedBy> <CreatedDate>2025-07-08T19:51:20.1922203+03:00</CreatedDate> <Id>1</Id> <IsType>5</IsType> <OfferId>2</OfferId> <PackagesId>3</PackagesId> <PackagesOfferPrice>4</PackagesOfferPrice> </d2p1:PackageOfferPrice> <d2p1:PackageOfferPrice> <CreatedBy>7</CreatedBy> <CreatedDate>2025-07-08T19:51:20.1922203+03:00</CreatedDate> <Id>1</Id> <IsType>5</IsType> <OfferId>2</OfferId> <PackagesId>3</PackagesId> <PackagesOfferPrice>4</PackagesOfferPrice> </d2p1:PackageOfferPrice> </PackageOfferPrice> <PackagesId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">29</PackagesId> <PackagesIds xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 26</PackagesIds> <PackagesOfferPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">36</PackagesOfferPrice> <PackagesOfferPrices xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 27</PackagesOfferPrices> <ParentId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">16</ParentId> <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</SalonId> <SalonInsideService xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">33</SalonInsideService> <SalonLogo xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 7</SalonLogo> <SalonNewName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</SalonNewName> <TimeRemaining xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 12</TimeRemaining> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">23</UpdatedBy> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:51:20.1922203+03:00</UpdatedDate> <WeeklyOfferDay xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 35</WeeklyOfferDay> </Offer>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.