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
import Foundation
import ServiceStack

public class ApplicationPrefillRequest : Codable
{
    public var agreementJobID:Int
    public var jobID:Int
    public var projectID:Int

    required public init(){}
}

public class ApplicationPrefillResponse : Codable
{
    public var products:[ApplicationProduct] = []
    public var applicatorContactID:Int
    public var applicatorName:String
    public var applicatorLicence:String
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class ApplicationProduct : Codable
{
    public var materialID:Int
    public var productName:String
    public var epaRegistrationNumber:String
    public var isRestrictedUse:Bool
    public var signalWord:String
    public var reEntryIntervalHours:Int?
    public var defaultRate:Double?
    public var rateUnit:String

    required public init(){}
}


Swift ApplicationPrefillRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}