Trendsic Platform Service

<back to all web services

SchedulerBookRequest

The following routes are available for this service:
POST,PUT,OPTIONS/v1/Scheduler/Book
SchedulerBookRequest Parameters:
NameParameterData TypeRequiredDescription
TimeslotbodySchedulerTimeslotNo
SchedulerTimeslot Parameters:
NameParameterData TypeRequiredDescription
DayformDateTimeNo
TimeformTimeSpanNo
DurationformintNo
StartDateTimeformDateTimeNo
EndDateTimeformDateTimeNo
TimeFriendlyformstringNo
ContactformContactNo
ServiceIdsformList<Guid>No
LocationIdformGuidNo
UnavailableformboolNo
BookedIdsformList<int>No
CalendarIdformGuidNo
SchedulerUrlformstringNo
Contact Parameters:
NameParameterData TypeRequiredDescription
ContactIdformintNo
ContactTypeformintNo
FirstNameformstringNo
LastNameformstringNo
NameformstringNo
RoleformstringNo
TitleformstringNo
EmailWorkformstringNo
EmailPersonalformstringNo
DistrictformstringNo
DistrictIDformintNo
SchoolformstringNo
SchoolIDformlongNo
StateformstringNo
StateNameformstringNo
StateIDformlongNo
CountyIDformlongNo
CountyformstringNo
PhoneformstringNo
DepartmentformstringNo
FlowformstringNo
LastContactformDateTimeNo
DoNotContactformboolNo
ActiveformboolNo
AgentIdformintNo
PhoneAltformstringNo
PeraContactIdformintNo
RoomNumberformstringNo
SourceTypeIdformintNo
SourceTypeDescformstringNo
SourceNoteformstringNo
ContactStatusIdformintNo
ContactStatusDescformstringNo
SSNformstringNo
DateOfBirthformDateTimeNo
DeletedformboolNo
IsSharedformboolNo
address_line1formstringNo
address_cityformstringNo
address_stateformstringNo
address_zipformstringNo
DeletedByformstringNo
DeletedDateTimeUtcformDateTime?No
HasNBCformboolNo
HasFactFinderSheetformboolNo
MiddleInitialformstringNo
TagsformstringNo
DateCreatedformDateTimeNo
PhoneLabelformstringNo
AltPhoneLabelformstringNo
CarriersformstringNo
ContactImageformstringNo
CompanyAffiliationformstringNo
AdditionalInformationformstringNo
HasGiftCardformboolNo
ContactCategoryformintNo
WritingAgentIdformintNo
WritingAgentNameformstringNo
MaritalStatusformstringNo
TotalDebtAmountformdecimalNo
NumberOfDebtAccountsformintNo
FactFinderCodeIdformintNo
BusinessNameformstringNo
DBAformstringNo
ContactGUIDformGuidNo
ProjectEndDateformDateTimeNo
RateformintNo
JobIDformintNo
JobNameformstringNo
JobCountformintNo
LockedformboolNo
LockedByAgentIdformintNo
LockedTimestampformDateTimeNo
InitialsformstringNo
ContactCategoryNameformstringNo
SMSOptInformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/Scheduler/Book HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SchedulerBookRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Timeslot>
    <BookedIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </BookedIds>
    <CalendarId>00000000-0000-0000-0000-000000000000</CalendarId>
    <Contact>
      <Active>false</Active>
      <AdditionalInformation>String</AdditionalInformation>
      <AgentId>0</AgentId>
      <AltPhoneLabel>String</AltPhoneLabel>
      <BusinessName>String</BusinessName>
      <Carriers>String</Carriers>
      <CompanyAffiliation>String</CompanyAffiliation>
      <ContactCategory>0</ContactCategory>
      <ContactCategoryName>String</ContactCategoryName>
      <ContactGUID>00000000-0000-0000-0000-000000000000</ContactGUID>
      <ContactId>0</ContactId>
      <ContactImage>String</ContactImage>
      <ContactStatusDesc>String</ContactStatusDesc>
      <ContactStatusId>0</ContactStatusId>
      <ContactType>0</ContactType>
      <County>String</County>
      <CountyID>0</CountyID>
      <DBA>String</DBA>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <DateOfBirth>0001-01-01T00:00:00</DateOfBirth>
      <Deleted>false</Deleted>
      <DeletedBy>String</DeletedBy>
      <DeletedDateTimeUtc>0001-01-01T00:00:00</DeletedDateTimeUtc>
      <Department>String</Department>
      <District>String</District>
      <DistrictID>0</DistrictID>
      <DoNotContact>false</DoNotContact>
      <EmailPersonal>String</EmailPersonal>
      <EmailWork>String</EmailWork>
      <FactFinderCodeId>0</FactFinderCodeId>
      <FirstName>String</FirstName>
      <Flow>String</Flow>
      <HasFactFinderSheet>false</HasFactFinderSheet>
      <HasGiftCard>false</HasGiftCard>
      <HasNBC>false</HasNBC>
      <Initials>String</Initials>
      <IsShared>false</IsShared>
      <JobCount>0</JobCount>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <LastContact>0001-01-01T00:00:00</LastContact>
      <LastName>String</LastName>
      <Locked>false</Locked>
      <LockedByAgentId>0</LockedByAgentId>
      <LockedTimestamp>0001-01-01T00:00:00</LockedTimestamp>
      <MaritalStatus>String</MaritalStatus>
      <MiddleInitial>String</MiddleInitial>
      <Name>String</Name>
      <NumberOfDebtAccounts>0</NumberOfDebtAccounts>
      <PeraContactId>0</PeraContactId>
      <Phone>String</Phone>
      <PhoneAlt>String</PhoneAlt>
      <PhoneLabel>String</PhoneLabel>
      <ProjectEndDate>0001-01-01T00:00:00</ProjectEndDate>
      <Rate>0</Rate>
      <Role>String</Role>
      <RoomNumber>String</RoomNumber>
      <SMSOptIn>false</SMSOptIn>
      <SSN>String</SSN>
      <School>String</School>
      <SchoolID>0</SchoolID>
      <SourceNote>String</SourceNote>
      <SourceTypeDesc>String</SourceTypeDesc>
      <SourceTypeId>0</SourceTypeId>
      <State>String</State>
      <StateID>0</StateID>
      <StateName>String</StateName>
      <Tags>String</Tags>
      <Title>String</Title>
      <TotalDebtAmount>0</TotalDebtAmount>
      <WritingAgentId>0</WritingAgentId>
      <WritingAgentName>String</WritingAgentName>
      <address_city>String</address_city>
      <address_line1>String</address_line1>
      <address_state>String</address_state>
      <address_zip>String</address_zip>
    </Contact>
    <Day>0001-01-01T00:00:00</Day>
    <Duration>0</Duration>
    <LocationId>00000000-0000-0000-0000-000000000000</LocationId>
    <SchedulerUrl>String</SchedulerUrl>
    <ServiceIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>00000000-0000-0000-0000-000000000000</d3p1:guid>
    </ServiceIds>
    <Time>PT0S</Time>
    <Unavailable>false</Unavailable>
  </Timeslot>
</SchedulerBookRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</int>