PUT {language}/admin/promotionCodeManagement/promotionCodeFreeFunction/update

Request Information

URI Parameters

NameDescriptionTypeAdditional information
language

string

Required

Body Parameters

UpdatePromotionCodeFreeFunctionRequest
NameDescriptionTypeAdditional information
Code

string

None.

Description

Collection of InsertPromotionCodeDetailRequest

None.

EffectiveDate

date

None.

ExpireDate

date

None.

ApplyForPartner

boolean

None.

PartnerId

globally unique identifier

None.

Commission

decimal number

None.

Package

string

None.

NumberOfCustomersApply

integer

None.

NumberOfUsesFor1Package

integer

None.

Permissions

Collection of PermissionViewModel

None.

Id

globally unique identifier

None.

CreatedOn

date

None.

UpdatedOn

date

None.

RecordState

RecordStateEnum

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Description": [
    {
      "Language": "sample string 1",
      "Description": "sample string 2",
      "PromotionCodeTitle": "sample string 3",
      "RequestId": "a7f69e99-1691-48a9-b81e-03f7d2088d16",
      "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": "a7f69e99-1691-48a9-b81e-03f7d2088d16",
      "LanguageLogin": "sample string 5",
      "AuthToken": "sample string 6",
      "ClientId": "sample string 7",
      "PageIndex": 8,
      "PageSize": 9
    }
  ],
  "EffectiveDate": "2025-04-27T23:29:30.247616+00:00",
  "ExpireDate": "2025-04-27T23:29:30.247616+00:00",
  "ApplyForPartner": true,
  "PartnerId": "80f6053a-18a6-49eb-98d8-e47f24a1c9db",
  "Commission": 1.0,
  "Package": "sample string 4",
  "NumberOfCustomersApply": 1,
  "NumberOfUsesFor1Package": 1,
  "Permissions": [
    {
      "Role": "sample string 1",
      "Active": true,
      "Id": "e3689936-0de3-4247-8c2d-cb624329e2a2"
    },
    {
      "Role": "sample string 1",
      "Active": true,
      "Id": "e3689936-0de3-4247-8c2d-cb624329e2a2"
    }
  ],
  "Id": "7be8e63a-a93c-434f-8f9d-2ea99681cfc9",
  "CreatedOn": "2025-04-27T23:29:30.247616+00:00",
  "UpdatedOn": "2025-04-27T23:29:30.247616+00:00",
  "RecordState": 0
}

application/xml, text/xml

Sample:
<UpdatePromotionCodeFreeFunctionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.WebApi.Models.Requests">
  <CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.Core.Models">2025-04-27T23:29:30.247616+00:00</CreatedOn>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.Core.Models">7be8e63a-a93c-434f-8f9d-2ea99681cfc9</Id>
  <RecordState xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.Core.Models">Disabled</RecordState>
  <UpdatedOn xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.Core.Models">2025-04-27T23:29:30.247616+00:00</UpdatedOn>
  <ApplyForPartner>true</ApplyForPartner>
  <Code>sample string 1</Code>
  <Commission>1</Commission>
  <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">a7f69e99-1691-48a9-b81e-03f7d2088d16</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">a7f69e99-1691-48a9-b81e-03f7d2088d16</RequestId>
      <Description>sample string 2</Description>
      <Language>sample string 1</Language>
      <PromotionCodeTitle>sample string 3</PromotionCodeTitle>
    </InsertPromotionCodeDetailRequest>
  </Description>
  <EffectiveDate>2025-04-27T23:29:30.247616+00:00</EffectiveDate>
  <ExpireDate>2025-04-27T23:29:30.247616+00:00</ExpireDate>
  <NumberOfCustomersApply>1</NumberOfCustomersApply>
  <NumberOfUsesFor1Package>1</NumberOfUsesFor1Package>
  <Package>sample string 4</Package>
  <PartnerId>80f6053a-18a6-49eb-98d8-e47f24a1c9db</PartnerId>
  <Permissions xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.WebApi.Models.ViewModels">
    <d2p1:PermissionViewModel>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">e3689936-0de3-4247-8c2d-cb624329e2a2</Id>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:Role>sample string 1</d2p1:Role>
    </d2p1:PermissionViewModel>
    <d2p1:PermissionViewModel>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">e3689936-0de3-4247-8c2d-cb624329e2a2</Id>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:Role>sample string 1</d2p1:Role>
    </d2p1:PermissionViewModel>
  </Permissions>
</UpdatePromotionCodeFreeFunctionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.