Trendsic Platform Service

<back to all web services

ApplicationListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/field/applications
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class ApplicationListRequest
    {
        public virtual int ProjectID { get; set; }
        public virtual int AgreementJobID { get; set; }
        public virtual string FromDate { get; set; }
        public virtual string ToDate { get; set; }
    }

    public partial class ApplicationResponse
    {
        public virtual List<ApplicationView> Applications { get; set; } = [];
        public virtual int ChemicalApplicationID { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    public partial class ApplicationView
    {
        public virtual int ChemicalApplicationID { get; set; }
        public virtual DateTime? AppliedAt { get; set; }
        public virtual string AreaTreated { get; set; }
        public virtual string ProductName { get; set; }
        public virtual string EpaRegistrationNumber { get; set; }
        public virtual decimal? AmountApplied { get; set; }
        public virtual string AmountUnit { get; set; }
        public virtual string Concentration { get; set; }
        public virtual decimal? TreatedQuantity { get; set; }
        public virtual string TreatedUnit { get; set; }
        public virtual string TargetPest { get; set; }
        public virtual string ApplicatorName { get; set; }
        public virtual string ApplicatorLicence { get; set; }
        public virtual decimal? WindSpeedMph { get; set; }
        public virtual string WindDirection { get; set; }
        public virtual decimal? TemperatureF { get; set; }
        public virtual string Notes { get; set; }
        public virtual DateTime? SubmittedAt { get; set; }
        public virtual int? AmendsApplicationID { get; set; }
        public virtual bool IsAmended { get; set; }
    }

}

C# ApplicationListRequest 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/applications HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Applications: 
	[
		{
			ChemicalApplicationID: 0,
			AppliedAt: 0001-01-01,
			AreaTreated: String,
			ProductName: String,
			EpaRegistrationNumber: String,
			AmountApplied: 0,
			AmountUnit: String,
			Concentration: String,
			TreatedQuantity: 0,
			TreatedUnit: String,
			TargetPest: String,
			ApplicatorName: String,
			ApplicatorLicence: String,
			WindSpeedMph: 0,
			WindDirection: String,
			TemperatureF: 0,
			Notes: String,
			SubmittedAt: 0001-01-01,
			AmendsApplicationID: 0,
			IsAmended: False
		}
	],
	ChemicalApplicationID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}