Trendsic Platform Service

<back to all web services

FormFillStatusRequest

The following routes are available for this service:
GET/v1/formfill/status/{Token}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormFillStatusRequest
    {
        public String Token = null;
        
        public String getToken() { return Token; }
        public FormFillStatusRequest setToken(String value) { this.Token = value; return this; }
    }

    public static class FormFillStatusResponse
    {
        public String Number = null;
        public String FormName = null;
        public String Noun = null;
        public String TenantName = null;
        public String Stage = null;
        public String StageKind = null;
        public ArrayList<FormFillStage> Stages = new ArrayList<FormFillStage>();
        public ArrayList<FormFillStageSeen> Seen = new ArrayList<FormFillStageSeen>();
        public Date SubmittedAt = null;
        public ArrayList<FormFillReceiptLine> Receipt = new ArrayList<FormFillReceiptLine>();
        public Boolean CanWithdraw = null;
        public String Lang = null;
        public String NounEs = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getNumber() { return Number; }
        public FormFillStatusResponse setNumber(String value) { this.Number = value; return this; }
        public String getFormName() { return FormName; }
        public FormFillStatusResponse setFormName(String value) { this.FormName = value; return this; }
        public String getNoun() { return Noun; }
        public FormFillStatusResponse setNoun(String value) { this.Noun = value; return this; }
        public String getTenantName() { return TenantName; }
        public FormFillStatusResponse setTenantName(String value) { this.TenantName = value; return this; }
        public String getStage() { return Stage; }
        public FormFillStatusResponse setStage(String value) { this.Stage = value; return this; }
        public String getStageKind() { return StageKind; }
        public FormFillStatusResponse setStageKind(String value) { this.StageKind = value; return this; }
        public ArrayList<FormFillStage> getStages() { return Stages; }
        public FormFillStatusResponse setStages(ArrayList<FormFillStage> value) { this.Stages = value; return this; }
        public ArrayList<FormFillStageSeen> getSeen() { return Seen; }
        public FormFillStatusResponse setSeen(ArrayList<FormFillStageSeen> value) { this.Seen = value; return this; }
        public Date getSubmittedAt() { return SubmittedAt; }
        public FormFillStatusResponse setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
        public ArrayList<FormFillReceiptLine> getReceipt() { return Receipt; }
        public FormFillStatusResponse setReceipt(ArrayList<FormFillReceiptLine> value) { this.Receipt = value; return this; }
        public Boolean isCanWithdraw() { return CanWithdraw; }
        public FormFillStatusResponse setCanWithdraw(Boolean value) { this.CanWithdraw = value; return this; }
        public String getLang() { return Lang; }
        public FormFillStatusResponse setLang(String value) { this.Lang = value; return this; }
        public String getNounEs() { return NounEs; }
        public FormFillStatusResponse setNounEs(String value) { this.NounEs = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormFillStatusResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormFillStage
    {
        public String Id = null;
        public String Label = null;
        public String Tone = null;
        public String Kind = null;
        
        public String getId() { return Id; }
        public FormFillStage setId(String value) { this.Id = value; return this; }
        public String getLabel() { return Label; }
        public FormFillStage setLabel(String value) { this.Label = value; return this; }
        public String getTone() { return Tone; }
        public FormFillStage setTone(String value) { this.Tone = value; return this; }
        public String getKind() { return Kind; }
        public FormFillStage setKind(String value) { this.Kind = value; return this; }
    }

    public static class FormFillStageSeen
    {
        public String Id = null;
        public Date At = null;
        
        public String getId() { return Id; }
        public FormFillStageSeen setId(String value) { this.Id = value; return this; }
        public Date getAt() { return At; }
        public FormFillStageSeen setAt(Date value) { this.At = value; return this; }
    }

    public static class FormFillReceiptLine
    {
        public String Channel = null;
        public String To = null;
        public String Outcome = null;
        
        public String getChannel() { return Channel; }
        public FormFillReceiptLine setChannel(String value) { this.Channel = value; return this; }
        public String getTo() { return To; }
        public FormFillReceiptLine setTo(String value) { this.To = value; return this; }
        public String getOutcome() { return Outcome; }
        public FormFillReceiptLine setOutcome(String value) { this.Outcome = value; return this; }
    }

}

Java FormFillStatusRequest DTOs

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

HTTP + XML

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

GET /v1/formfill/status/{Token} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormFillStatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CanWithdraw>false</CanWithdraw>
  <FormName>String</FormName>
  <Lang>String</Lang>
  <Noun>String</Noun>
  <NounEs>String</NounEs>
  <Number>String</Number>
  <Receipt>
    <FormFillReceiptLine>
      <Channel>String</Channel>
      <Outcome>String</Outcome>
      <To>String</To>
    </FormFillReceiptLine>
  </Receipt>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Seen>
    <FormFillStageSeen>
      <At>0001-01-01T00:00:00</At>
      <Id>String</Id>
    </FormFillStageSeen>
  </Seen>
  <Stage>String</Stage>
  <StageKind>String</StageKind>
  <Stages>
    <FormFillStage>
      <Id>String</Id>
      <Kind>String</Kind>
      <Label>String</Label>
      <Tone>String</Tone>
    </FormFillStage>
  </Stages>
  <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
  <TenantName>String</TenantName>
</FormFillStatusResponse>