Trendsic Platform Service

<back to all web services

AgentAgreementDocRequest

The following routes are available for this service:
GET,DELETE,POST,PUT,OPTIONS/v1/AgentAgreementDoc/{AgentRegistrationTempId}
GET,DELETE,POST,PUT,OPTIONS/v1/AgentAgreementDoc
import Foundation
import ServiceStack

public class AgentAgreementDocRequest : Codable
{
    public var agentRegistrationTempId:Int

    required public init(){}
}

public class AgentAgreementDocResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var agentAgreementDisclosureDocs:[AgentAgreementDoc] = []

    required public init(){}
}

public class AgentAgreementDoc : Codable
{
    public var id:Int
    public var applicationId:String
    public var name:String
    public var version:Int
    public var legalRegion:String
    public var section:String
    public var fileExtension:String
    public var fileName:String
    public var order:Int
    public var active:Bool

    required public init(){}
}


Swift AgentAgreementDocRequest 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.

POST /v1/AgentAgreementDoc/{AgentRegistrationTempId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"AgentRegistrationTempId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentAgreementDisclosureDocs":[{"Id":0,"ApplicationId":"String","Name":"String","Version":0,"LegalRegion":"String","Section":"String","FileExtension":"String","FileName":"String","Order":0,"Active":false}]}