PUT {language}/admin/promotionCodeManagement/promotionCodeDiscount/update
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
language | string |
Required |
Body Parameters
UpdatePromotionCodeDiscountRequestName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Code | string |
None. |
|
Description | Collection of InsertPromotionCodeDetailRequest |
None. |
|
EffectiveDate | date |
None. |
|
ExpireDate | date |
None. |
|
Discount | decimal number |
None. |
|
ApplyForPartner | boolean |
None. |
|
PartnerId | globally unique identifier |
None. |
|
Commission | decimal number |
None. |
|
NumberOfUsesFor1Customer | integer |
None. |
|
NumberOfCustomersApply | integer |
None. |
|
FreeFromDate | date |
None. |
|
FreeToDate | date |
None. |
|
BillingCycleType | string |
None. |
|
PromotionPaymentType | string |
None. |
|
IsProvideACardCredit | boolean |
None. |
|
TypeName | string |
None. |
|
Country | string |
None. |
|
SellerName | string |
None. |
|
IsOnlyApplyForNewsubScriber | boolean |
None. |
|
RequestId | globally unique identifier |
None. |
|
Language | string |
None. |
|
LanguageLogin | string |
None. |
|
AuthToken | string |
None. |
|
ClientId | string |
None. |
|
PageIndex | integer |
None. |
|
PageSize | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "fe15a621-1066-4cd1-987f-40c01a427050", "Code": "sample string 2", "Description": [ { "Language": "sample string 1", "Description": "sample string 2", "PromotionCodeTitle": "sample string 3", "RequestId": "cff6ed61-f79c-4135-864f-279ffd7e34ab", "LanguageLogin": "sample string 5", "AuthToken": "sample string 6", "ClientId": "sample string 7", "PageIndex": 8, "PageSize": 9 }, { "Language": "sample string 1", "Description": "sample string 2", "PromotionCodeTitle": "sample string 3", "RequestId": "cff6ed61-f79c-4135-864f-279ffd7e34ab", "LanguageLogin": "sample string 5", "AuthToken": "sample string 6", "ClientId": "sample string 7", "PageIndex": 8, "PageSize": 9 } ], "EffectiveDate": "2025-04-26T18:51:58.992222+00:00", "ExpireDate": "2025-04-26T18:51:58.992222+00:00", "Discount": 1.0, "ApplyForPartner": true, "PartnerId": "f34648ba-7aaa-4fa6-8ba2-a9d8dc7f9ca6", "Commission": 1.0, "NumberOfUsesFor1Customer": 1, "NumberOfCustomersApply": 1, "FreeFromDate": "2025-04-26T18:51:58.992222+00:00", "FreeToDate": "2025-04-26T18:51:58.992222+00:00", "BillingCycleType": "sample string 5", "PromotionPaymentType": "sample string 6", "IsProvideACardCredit": true, "TypeName": "sample string 8", "Country": "sample string 9", "SellerName": "sample string 10", "IsOnlyApplyForNewsubScriber": true, "RequestId": "f1c69a4c-3263-4939-a80a-749dd7a36af5", "Language": "sample string 13", "LanguageLogin": "sample string 14", "AuthToken": "sample string 15", "ClientId": "sample string 16", "PageIndex": 17, "PageSize": 18 }
application/xml, text/xml
Sample:
<UpdatePromotionCodeDiscountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.WebApi.Models.Requests"> <AuthToken xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 15</AuthToken> <ClientId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 16</ClientId> <Language xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 13</Language> <LanguageLogin xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 14</LanguageLogin> <PageIndex xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">17</PageIndex> <PageSize xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">18</PageSize> <RequestId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">f1c69a4c-3263-4939-a80a-749dd7a36af5</RequestId> <ApplyForPartner>true</ApplyForPartner> <BillingCycleType>sample string 5</BillingCycleType> <Code>sample string 2</Code> <Commission>1</Commission> <Country>sample string 9</Country> <Description> <InsertPromotionCodeDetailRequest> <AuthToken xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 6</AuthToken> <ClientId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 7</ClientId> <Language xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">en</Language> <LanguageLogin xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 5</LanguageLogin> <PageIndex xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">8</PageIndex> <PageSize xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">9</PageSize> <RequestId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">cff6ed61-f79c-4135-864f-279ffd7e34ab</RequestId> <Description>sample string 2</Description> <Language>sample string 1</Language> <PromotionCodeTitle>sample string 3</PromotionCodeTitle> </InsertPromotionCodeDetailRequest> <InsertPromotionCodeDetailRequest> <AuthToken xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 6</AuthToken> <ClientId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 7</ClientId> <Language xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">en</Language> <LanguageLogin xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 5</LanguageLogin> <PageIndex xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">8</PageIndex> <PageSize xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">9</PageSize> <RequestId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">cff6ed61-f79c-4135-864f-279ffd7e34ab</RequestId> <Description>sample string 2</Description> <Language>sample string 1</Language> <PromotionCodeTitle>sample string 3</PromotionCodeTitle> </InsertPromotionCodeDetailRequest> </Description> <Discount>1</Discount> <EffectiveDate>2025-04-26T18:51:58.992222+00:00</EffectiveDate> <ExpireDate>2025-04-26T18:51:58.992222+00:00</ExpireDate> <FreeFromDate>2025-04-26T18:51:58.992222+00:00</FreeFromDate> <FreeToDate>2025-04-26T18:51:58.992222+00:00</FreeToDate> <Id>fe15a621-1066-4cd1-987f-40c01a427050</Id> <IsOnlyApplyForNewsubScriber>true</IsOnlyApplyForNewsubScriber> <IsProvideACardCredit>true</IsProvideACardCredit> <NumberOfCustomersApply>1</NumberOfCustomersApply> <NumberOfUsesFor1Customer>1</NumberOfUsesFor1Customer> <PartnerId>f34648ba-7aaa-4fa6-8ba2-a9d8dc7f9ca6</PartnerId> <PromotionPaymentType>sample string 6</PromotionPaymentType> <SellerName>sample string 10</SellerName> <TypeName>sample string 8</TypeName> </UpdatePromotionCodeDiscountRequest>
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.