| GET,OPTIONS | /v1/field/application/prefill |
|---|
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 ApplicationPrefillRequest
{
public virtual int AgreementJobID { get; set; }
public virtual int JobID { get; set; }
public virtual int ProjectID { get; set; }
}
public partial class ApplicationPrefillResponse
{
public virtual List<ApplicationProduct> Products { get; set; } = [];
public virtual int ApplicatorContactID { get; set; }
public virtual string ApplicatorName { get; set; }
public virtual string ApplicatorLicence { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class ApplicationProduct
{
public virtual int MaterialID { get; set; }
public virtual string ProductName { get; set; }
public virtual string EpaRegistrationNumber { get; set; }
public virtual bool IsRestrictedUse { get; set; }
public virtual string SignalWord { get; set; }
public virtual int? ReEntryIntervalHours { get; set; }
public virtual decimal? DefaultRate { get; set; }
public virtual string RateUnit { get; set; }
}
}
C# ApplicationPrefillRequest DTOs
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 /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
}
}
}