Trendsic Platform Service

<back to all web services

ApplicationPrefillRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/field/application/prefill
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 ApplicationPrefillRequest
            Public Overridable Property AgreementJobID As Integer
            Public Overridable Property JobID As Integer
            Public Overridable Property ProjectID As Integer
        End Class

        Public Partial Class ApplicationPrefillResponse
            Public Overridable Property Products As List(Of ApplicationProduct) = New List(Of ApplicationProduct)
            Public Overridable Property ApplicatorContactID As Integer
            Public Overridable Property ApplicatorName As String
            Public Overridable Property ApplicatorLicence As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class ApplicationProduct
            Public Overridable Property MaterialID As Integer
            Public Overridable Property ProductName As String
            Public Overridable Property EpaRegistrationNumber As String
            Public Overridable Property IsRestrictedUse As Boolean
            Public Overridable Property SignalWord As String
            Public Overridable Property ReEntryIntervalHours As Integer?
            Public Overridable Property DefaultRate As Decimal?
            Public Overridable Property RateUnit As String
        End Class
    End Namespace
End Namespace

VB.NET ApplicationPrefillRequest DTOs

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

HTTP + JSV

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

GET /v1/field/application/prefill HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Products: 
	[
		{
			MaterialID: 0,
			ProductName: String,
			EpaRegistrationNumber: String,
			IsRestrictedUse: False,
			SignalWord: String,
			ReEntryIntervalHours: 0,
			DefaultRate: 0,
			RateUnit: String
		}
	],
	ApplicatorContactID: 0,
	ApplicatorName: String,
	ApplicatorLicence: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}