POST {language}/admin/promotionCodeManagement/promotionCodeDiscount/insert
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
language | string |
Required |
Body Parameters
InsertPromotionCodeDiscountRequestName | Description | Type | Additional information |
---|---|---|---|
Discount | decimal number |
None. |
|
ApplyForPartner | boolean |
None. |
|
PartnerId | globally unique identifier |
None. |
|
Commission | decimal number |
None. |
|
NumberOfCustomersApply | integer |
None. |
|
NumberOfUsesFor1Customer | integer |
None. |
|
FreeFromDate | date |
None. |
|
FreeToDate | date |
None. |
|
Country | string |
None. |
|
SellerName | string |
None. |
|
IsOnlyApplyForNewsubScriber | boolean |
None. |
|
Code | string |
None. |
|
Description | Collection of InsertPromotionCodeDetailRequest |
None. |
|
EffectiveDate | date |
None. |
|
ExpireDate | date |
None. |
|
BillingCycleType | string |
None. |
|
PromotionPaymentType | string |
None. |
|
IsProvideACardCredit | boolean |
None. |
|
TypeName | string |
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:
{ "Discount": 1.0, "ApplyForPartner": true, "PartnerId": "fb2db69f-f807-4820-978f-6be8b4009151", "Commission": 1.0, "NumberOfCustomersApply": 1, "NumberOfUsesFor1Customer": 1, "FreeFromDate": "2025-04-26T19:21:23.4719434+00:00", "FreeToDate": "2025-04-26T19:21:23.4719434+00:00", "Country": "sample string 3", "SellerName": "sample string 4", "IsOnlyApplyForNewsubScriber": true, "Code": "sample string 6", "Description": [ { "Language": "sample string 1", "Description": "sample string 2", "PromotionCodeTitle": "sample string 3", "RequestId": "f0a0da7a-66d2-49b3-bef2-0c3164bd82d1", "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": "f0a0da7a-66d2-49b3-bef2-0c3164bd82d1", "LanguageLogin": "sample string 5", "AuthToken": "sample string 6", "ClientId": "sample string 7", "PageIndex": 8, "PageSize": 9 } ], "EffectiveDate": "2025-04-26T19:21:23.4719434+00:00", "ExpireDate": "2025-04-26T19:21:23.4719434+00:00", "BillingCycleType": "sample string 7", "PromotionPaymentType": "sample string 8", "IsProvideACardCredit": true, "TypeName": "sample string 10", "RequestId": "60276cfc-d31b-430b-9495-d0b779f08655", "Language": "sample string 12", "LanguageLogin": "sample string 13", "AuthToken": "sample string 14", "ClientId": "sample string 15", "PageIndex": 16, "PageSize": 17 }
application/xml, text/xml
Sample:
<InsertPromotionCodeDiscountRequest 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 14</AuthToken> <ClientId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 15</ClientId> <Language xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 12</Language> <LanguageLogin xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 13</LanguageLogin> <PageIndex xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">16</PageIndex> <PageSize xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">17</PageSize> <RequestId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">60276cfc-d31b-430b-9495-d0b779f08655</RequestId> <BillingCycleType>sample string 7</BillingCycleType> <Code>sample string 6</Code> <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">f0a0da7a-66d2-49b3-bef2-0c3164bd82d1</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">f0a0da7a-66d2-49b3-bef2-0c3164bd82d1</RequestId> <Description>sample string 2</Description> <Language>sample string 1</Language> <PromotionCodeTitle>sample string 3</PromotionCodeTitle> </InsertPromotionCodeDetailRequest> </Description> <EffectiveDate>2025-04-26T19:21:23.4719434+00:00</EffectiveDate> <ExpireDate>2025-04-26T19:21:23.4719434+00:00</ExpireDate> <IsProvideACardCredit>true</IsProvideACardCredit> <PromotionPaymentType>sample string 8</PromotionPaymentType> <TypeName>sample string 10</TypeName> <ApplyForPartner>true</ApplyForPartner> <Commission>1</Commission> <Country>sample string 3</Country> <Discount>1</Discount> <FreeFromDate>2025-04-26T19:21:23.4719434+00:00</FreeFromDate> <FreeToDate>2025-04-26T19:21:23.4719434+00:00</FreeToDate> <IsOnlyApplyForNewsubScriber>true</IsOnlyApplyForNewsubScriber> <NumberOfCustomersApply>1</NumberOfCustomersApply> <NumberOfUsesFor1Customer>1</NumberOfUsesFor1Customer> <PartnerId>fb2db69f-f807-4820-978f-6be8b4009151</PartnerId> <SellerName>sample string 4</SellerName> </InsertPromotionCodeDiscountRequest>
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.