Trendsic Platform Service

<back to all web services

CourierBookOrderRequest

The following routes are available for this service:
POST,OPTIONS/v1/book/{Slug}/orders
POST,OPTIONS/v1/book/{Slug}/orders/confirm
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 CourierBookOrderRequest
            Public Overridable Property Slug As String
            Public Overridable Property Profile As String
            Public Overridable Property TurnstileToken As String
            Public Overridable Property Level As String
            Public Overridable Property WindowId As String
            Public Overridable Property Recur As String
            Public Overridable Property Address 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 PickupName As String
            Public Overridable Property DropAddress As String
            Public Overridable Property DropUnit As String
            Public Overridable Property DropCity As String
            Public Overridable Property DropZip As String
            Public Overridable Property DropLat As Decimal?
            Public Overridable Property DropLng As Decimal?
            Public Overridable Property RecipientName As String
            Public Overridable Property Units As Integer
            Public Overridable Property Handoff As String
            Public Overridable Property GateCode As String
            Public Overridable Property Note As String
            Public Overridable Property Name As String
            Public Overridable Property Phone As String
            Public Overridable Property Email As String
            Public Overridable Property SmsConsent As Boolean
            Public Overridable Property Terms As Boolean
            Public Overridable Property PaymentMethodId As String
            Public Overridable Property SetupIntentId As String
            Public Overridable Property QuotedTotal As Decimal?
            Public Overridable Property Lang As String
        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
    End Namespace
End Namespace

VB.NET CourierBookOrderRequest DTOs

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

HTTP + CSV

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

POST /v1/book/{Slug}/orders HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Slug":"String","Profile":"String","TurnstileToken":"String","Level":"String","WindowId":"String","Recur":"String","Address":"String","Unit":"String","City":"String","Zip":"String","Lat":0,"Lng":0,"PickupName":"String","DropAddress":"String","DropUnit":"String","DropCity":"String","DropZip":"String","DropLat":0,"DropLng":0,"RecipientName":"String","Units":0,"Handoff":"String","GateCode":"String","Note":"String","Name":"String","Phone":"String","Email":"String","SmsConsent":false,"Terms":false,"PaymentMethodId":"String","SetupIntentId":"String","QuotedTotal":0,"Lang":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Done":false,"NeedsAction":false,"ClientSecret":"String","SetupIntentId":"String","Code":"String","TrackUrl":"String","IcsUrl":"String","WindowText":"String","Promise":"String","Total":0,"PayTiming":"String","CardLast4":"String","Repeats":"String","LinkSentBy":"String","ReopenStep":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}