| GET,OPTIONS | /portal/{Token}/visits |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CustomerVisit() =
member val AgreementJobID:Int32 = new Int32() with get,set
member val VisitDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val CompletedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ServiceName:String = null with get,set
member val CrewNotes:String = null with get,set
[<AllowNullLiteral>]
type CustomerVisitPhoto() =
member val ProjectLocationAttachmentID:Int32 = new Int32() with get,set
member val AgreementJobID:Nullable<Int32> = new Nullable<Int32>() with get,set
member val DocTitle:String = null with get,set
member val MimeType:String = null with get,set
member val UploadDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type PortalVisitsResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Visits:ResizeArray<CustomerVisit> = new ResizeArray<CustomerVisit>() with get,set
member val Photos:ResizeArray<CustomerVisitPhoto> = new ResizeArray<CustomerVisitPhoto>() with get,set
[<AllowNullLiteral>]
type PortalVisitsRequest() =
member val Token:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /portal/{Token}/visits HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Visits:
[
{
AgreementJobID: 0,
VisitDate: 0001-01-01,
CompletedAt: 0001-01-01,
ServiceName: String,
CrewNotes: String
}
],
Photos:
[
{
ProjectLocationAttachmentID: 0,
AgreementJobID: 0,
DocTitle: String,
MimeType: String,
UploadDate: 0001-01-01
}
]
}