Trendsic Platform Service

<back to all web services

CustomerAppNotifRequest

The following routes are available for this service:
POST/v1/c/app/notif
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class CourierBookLevel
            Public Overridable Property Code As String
            Public Overridable Property Name As String
            Public Overridable Property Ready As String
            Public Overridable Property WithinMin As Integer
            Public Overridable Property InBy As String
            Public Overridable Property Surcharge As Decimal
            Public Overridable Property Days As List(Of Integer) = New List(Of Integer)
            Public Overridable Property DeadlineMin As Integer?
        End Class

        Public Partial Class CourierBookOrderResponse
            Public Overridable Property Done As Boolean
            Public Overridable Property NeedsAction As Boolean
            Public Overridable Property ClientSecret As String
            Public Overridable Property SetupIntentId As String
            Public Overridable Property Code As String
            Public Overridable Property TrackUrl As String
            Public Overridable Property IcsUrl As String
            Public Overridable Property WindowText As String
            Public Overridable Property Promise As String
            Public Overridable Property Total As Decimal
            Public Overridable Property PayTiming As String
            Public Overridable Property CardLast4 As String
            Public Overridable Property Repeats As String
            Public Overridable Property LinkSentBy As String
            Public Overridable Property ReopenStep As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class CourierBookPageView
            Public Overridable Property Available As Boolean
            Public Overridable Property BookingOn As Boolean
            Public Overridable Property Business As CourierTrackBusiness
            Public Overridable Property Profile As CourierBookProfile
            Public Overridable Property Profiles As List(Of CourierBookProfileLink) = New List(Of CourierBookProfileLink)
            Public Overridable Property CardEnabled As Boolean
            Public Overridable Property PublishableKey As String
            Public Overridable Property AppUrl As String
            Public Overridable Property Today As String
            Public Overridable Property Weekday As Integer
            Public Overridable Property NowMin As Integer
        End Class

        Public Partial Class CourierBookProfile
            Public Overridable Property Code As String
            Public Overridable Property Name As String
            Public Overridable Property Shape As String
            Public Overridable Property Template As String
            Public Overridable Property UnitOne As String
            Public Overridable Property UnitMany As String
            Public Overridable Property UnitOneEs As String
            Public Overridable Property UnitManyEs As String
            Public Overridable Property FacilityNoun As String
            Public Overridable Property FacilityNounEs As String
            Public Overridable Property FacilityName As String
            Public Overridable Property Levels As List(Of CourierBookLevel) = New List(Of CourierBookLevel)
            Public Overridable Property Asap As Boolean
            Public Overridable Property Recurring As Boolean
            Public Overridable Property PayTiming As String
            Public Overridable Property FinalAfterCount As Boolean
            Public Overridable Property CancelFee As Decimal
            Public Overridable Property MissedFee As Decimal
            Public Overridable Property MissedWaitMin As Integer
            Public Overridable Property ServiceArea As List(Of String) = New List(Of String)
            Public Overridable Property Zips As List(Of String) = New List(Of String)
            Public Overridable Property Handoffs As HandoffOptions
        End Class

        Public Partial Class CourierBookProfileLink
            Public Overridable Property Code As String
            Public Overridable Property Name As String
            Public Overridable Property Shape As String
        End Class

        Public Partial Class CourierCustomerRow
            Public Overridable Property ContactId As Integer
            Public Overridable Property Name As String
            Public Overridable Property Phone As String
            Public Overridable Property BillingMode As String
            Public Overridable Property AccountCode As String
            Public Overridable Property Orders As Integer
            Public Overridable Property LastOrderAt As Date?
            Public Overridable Property Unbilled As Integer
            Public Overridable Property UnbilledAmount As Decimal
            Public Overridable Property Cards As Integer
        End Class

        Public Partial Class CourierTrackBusiness
            Public Overridable Property Name As String
            Public Overridable Property Phone As String
        End Class

        Public Partial Class CustomerAppAddress
            Public Overridable Property Id As Integer
            Public Overridable Property Label As String
            Public Overridable Property Street As String
            Public Overridable Property Unit As String
            Public Overridable Property City As String
            Public Overridable Property Zip As String
            Public Overridable Property Lat As Decimal?
            Public Overridable Property Lng As Decimal?
            Public Overridable Property InArea As Boolean
        End Class

        Public Partial Class CustomerAppBoot
            Public Overridable Property Profile As String
            Public Overridable Property Available As Boolean
            Public Overridable Property Reason As String
            Public Overridable Property AuthMethod As String
            Public Overridable Property Slug As String
            Public Overridable Property Page As CourierBookPageView
            Public Overridable Property ManifestUrl As String
        End Class

        Public Partial Class CustomerAppCard
            Public Overridable Property Id As Integer
            Public Overridable Property Label As String
            Public Overridable Property Brand As String
            Public Overridable Property Last4 As String
            Public Overridable Property IsDefault As Boolean
        End Class

        Public Partial Class CustomerAppInvoice
            Public Overridable Property Uid As Guid
            Public Overridable Property Number As String
            Public Overridable Property DateText As String
            Public Overridable Property Total As Decimal
            Public Overridable Property Balance As Decimal
            Public Overridable Property Paid As Boolean
        End Class

        Public Partial Class CustomerAppMe
            Public Overridable Property ContactId As Integer
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property Name As String
            Public Overridable Property Phone As String
            Public Overridable Property NeedsName As Boolean
            Public Overridable Property BillingMode As String
            Public Overridable Property AccountCode As String
            Public Overridable Property Addresses As List(Of CustomerAppAddress) = New List(Of CustomerAppAddress)
            Public Overridable Property Cards As List(Of CustomerAppCard) = New List(Of CustomerAppCard)
            Public Overridable Property Notif As CustomerAppNotif
            Public Overridable Property Orders As List(Of CustomerAppOrder) = New List(Of CustomerAppOrder)
            Public Overridable Property Recurring As List(Of CustomerAppRecurrence) = New List(Of CustomerAppRecurrence)
            Public Overridable Property Invoices As List(Of CustomerAppInvoice) = New List(Of CustomerAppInvoice)
            Public Overridable Property Today As String
            Public Overridable Property NowMin As Integer
        End Class

        Public Partial Class CustomerAppNotif
            Public Overridable Property Texts As Boolean
            Public Overridable Property Push As Boolean
            Public Overridable Property Promos As Boolean
        End Class

        Public Partial Class CustomerAppNotifRequest
            Inherits CustomerAppSessionRequest
            Public Overridable Property Key As String
            Public Overridable Property [On] As Boolean
        End Class

        Public Partial Class CustomerAppOrder
            Public Overridable Property Id As Integer
            Public Overridable Property Code As String
            Public Overridable Property Status As String
            Public Overridable Property State As String
            Public Overridable Property Active As Boolean
            Public Overridable Property LevelCode As String
            Public Overridable Property LevelName As String
            Public Overridable Property Units As Integer
            Public Overridable Property UnitsFound As Integer?
            Public Overridable Property Address As String
            Public Overridable Property Unit As String
            Public Overridable Property Zip As String
            Public Overridable Property DropAddress As String
            Public Overridable Property RecipientName As String
            Public Overridable Property Handoff As String
            Public Overridable Property IsAsap As Boolean
            Public Overridable Property DayIx As Integer
            Public Overridable Property DateText As String
            Public Overridable Property StartMin As Integer?
            Public Overridable Property EndMin As Integer?
            Public Overridable Property DriverFirstName As String
            Public Overridable Property EtaMin As Integer?
            Public Overridable Property Promise As String
            Public Overridable Property PayMode As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property Charged As Decimal?
            Public Overridable Property Tip As Decimal?
            Public Overridable Property CardLast4 As String
            Public Overridable Property RecurrenceId As Integer?
            Public Overridable Property Steps As List(Of CustomerAppStep) = New List(Of CustomerAppStep)
        End Class

        Public Partial Class CustomerAppRecurrence
            Public Overridable Property Id As Integer
            Public Overridable Property Weekday As Integer
            Public Overridable Property StartMin As Integer
            Public Overridable Property EndMin As Integer
            Public Overridable Property Cadence As String
            Public Overridable Property LevelCode As String
            Public Overridable Property Units As Integer
            Public Overridable Property Handoff As String
            Public Overridable Property Address As String
            Public Overridable Property Paused As Boolean
            Public Overridable Property PayMode As String
            Public Overridable Property CardLast4 As String
            Public Overridable Property NextDate As String
            Public Overridable Property SkippedDate As String
            Public Overridable Property AheadDays As Integer
        End Class

        Public Partial Class CustomerAppResponse
            Public Overridable Property Boot As CustomerAppBoot
            Public Overridable Property Customer As CustomerAppMe
            Public Overridable Property Addresses As List(Of CustomerAppAddress) = New List(Of CustomerAppAddress)
            Public Overridable Property Cards As List(Of CustomerAppCard) = New List(Of CustomerAppCard)
            Public Overridable Property Notif As CustomerAppNotif
            Public Overridable Property Recurring As List(Of CustomerAppRecurrence) = New List(Of CustomerAppRecurrence)
            Public Overridable Property Booked As CourierBookOrderResponse
            Public Overridable Property Sent As Boolean
            Public Overridable Property Token As String
            Public Overridable Property NeedsName As Boolean
            Public Overridable Property Name As String
            Public Overridable Property Url As String
            Public Overridable Property ClientSecret As String
            Public Overridable Property PublishableKey As String
            Public Overridable Property Message As String
            Public Overridable Property ReopenStep As String
            Public Overridable Property Customers As List(Of CourierCustomerRow) = New List(Of CourierCustomerRow)
            Public Overridable Property Run As RunResult
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class CustomerAppSessionRequest
            Public Overridable Property Slug As String
            Public Overridable Property Profile As String
        End Class

        Public Partial Class CustomerAppStep
            Public Overridable Property Key As String
            Public Overridable Property Done As Boolean
            Public Overridable Property Time As String
        End Class
    End Namespace
