| GET,OPTIONS | /v1/dispatch/public/pickup/{SchedulerUrl} |
|---|
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 DispatchNeedView
Public Overridable Property Id As String
Public Overridable Property Label As String
Public Overridable Property [Sub] As String
End Class
Public Partial Class DispatchPickupPageRequest
Public Overridable Property SchedulerUrl As String
End Class
Public Partial Class DispatchPickupPageResponse
Public Overridable Property CompanyName As String
Public Overridable Property Zones As List(Of DispatchZoneView) = New List(Of DispatchZoneView)
Public Overridable Property Needs As List(Of DispatchNeedView) = New List(Of DispatchNeedView)
Public Overridable Property CardEnabled As Boolean
Public Overridable Property PublishableKey As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class DispatchZoneView
Public Overridable Property Zone As String
Public Overridable Property Base As Decimal
Public Overridable Property PerBag As Decimal
Public Overridable Property PremiumUpliftPct As Decimal
Public Overridable Property Drivers As Integer
Public Overridable Property IdleDrivers As Integer
End Class
End Namespace
End Namespace
VB.NET DispatchPickupPageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/dispatch/public/pickup/{SchedulerUrl} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"CompanyName":"String","Zones":[{"Zone":"String","Base":0,"PerBag":0,"PremiumUpliftPct":0,"Drivers":0,"IdleDrivers":0}],"Needs":[{"Id":"String","Label":"String","Sub":"String"}],"CardEnabled":false,"PublishableKey":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}