POST api/PromoCode/SavePromoCodeDetail

Request Information

URI Parameters

None.

Body Parameters

SaveUpdatePromoCodeRequestViewModel
NameDescriptionTypeAdditional information
AdminUserId

string

None.

Name

string

Required

Description

string

None.

Code

string

None.

SignUpURL

string

None.

IncentiveIds

Collection of string

None.

IsBeginnigSet

boolean

None.

IsEndingSet

boolean

None.

IsSubscriptionAmountSet

boolean

None.

IsUseLimitSet

boolean

None.

IsPlanSet

boolean

None.

IsAgencySet

boolean

None.

IsBillingFrequencySet

boolean

None.

IsPurchaseAmountSet

boolean

None.

MaxNumberOfUses

integer

None.

ValidityType

PromoCodeValidityType

None.

BeginingDetails

PromoCodeBeginingDetailsVM

None.

EndingDetails

PromoCodeEndingDetailsVM

None.

BillingFrequency

PromoBasedOnFrequency

None.

PurchaseAmount

decimal number

None.

SubscriptionAmount

decimal number

None.

PlanIds

Collection of string

None.

ReferencedAccounts

integer

None.

ReferralAvailability

PromoReferalAvailability

None.

AffiliateIds

Collection of string

None.

AgencyIds

Collection of string

None.

Id

string

None.

CreatedDate

date

None.

UpdatedDate

date

None.

CreatedBy

string

None.

UpdatedBy

string

None.

CreatedByUserId

string

None.

UpdatedByUserId

string

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AdminUserId": "sample string 1",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Code": "sample string 4",
  "SignUpURL": "sample string 5",
  "IncentiveIds": [
    "sample string 1",
    "sample string 2"
  ],
  "IsBeginnigSet": true,
  "IsEndingSet": true,
  "IsSubscriptionAmountSet": true,
  "IsUseLimitSet": true,
  "IsPlanSet": true,
  "IsAgencySet": true,
  "IsBillingFrequencySet": true,
  "IsPurchaseAmountSet": true,
  "MaxNumberOfUses": 14,
  "ValidityType": "AnyTime",
  "BeginingDetails": {
    "Date": "2024-11-21T08:40:54.2441778+00:00",
    "IsTimeSet": true,
    "Time": {
      "Date": "2024-11-21T08:40:54.2441778+00:00",
      "Hour": 1,
      "Minute": 2,
      "AM": true
    }
  },
  "EndingDetails": {
    "Date": "2024-11-21T08:40:54.2441778+00:00",
    "IsTimeSet": true,
    "Time": {
      "Date": "2024-11-21T08:40:54.2441778+00:00",
      "Hour": 1,
      "Minute": 2,
      "AM": true
    }
  },
  "BillingFrequency": "Monthly",
  "PurchaseAmount": 15.0,
  "SubscriptionAmount": 16.0,
  "PlanIds": [
    "sample string 1",
    "sample string 2"
  ],
  "ReferencedAccounts": 17,
  "ReferralAvailability": "Public",
  "AffiliateIds": [
    "sample string 1",
    "sample string 2"
  ],
  "AgencyIds": [
    "sample string 1",
    "sample string 2"
  ],
  "Id": "sample string 18",
  "CreatedDate": "2024-11-21T08:40:54.2441778+00:00",
  "UpdatedDate": "2024-11-21T08:40:54.2441778+00:00",
  "CreatedBy": "sample string 21",
  "UpdatedBy": "sample string 22",
  "CreatedByUserId": "sample string 23",
  "UpdatedByUserId": "sample string 24",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<SaveUpdatePromoCodeRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.IncentivesAndPromos">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 21</CreatedBy>
  <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 23</CreatedByUserId>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:40:54.2441778+00:00</CreatedDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 18</Id>
  <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">true</IsDeleted>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 22</UpdatedBy>
  <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 24</UpdatedByUserId>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:40:54.2441778+00:00</UpdatedDate>
  <AffiliateIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AffiliateIds>
  <AgencyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AgencyIds>
  <BeginingDetails xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">
    <Date>2024-11-21T08:40:54.2441778+00:00</Date>
    <IsTimeSet>true</IsTimeSet>
    <Time xmlns:d3p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommonModel">
      <d3p1:AM>true</d3p1:AM>
      <d3p1:Date>2024-11-21T08:40:54.2441778+00:00</d3p1:Date>
      <d3p1:Hour>1</d3p1:Hour>
      <d3p1:Minute>2</d3p1:Minute>
    </Time>
  </BeginingDetails>
  <BillingFrequency xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">Monthly</BillingFrequency>
  <Code xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">sample string 4</Code>
  <Description xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">sample string 3</Description>
  <EndingDetails xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">
    <Date>2024-11-21T08:40:54.2441778+00:00</Date>
    <IsTimeSet>true</IsTimeSet>
    <Time xmlns:d3p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommonModel">
      <d3p1:AM>true</d3p1:AM>
      <d3p1:Date>2024-11-21T08:40:54.2441778+00:00</d3p1:Date>
      <d3p1:Hour>1</d3p1:Hour>
      <d3p1:Minute>2</d3p1:Minute>
    </Time>
  </EndingDetails>
  <IncentiveIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </IncentiveIds>
  <IsAgencySet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsAgencySet>
  <IsBeginnigSet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsBeginnigSet>
  <IsBillingFrequencySet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsBillingFrequencySet>
  <IsEndingSet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsEndingSet>
  <IsPlanSet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsPlanSet>
  <IsPurchaseAmountSet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsPurchaseAmountSet>
  <IsSubscriptionAmountSet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsSubscriptionAmountSet>
  <IsUseLimitSet xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">true</IsUseLimitSet>
  <MaxNumberOfUses xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">14</MaxNumberOfUses>
  <Name xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">sample string 2</Name>
  <PlanIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </PlanIds>
  <PurchaseAmount xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">15</PurchaseAmount>
  <ReferencedAccounts xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">17</ReferencedAccounts>
  <ReferralAvailability xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">Public</ReferralAvailability>
  <SignUpURL xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">sample string 5</SignUpURL>
  <SubscriptionAmount xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">16</SubscriptionAmount>
  <ValidityType xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.IncentivesAndPromo">AnyTime</ValidityType>
  <AdminUserId>sample string 1</AdminUserId>
</SaveUpdatePromoCodeRequestViewModel>

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.