| GET,OPTIONS | /v1/book/{Slug} |
|---|
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 CourierBookPageRequest
Public Overridable Property Slug As String
Public Overridable Property Profile As String
End Class
Public Partial Class CourierBookPageResponse
Public Overridable Property Page As CourierBookPageView
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 CourierTrackBusiness
Public Overridable Property Name As String
Public Overridable Property Phone As String
End Class
End Namespace
End Namespace
VB.NET CourierBookPageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/book/{Slug} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Page":{"Available":false,"BookingOn":false,"Business":{"Name":"String","Phone":"String"},"Profile":{"Code":"String","Name":"String","Shape":"String","Template":"String","UnitOne":"String","UnitMany":"String","UnitOneEs":"String","UnitManyEs":"String","FacilityNoun":"String","FacilityNounEs":"String","FacilityName":"String","Levels":[{"Code":"String","Name":"String","Ready":"String","WithinMin":0,"InBy":"String","Surcharge":0,"Days":[0],"DeadlineMin":0}],"Asap":false,"Recurring":false,"PayTiming":"String","FinalAfterCount":false,"CancelFee":0,"MissedFee":0,"MissedWaitMin":0,"ServiceArea":["String"],"Zips":["String"],"Handoffs":{"Hand":false,"Porch":false,"Desk":false,"SigRequired":false,"IdRequired":false,"CodeRequired":false}},"Profiles":[{"Code":"String","Name":"String","Shape":"String"}],"CardEnabled":false,"PublishableKey":"String","AppUrl":"String","Today":"String","Weekday":0,"NowMin":0},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}