POST api/Account/CreateSubAccount

Request Information

URI Parameters

None.

Body Parameters

SubAccountViewModel
NameDescriptionTypeAdditional information
UserId

string

Required

ParentAccountId

string

Required

IsPrimary

boolean

None.

Name

string

Required

MobileNumber

string

Required

Matching regular expression pattern: ^([0-9]{6,12})$

Email

string

Required

Matching regular expression pattern: ^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,}$

LogoPath

string

None.

Fax

string

None.

Website

string

None.

AddressSummary

AddressSummaryViewModel

None.

Hours

Collection of HoursSummaryViewModel

None.

Social

SocialMediaSummaryViewModel

None.

Communication

CommunicationSummaryViewModel

None.

TermsConditions

TermsConditionsSummaryViewModel

None.

AccountType

AccountType

None.

PlanId

string

None.

ShortUniqueId

string

None.

SubAccountReferenceId

string

None.

IsUseDayLightSaving

boolean

None.

TotalContacts

integer

None.

LastContactCreatedOn

date

None.

TextMessageSettings

TextMesageDefaultSettingsVM

None.

EmailSettings

EmailDefaultSettingsViewModel

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:
{
  "UserId": "sample string 1",
  "ParentAccountId": "sample string 2",
  "IsPrimary": true,
  "Name": "sample string 4",
  "MobileNumber": "sample string 5",
  "Email": "sample string 6",
  "LogoPath": "sample string 7",
  "Fax": "sample string 8",
  "Website": "sample string 9",
  "AddressSummary": {
    "UserCulture": "sample string 1",
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "City": "sample string 4",
    "StateId": "sample string 5",
    "CountryId": "sample string 6",
    "ZipCode": "sample string 7",
    "TimeZoneId": "sample string 8",
    "RegionId": "sample string 9",
    "CountryName": "sample string 10",
    "StateName": "sample string 11"
  },
  "Hours": [
    {
      "IsByAppointmentOnly": true,
      "DayOfWeek": "Sunday",
      "OpeningTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      },
      "ClosingTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      }
    },
    {
      "IsByAppointmentOnly": true,
      "DayOfWeek": "Sunday",
      "OpeningTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      },
      "ClosingTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      }
    }
  ],
  "Social": {
    "FacebookId": "sample string 1",
    "TwitterId": "sample string 2",
    "LinkedInId": "sample string 3",
    "InstagramId": "sample string 4",
    "YoutubeId": "sample string 5",
    "GooglePlusId": "sample string 6",
    "PInterestId": "sample string 7"
  },
  "Communication": {
    "EmailCampaignSettings": {
      "FromEmail": "sample string 1",
      "ReplyEmail": "sample string 2",
      "AddressSummary": {
        "UserCulture": "sample string 1",
        "Address1": "sample string 2",
        "Address2": "sample string 3",
        "City": "sample string 4",
        "StateId": "sample string 5",
        "CountryId": "sample string 6",
        "ZipCode": "sample string 7",
        "TimeZoneId": "sample string 8",
        "RegionId": "sample string 9",
        "CountryName": "sample string 10",
        "StateName": "sample string 11"
      },
      "IsFromEmailVerified": true,
      "IsReplyEmailVerified": true
    },
    "TextCampaignSettings": {
      "FromName": "sample string 1"
    },
    "FormsSubscriptionSettings": {
      "From": "sample string 1",
      "Message": "sample string 2",
      "IsShowLogo": true,
      "IsShowAddress": true,
      "IsShowWebsite": true
    },
    "FormsUnsubscribeSettings": {
      "From": "sample string 1",
      "Message": "sample string 2",
      "IsShowLogo": true,
      "IsShowAddress": true,
      "IsShowWebsite": true
    }
  },
  "TermsConditions": {
    "LeadFormTermsConditions": "sample string 1",
    "OfferTermsConditions": "sample string 2",
    "LeadFormTermsConditionsRawContent": "sample string 3",
    "OfferTermsConditionsRawContent": "sample string 4"
  },
  "AccountType": "BusinessAccount",
  "PlanId": "sample string 10",
  "ShortUniqueId": "sample string 11",
  "SubAccountReferenceId": "sample string 12",
  "IsUseDayLightSaving": true,
  "TotalContacts": 14,
  "LastContactCreatedOn": "2022-09-26T16:09:18.1785586+00:00",
  "TextMessageSettings": {
    "FromName": "sample string 1"
  },
  "EmailSettings": {
    "AvailableEmails": [
      "sample string 1",
      "sample string 2"
    ],
    "DefaultFromName": "sample string 1",
    "DefaultEmail": "sample string 2",
    "DefaultReplyEmailAddress": "sample string 3",
    "EmailLegalDisclaimer": "sample string 4",
    "EmailLegalDisclaimerRawContent": "sample string 5",
    "EmailFooterSettings": {
      "Name": "sample string 1",
      "CountryId": "sample string 2",
      "Address1": "sample string 3",
      "Address2": "sample string 4",
      "City": "sample string 5",
      "StateId": "sample string 6",
      "ZipCode": "sample string 7",
      "PhoneNumber": "sample string 8",
      "PhoneCountryCode": "sample string 9",
      "Website": "sample string 10"
    }
  },
  "Id": "sample string 15",
  "CreatedDate": "2022-09-26T16:09:18.1785586+00:00",
  "UpdatedDate": "2022-09-26T16:09:18.1785586+00:00",
  "CreatedBy": "sample string 18",
  "UpdatedBy": "sample string 19",
  "CreatedByUserId": "sample string 20",
  "UpdatedByUserId": "sample string 21",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<SubAccountViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 18</CreatedBy>
  <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 20</CreatedByUserId>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2022-09-26T16:09:18.1785586+00:00</CreatedDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 15</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 19</UpdatedBy>
  <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 21</UpdatedByUserId>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2022-09-26T16:09:18.1785586+00:00</UpdatedDate>
  <AccountType>BusinessAccount</AccountType>
  <AddressSummary xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.Common">
    <d2p1:Address1>sample string 2</d2p1:Address1>
    <d2p1:Address2>sample string 3</d2p1:Address2>
    <d2p1:City>sample string 4</d2p1:City>
    <d2p1:CountryId>sample string 6</d2p1:CountryId>
    <d2p1:CountryName>sample string 10</d2p1:CountryName>
    <d2p1:RegionId>sample string 9</d2p1:RegionId>
    <d2p1:StateId>sample string 5</d2p1:StateId>
    <d2p1:StateName>sample string 11</d2p1:StateName>
    <d2p1:TimeZoneId>sample string 8</d2p1:TimeZoneId>
    <d2p1:UserCulture>sample string 1</d2p1:UserCulture>
    <d2p1:ZipCode>sample string 7</d2p1:ZipCode>
  </AddressSummary>
  <Communication>
    <EmailCampaignSettings>
      <AddressSummary xmlns:d4p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.Common">
        <d4p1:Address1>sample string 2</d4p1:Address1>
        <d4p1:Address2>sample string 3</d4p1:Address2>
        <d4p1:City>sample string 4</d4p1:City>
        <d4p1:CountryId>sample string 6</d4p1:CountryId>
        <d4p1:CountryName>sample string 10</d4p1:CountryName>
        <d4p1:RegionId>sample string 9</d4p1:RegionId>
        <d4p1:StateId>sample string 5</d4p1:StateId>
        <d4p1:StateName>sample string 11</d4p1:StateName>
        <d4p1:TimeZoneId>sample string 8</d4p1:TimeZoneId>
        <d4p1:UserCulture>sample string 1</d4p1:UserCulture>
        <d4p1:ZipCode>sample string 7</d4p1:ZipCode>
      </AddressSummary>
      <FromEmail>sample string 1</FromEmail>
      <IsFromEmailVerified>true</IsFromEmailVerified>
      <IsReplyEmailVerified>true</IsReplyEmailVerified>
      <ReplyEmail>sample string 2</ReplyEmail>
    </EmailCampaignSettings>
    <FormsSubscriptionSettings>
      <From>sample string 1</From>
      <IsShowAddress>true</IsShowAddress>
      <IsShowLogo>true</IsShowLogo>
      <IsShowWebsite>true</IsShowWebsite>
      <Message>sample string 2</Message>
    </FormsSubscriptionSettings>
    <FormsUnsubscribeSettings>
      <From>sample string 1</From>
      <IsShowAddress>true</IsShowAddress>
      <IsShowLogo>true</IsShowLogo>
      <IsShowWebsite>true</IsShowWebsite>
      <Message>sample string 2</Message>
    </FormsUnsubscribeSettings>
    <TextCampaignSettings>
      <FromName>sample string 1</FromName>
    </TextCampaignSettings>
  </Communication>
  <Email>sample string 6</Email>
  <EmailSettings>
    <AvailableEmails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </AvailableEmails>
    <DefaultEmail>sample string 2</DefaultEmail>
    <DefaultFromName>sample string 1</DefaultFromName>
    <DefaultReplyEmailAddress>sample string 3</DefaultReplyEmailAddress>
    <EmailFooterSettings xmlns:d3p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.Campaign">
      <d3p1:Address1>sample string 3</d3p1:Address1>
      <d3p1:Address2>sample string 4</d3p1:Address2>
      <d3p1:City>sample string 5</d3p1:City>
      <d3p1:CountryId>sample string 2</d3p1:CountryId>
      <d3p1:Name>sample string 1</d3p1:Name>
      <d3p1:PhoneCountryCode>sample string 9</d3p1:PhoneCountryCode>
      <d3p1:PhoneNumber>sample string 8</d3p1:PhoneNumber>
      <d3p1:StateId>sample string 6</d3p1:StateId>
      <d3p1:Website>sample string 10</d3p1:Website>
      <d3p1:ZipCode>sample string 7</d3p1:ZipCode>
    </EmailFooterSettings>
    <EmailLegalDisclaimer>sample string 4</EmailLegalDisclaimer>
    <EmailLegalDisclaimerRawContent>sample string 5</EmailLegalDisclaimerRawContent>
  </EmailSettings>
  <Fax>sample string 8</Fax>
  <Hours>
    <HoursSummaryViewModel>
      <ClosingTimeDetail>
        <Hour>1</Hour>
        <IsAm>true</IsAm>
        <Minutes>2</Minutes>
      </ClosingTimeDetail>
      <DayOfWeek>Sunday</DayOfWeek>
      <IsByAppointmentOnly>true</IsByAppointmentOnly>
      <OpeningTimeDetail>
        <Hour>1</Hour>
        <IsAm>true</IsAm>
        <Minutes>2</Minutes>
      </OpeningTimeDetail>
    </HoursSummaryViewModel>
    <HoursSummaryViewModel>
      <ClosingTimeDetail>
        <Hour>1</Hour>
        <IsAm>true</IsAm>
        <Minutes>2</Minutes>
      </ClosingTimeDetail>
      <DayOfWeek>Sunday</DayOfWeek>
      <IsByAppointmentOnly>true</IsByAppointmentOnly>
      <OpeningTimeDetail>
        <Hour>1</Hour>
        <IsAm>true</IsAm>
        <Minutes>2</Minutes>
      </OpeningTimeDetail>
    </HoursSummaryViewModel>
  </Hours>
  <IsPrimary>true</IsPrimary>
  <IsUseDayLightSaving>true</IsUseDayLightSaving>
  <LastContactCreatedOn>2022-09-26T16:09:18.1785586+00:00</LastContactCreatedOn>
  <LogoPath>sample string 7</LogoPath>
  <MobileNumber>sample string 5</MobileNumber>
  <Name>sample string 4</Name>
  <ParentAccountId>sample string 2</ParentAccountId>
  <PlanId>sample string 10</PlanId>
  <ShortUniqueId>sample string 11</ShortUniqueId>
  <Social>
    <FacebookId>sample string 1</FacebookId>
    <GooglePlusId>sample string 6</GooglePlusId>
    <InstagramId>sample string 4</InstagramId>
    <LinkedInId>sample string 3</LinkedInId>
    <PInterestId>sample string 7</PInterestId>
    <TwitterId>sample string 2</TwitterId>
    <YoutubeId>sample string 5</YoutubeId>
  </Social>
  <SubAccountReferenceId>sample string 12</SubAccountReferenceId>
  <TermsConditions>
    <LeadFormTermsConditions>sample string 1</LeadFormTermsConditions>
    <LeadFormTermsConditionsRawContent>sample string 3</LeadFormTermsConditionsRawContent>
    <OfferTermsConditions>sample string 2</OfferTermsConditions>
    <OfferTermsConditionsRawContent>sample string 4</OfferTermsConditionsRawContent>
  </TermsConditions>
  <TextMessageSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.Campaign">
    <d2p1:FromName>sample string 1</d2p1:FromName>
  </TextMessageSettings>
  <TotalContacts>14</TotalContacts>
  <UserId>sample string 1</UserId>
  <Website>sample string 9</Website>
</SubAccountViewModel>

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.