PUT api/v1/promotions/{code}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code | string |
Required |
Body Parameters
PromotionDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
CreationDate | date |
None. |
|
ModificationDate | date |
None. |
|
Code | string |
None. |
|
UrlImagePromotion | string |
None. |
|
TitleList | string |
None. |
|
TitleDetail | string |
None. |
|
Conditions | string |
None. |
|
BeginDate | date |
None. |
|
EndDate | date |
None. |
|
BeginUsableDate | date |
None. |
|
EndUsableDate | date |
None. |
|
PromotionTypeCode | string |
None. |
|
Description | string |
None. |
|
Active | boolean |
None. |
|
IsHidden | boolean |
None. |
|
CategoryCode | string |
None. |
|
BrandCode | string |
None. |
|
IsDeleteable | boolean |
None. |
|
PartnerPromotions | Collection of PartnerPromotionDto |
None. |
|
ProductsPromotions | string |
None. |
|
DiscountValueEuros | decimal number |
None. |
|
DiscountValuePercentage | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": "0a4cae40-19e4-4e5b-be3d-bf147296f90a", "creationDate": "2025-08-31T06:20:07.3668554+00:00", "modificationDate": "2025-08-31T06:20:07.3668554+00:00", "code": "sample string 3", "urlImagePromotion": "sample string 4", "titleList": "sample string 5", "titleDetail": "sample string 6", "conditions": "sample string 7", "beginDate": "2025-08-31T06:20:07.3668554+00:00", "endDate": "2025-08-31T06:20:07.3668554+00:00", "beginUsableDate": "2025-08-31T06:20:07.3668554+00:00", "endUsableDate": "2025-08-31T06:20:07.3668554+00:00", "promotionTypeCode": "sample string 8", "description": "sample string 9", "active": true, "isHidden": true, "categoryCode": "sample string 12", "brandCode": "sample string 13", "isDeleteable": true, "partnerPromotions": [ { "id": "e0175f78-a171-42b6-b222-17aec01e1ae4", "code": "sample string 1", "promotionCode": "sample string 2", "name": "sample string 3", "mobilePhone": "sample string 4", "phone": "sample string 5", "email": "sample string 6" }, { "id": "e0175f78-a171-42b6-b222-17aec01e1ae4", "code": "sample string 1", "promotionCode": "sample string 2", "name": "sample string 3", "mobilePhone": "sample string 4", "phone": "sample string 5", "email": "sample string 6" } ], "productsPromotions": "sample string 15", "discountValueEuros": 1.0, "discountValuePercentage": 1.0 }
application/xml, text/xml
Sample:
<PromotionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos"> <Active>true</Active> <BeginDate>2025-08-31T06:20:07.3668554+00:00</BeginDate> <BeginUsableDate>2025-08-31T06:20:07.3668554+00:00</BeginUsableDate> <BrandCode>sample string 13</BrandCode> <CategoryCode>sample string 12</CategoryCode> <Code>sample string 3</Code> <Conditions>sample string 7</Conditions> <CreationDate>2025-08-31T06:20:07.3668554+00:00</CreationDate> <Description>sample string 9</Description> <DiscountValueEuros>1</DiscountValueEuros> <DiscountValuePercentage>1</DiscountValuePercentage> <EndDate>2025-08-31T06:20:07.3668554+00:00</EndDate> <EndUsableDate>2025-08-31T06:20:07.3668554+00:00</EndUsableDate> <Id>0a4cae40-19e4-4e5b-be3d-bf147296f90a</Id> <IsDeleteable>true</IsDeleteable> <IsHidden>true</IsHidden> <ModificationDate>2025-08-31T06:20:07.3668554+00:00</ModificationDate> <PartnerPromotions> <PartnerPromotionDto> <Code>sample string 1</Code> <Email>sample string 6</Email> <Id>e0175f78-a171-42b6-b222-17aec01e1ae4</Id> <MobilePhone>sample string 4</MobilePhone> <Name>sample string 3</Name> <Phone>sample string 5</Phone> <PromotionCode>sample string 2</PromotionCode> </PartnerPromotionDto> <PartnerPromotionDto> <Code>sample string 1</Code> <Email>sample string 6</Email> <Id>e0175f78-a171-42b6-b222-17aec01e1ae4</Id> <MobilePhone>sample string 4</MobilePhone> <Name>sample string 3</Name> <Phone>sample string 5</Phone> <PromotionCode>sample string 2</PromotionCode> </PartnerPromotionDto> </PartnerPromotions> <ProductsPromotions>sample string 15</ProductsPromotions> <PromotionTypeCode>sample string 8</PromotionTypeCode> <TitleDetail>sample string 6</TitleDetail> <TitleList>sample string 5</TitleList> <UrlImagePromotion>sample string 4</UrlImagePromotion> </PromotionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.