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": "6779ab4e-7bca-4394-90a1-582f84f53e05", "Code": "sample string 2", "Description": [ { "Language": "sample string 1", "Description": "sample string 2", "PromotionCodeTitle": "sample string 3", "RequestId": "db0508ce-3a61-46be-8ca0-476580a26a75", "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": "db0508ce-3a61-46be-8ca0-476580a26a75", "LanguageLogin": "sample string 5", "AuthToken": "sample string 6", "ClientId": "sample string 7", "PageIndex": 8, "PageSize": 9 } ], "EffectiveDate": "2025-07-13T06:29:25.0393776+00:00", "ExpireDate": "2025-07-13T06:29:25.0393776+00:00", "Discount": 1.0, "ApplyForPartner": true, "PartnerId": "48796138-ecea-46cd-acfc-a7d0b3a090e6", "Commission": 1.0, "NumberOfUsesFor1Customer": 1, "NumberOfCustomersApply": 1, "FreeFromDate": "2025-07-13T06:29:25.0393776+00:00", "FreeToDate": "2025-07-13T06:29:25.0393776+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": "65644af8-199c-4a53-92b7-31546848b151", "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">65644af8-199c-4a53-92b7-31546848b151</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">db0508ce-3a61-46be-8ca0-476580a26a75</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">db0508ce-3a61-46be-8ca0-476580a26a75</RequestId> <Description>sample string 2</Description> <Language>sample string 1</Language> <PromotionCodeTitle>sample string 3</PromotionCodeTitle> </InsertPromotionCodeDetailRequest> </Description> <Discount>1</Discount> <EffectiveDate>2025-07-13T06:29:25.0393776+00:00</EffectiveDate> <ExpireDate>2025-07-13T06:29:25.0393776+00:00</ExpireDate> <FreeFromDate>2025-07-13T06:29:25.0393776+00:00</FreeFromDate> <FreeToDate>2025-07-13T06:29:25.0393776+00:00</FreeToDate> <Id>6779ab4e-7bca-4394-90a1-582f84f53e05</Id> <IsOnlyApplyForNewsubScriber>true</IsOnlyApplyForNewsubScriber> <IsProvideACardCredit>true</IsProvideACardCredit> <NumberOfCustomersApply>1</NumberOfCustomersApply> <NumberOfUsesFor1Customer>1</NumberOfUsesFor1Customer> <PartnerId>48796138-ecea-46cd-acfc-a7d0b3a090e6</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.