End Namespace

VB.NET CustomerAppNotifRequest DTOs

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/c/app/notif HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CustomerAppNotifRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Profile>String</Profile>
  <Slug>String</Slug>
  <Key>String</Key>
  <On>false</On>
</CustomerAppNotifRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerAppResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Addresses>
    <CustomerAppAddress>
      <City>String</City>
      <Id>0</Id>
      <InArea>false</InArea>
      <Label>String</Label>
      <Lat>0</Lat>
      <Lng>0</Lng>
      <Street>String</Street>
      <Unit>String</Unit>
      <Zip>String</Zip>
    </CustomerAppAddress>
  </Addresses>
  <Booked>
    <CardLast4>String</CardLast4>
    <ClientSecret>String</ClientSecret>
    <Code>String</Code>
    <Done>false</Done>
    <IcsUrl>String</IcsUrl>
    <LinkSentBy>String</LinkSentBy>
    <NeedsAction>false</NeedsAction>
    <PayTiming>String</PayTiming>
    <Promise>String</Promise>
    <ReopenStep>String</ReopenStep>
    <Repeats>String</Repeats>
    <ResponseStatus xmlns:d3p1="http://schemas.servicestack.net/types">
      <d3p1:ErrorCode>String</d3p1:ErrorCode>
      <d3p1:Message>String</d3p1:Message>
      <d3p1:StackTrace>String</d3p1:StackTrace>
      <d3p1:Errors>
        <d3p1:ResponseError>
          <d3p1:ErrorCode>String</d3p1:ErrorCode>
          <d3p1:FieldName>String</d3p1:FieldName>
          <d3p1:Message>String</d3p1:Message>
          <d3p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d3p1:Meta>
        </d3p1:ResponseError>
      </d3p1:Errors>
      <d3p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d3p1:Meta>
    </ResponseStatus>
    <SetupIntentId>String</SetupIntentId>
    <Total>0</Total>
    <TrackUrl>String</TrackUrl>
    <WindowText>String</WindowText>
  </Booked>
  <Boot>
    <AuthMethod>String</AuthMethod>
    <Available>false</Available>
    <ManifestUrl>String</ManifestUrl>
    <Page>
      <AppUrl>String</AppUrl>
      <Available>false</Available>
      <BookingOn>false</BookingOn>
      <Business>
        <Name>String</Name>
        <Phone>String</Phone>
      </Business>
      <CardEnabled>false</CardEnabled>
      <NowMin>0</NowMin>
      <Profile>
        <Asap>false</Asap>
        <CancelFee>0</CancelFee>
        <Code>String</Code>
        <FacilityName>String</FacilityName>
        <FacilityNoun>String</FacilityNoun>
        <FacilityNounEs>String</FacilityNounEs>
        <FinalAfterCount>false</FinalAfterCount>
        <Handoffs>
          <CodeRequired>false</CodeRequired>
          <Desk>false</Desk>
          <Hand>false</Hand>
          <IdRequired>false</IdRequired>
          <Porch>false</Porch>
          <SigRequired>false</SigRequired>
        </Handoffs>
        <Levels>
          <CourierBookLevel>
            <Code>String</Code>
            <Days xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </Days>
            <DeadlineMin>0</DeadlineMin>
            <InBy>String</InBy>
            <Name>String</Name>
            <Ready>String</Ready>
            <Surcharge>0</Surcharge>
            <WithinMin>0</WithinMin>
          </CourierBookLevel>
        </Levels>
        <MissedFee>0</MissedFee>
        <MissedWaitMin>0</MissedWaitMin>
        <Name>String</Name>
        <PayTiming>String</PayTiming>
        <Recurring>false</Recurring>
        <ServiceArea xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </ServiceArea>
        <Shape>String</Shape>
        <Template>String</Template>
        <UnitMany>String</UnitMany>
        <UnitManyEs>String</UnitManyEs>
        <UnitOne>String</UnitOne>
        <UnitOneEs>String</UnitOneEs>
        <Zips xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </Zips>
      </Profile>
      <Profiles>
        <CourierBookProfileLink>
          <Code>String</Code>
          <Name>String</Name>
          <Shape>String</Shape>
        </CourierBookProfileLink>
      </Profiles>
      <PublishableKey>String</PublishableKey>
      <Today>String</Today>
      <Weekday>0</Weekday>
    </Page>
    <Profile>String</Profile>
    <Reason>String</Reason>
    <Slug>String</Slug>
  </Boot>
  <Cards>
    <CustomerAppCard>
      <Brand>String</Brand>
      <Id>0</Id>
      <IsDefault>false</IsDefault>
      <Label>String</Label>
      <Last4>String</Last4>
    </CustomerAppCard>
  </Cards>
  <ClientSecret>String</ClientSecret>
  <Customer>
    <AccountCode>String</AccountCode>
    <Addresses>
      <CustomerAppAddress>
        <City>String</City>
        <Id>0</Id>
        <InArea>false</InArea>
        <Label>String</Label>
        <Lat>0</Lat>
        <Lng>0</Lng>
        <Street>String</Street>
        <Unit>String</Unit>
        <Zip>String</Zip>
      </CustomerAppAddress>
    </Addresses>
    <BillingMode>String</BillingMode>
    <Cards>
      <CustomerAppCard>
        <Brand>String</Brand>
        <Id>0</Id>
        <IsDefault>false</IsDefault>
        <Label>String</Label>
        <Last4>String</Last4>
      </CustomerAppCard>
    </Cards>
    <ContactId>0</ContactId>
    <FirstName>String</FirstName>
    <Invoices>
      <CustomerAppInvoice>
        <Balance>0</Balance>
        <DateText>String</DateText>
        <Number>String</Number>
        <Paid>false</Paid>
        <Total>0</Total>
        <Uid>00000000-0000-0000-0000-000000000000</Uid>
      </CustomerAppInvoice>
    </Invoices>
    <LastName>String</LastName>
    <Name>String</Name>
    <NeedsName>false</NeedsName>
    <Notif>
      <Promos>false</Promos>
      <Push>false</Push>
      <Texts>false</Texts>
    </Notif>
    <NowMin>0</NowMin>
    <Orders>
      <CustomerAppOrder>
        <Active>false</Active>
        <Address>String</Address>
        <Amount>0</Amount>
        <CardLast4>String</CardLast4>
        <Charged>0</Charged>
        <Code>String</Code>
        <DateText>String</DateText>
        <DayIx>0</DayIx>
        <DriverFirstName>String</DriverFirstName>
        <DropAddress>String</DropAddress>
        <EndMin>0</EndMin>
        <EtaMin>0</EtaMin>
        <Handoff>String</Handoff>
        <Id>0</Id>
        <IsAsap>false</IsAsap>
        <LevelCode>String</LevelCode>
        <LevelName>String</LevelName>
        <PayMode>String</PayMode>
        <Promise>String</Promise>
        <RecipientName>String</RecipientName>
        <RecurrenceId>0</RecurrenceId>
        <StartMin>0</StartMin>
        <State>String</State>
        <Status>String</Status>
        <Steps>
          <CustomerAppStep>
            <Done>false</Done>
            <Key>String</Key>
            <Time>String</Time>
          </CustomerAppStep>
        </Steps>
        <Tip>0</Tip>
        <Unit>String</Unit>
        <Units>0</Units>
        <UnitsFound>0</UnitsFound>
        <Zip>String</Zip>
      </CustomerAppOrder>
    </Orders>
    <Phone>String</Phone>
    <Recurring>
      <CustomerAppRecurrence>
        <Address>String</Address>
        <AheadDays>0</AheadDays>
        <Cadence>String</Cadence>
        <CardLast4>String</CardLast4>
        <EndMin>0</EndMin>
        <Handoff>String</Handoff>
        <Id>0</Id>
        <LevelCode>String</LevelCode>
        <NextDate>String</NextDate>
        <Paused>false</Paused>
        <PayMode>String</PayMode>
        <SkippedDate>String</SkippedDate>
        <StartMin>0</StartMin>
        <Units>0</Units>
        <Weekday>0</Weekday>
      </CustomerAppRecurrence>
    </Recurring>
    <Today>String</Today>
  </Customer>
  <Customers>
    <CourierCustomerRow>
      <AccountCode>String</AccountCode>
      <BillingMode>String</BillingMode>
      <Cards>0</Cards>
      <ContactId>0</ContactId>
      <LastOrderAt>0001-01-01T00:00:00</LastOrderAt>
      <Name>String</Name>
      <Orders>0</Orders>
      <Phone>String</Phone>
      <Unbilled>0</Unbilled>
      <UnbilledAmount>0</UnbilledAmount>
    </CourierCustomerRow>
  </Customers>
  <Message>String</Message>
  <Name>String</Name>
  <NeedsName>false</NeedsName>
  <Notif>
    <Promos>false</Promos>
    <Push>false</Push>
    <Texts>false</Texts>
  </Notif>
  <PublishableKey>String</PublishableKey>
  <Recurring>
    <CustomerAppRecurrence>
      <Address>String</Address>
      <AheadDays>0</AheadDays>
      <Cadence>String</Cadence>
      <CardLast4>String</CardLast4>
      <EndMin>0</EndMin>
      <Handoff>String</Handoff>
      <Id>0</Id>
      <LevelCode>String</LevelCode>
      <NextDate>String</NextDate>
      <Paused>false</Paused>
      <PayMode>String</PayMode>
      <SkippedDate>String</SkippedDate>
      <StartMin>0</StartMin>
      <Units>0</Units>
      <Weekday>0</Weekday>
    </CustomerAppRecurrence>
  </Recurring>
  <ReopenStep>String</ReopenStep>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Run>
    <Invoices>0</Invoices>
    <Orders>0</Orders>
    <Skipped xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Skipped>
    <Total>0</Total>
  </Run>
  <Sent>false</Sent>
  <Token>String</Token>
  <Url>String</Url>
</CustomerAppResponse>