Trendsic Platform Service

<back to all web services

PursuitListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pursuits
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class PursuitListRequest
    {
        
    }

    public static class PursuitListResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Pursuit> Pursuits = new ArrayList<Pursuit>();
        public PursuitPipelineSummary Summary = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PursuitListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Pursuit> getPursuits() { return Pursuits; }
        public PursuitListResponse setPursuits(ArrayList<Pursuit> value) { this.Pursuits = value; return this; }
        public PursuitPipelineSummary getSummary() { return Summary; }
        public PursuitListResponse setSummary(PursuitPipelineSummary value) { this.Summary = value; return this; }
    }

    public static class Pursuit
    {
        public Integer PursuitID = null;
        public UUID PursuitUID = null;
        public String PursuitNumber = null;
        public String Name = null;
        public String ClientOwner = null;
        public String WorkType = null;
        public String Solicitation = null;
        public String Location = null;
        public String Scope = null;
        public String Stage = null;
        public String Outcome = null;
        public BigDecimal BidValue = null;
        public BigDecimal EstCost = null;
        public BigDecimal WinProbability = null;
        public BigDecimal CostOfPursuit = null;
        public Date DueDate = null;
        public String EstimatorRfpRef = null;
        public Integer AwardedProjectID = null;
        public Date OpenedAt = null;
        public Date SubmittedAt = null;
        public Date DecidedAt = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public Integer DaysOpen = null;
        public BigDecimal WeightedValue = null;
        public ArrayList<PursuitActivity> Activity = new ArrayList<PursuitActivity>();
        
        public Integer getPursuitID() { return PursuitID; }
        public Pursuit setPursuitID(Integer value) { this.PursuitID = value; return this; }
        public UUID getPursuitUID() { return PursuitUID; }
        public Pursuit setPursuitUID(UUID value) { this.PursuitUID = value; return this; }
        public String getPursuitNumber() { return PursuitNumber; }
        public Pursuit setPursuitNumber(String value) { this.PursuitNumber = value; return this; }
        public String getName() { return Name; }
        public Pursuit setName(String value) { this.Name = value; return this; }
        public String getClientOwner() { return ClientOwner; }
        public Pursuit setClientOwner(String value) { this.ClientOwner = value; return this; }
        public String getWorkType() { return WorkType; }
        public Pursuit setWorkType(String value) { this.WorkType = value; return this; }
        public String getSolicitation() { return Solicitation; }
        public Pursuit setSolicitation(String value) { this.Solicitation = value; return this; }
        public String getLocation() { return Location; }
        public Pursuit setLocation(String value) { this.Location = value; return this; }
        public String getScope() { return Scope; }
        public Pursuit setScope(String value) { this.Scope = value; return this; }
        public String getStage() { return Stage; }
        public Pursuit setStage(String value) { this.Stage = value; return this; }
        public String getOutcome() { return Outcome; }
        public Pursuit setOutcome(String value) { this.Outcome = value; return this; }
        public BigDecimal getBidValue() { return BidValue; }
        public Pursuit setBidValue(BigDecimal value) { this.BidValue = value; return this; }
        public BigDecimal getEstCost() { return EstCost; }
        public Pursuit setEstCost(BigDecimal value) { this.EstCost = value; return this; }
        public BigDecimal getWinProbability() { return WinProbability; }
        public Pursuit setWinProbability(BigDecimal value) { this.WinProbability = value; return this; }
        public BigDecimal getCostOfPursuit() { return CostOfPursuit; }
        public Pursuit setCostOfPursuit(BigDecimal value) { this.CostOfPursuit = value; return this; }
        public Date getDueDate() { return DueDate; }
        public Pursuit setDueDate(Date value) { this.DueDate = value; return this; }
        public String getEstimatorRfpRef() { return EstimatorRfpRef; }
        public Pursuit setEstimatorRfpRef(String value) { this.EstimatorRfpRef = value; return this; }
        public Integer getAwardedProjectID() { return AwardedProjectID; }
        public Pursuit setAwardedProjectID(Integer value) { this.AwardedProjectID = value; return this; }
        public Date getOpenedAt() { return OpenedAt; }
        public Pursuit setOpenedAt(Date value) { this.OpenedAt = value; return this; }
        public Date getSubmittedAt() { return SubmittedAt; }
        public Pursuit setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
        public Date getDecidedAt() { return DecidedAt; }
        public Pursuit setDecidedAt(Date value) { this.DecidedAt = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Pursuit setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public Pursuit setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public Pursuit setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public Integer getDaysOpen() { return DaysOpen; }
        public Pursuit setDaysOpen(Integer value) { this.DaysOpen = value; return this; }
        public BigDecimal getWeightedValue() { return WeightedValue; }
        public Pursuit setWeightedValue(BigDecimal value) { this.WeightedValue = value; return this; }
        public ArrayList<PursuitActivity> getActivity() { return Activity; }
        public Pursuit setActivity(ArrayList<PursuitActivity> value) { this.Activity = value; return this; }
    }

    public static class PursuitActivity
    {
        public Integer PursuitActivityID = null;
        public Integer PursuitID = null;
        public String Kind = null;
        public String Label = null;
        public String Detail = null;
        public String Actor = null;
        public Date CreatedAt = null;
        
        public Integer getPursuitActivityID() { return PursuitActivityID; }
        public PursuitActivity setPursuitActivityID(Integer value) { this.PursuitActivityID = value; return this; }
        public Integer getPursuitID() { return PursuitID; }
        public PursuitActivity setPursuitID(Integer value) { this.PursuitID = value; return this; }
        public String getKind() { return Kind; }
        public PursuitActivity setKind(String value) { this.Kind = value; return this; }
        public String getLabel() { return Label; }
        public PursuitActivity setLabel(String value) { this.Label = value; return this; }
        public String getDetail() { return Detail; }
        public PursuitActivity setDetail(String value) { this.Detail = value; return this; }
        public String getActor() { return Actor; }
        public PursuitActivity setActor(String value) { this.Actor = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public PursuitActivity setCreatedAt(Date value) { this.CreatedAt = value; return this; }
    }

    public static class PursuitPipelineSummary
    {
        public Integer ActivePursuits = null;
        public BigDecimal PipelineValue = null;
        public BigDecimal WeightedValue = null;
        public Integer WonCount = null;
        public Integer DecidedCount = null;
        public BigDecimal WinRate = null;
        public Integer ClosingThisWeek = null;
        
        public Integer getActivePursuits() { return ActivePursuits; }
        public PursuitPipelineSummary setActivePursuits(Integer value) { this.ActivePursuits = value; return this; }
        public BigDecimal getPipelineValue() { return PipelineValue; }
        public PursuitPipelineSummary setPipelineValue(BigDecimal value) { this.PipelineValue = value; return this; }
        public BigDecimal getWeightedValue() { return WeightedValue; }
        public PursuitPipelineSummary setWeightedValue(BigDecimal value) { this.WeightedValue = value; return this; }
        public Integer getWonCount() { return WonCount; }
        public PursuitPipelineSummary setWonCount(Integer value) { this.WonCount = value; return this; }
        public Integer getDecidedCount() { return DecidedCount; }
        public PursuitPipelineSummary setDecidedCount(Integer value) { this.DecidedCount = value; return this; }
        public BigDecimal getWinRate() { return WinRate; }
        public PursuitPipelineSummary setWinRate(BigDecimal value) { this.WinRate = value; return this; }
        public Integer getClosingThisWeek() { return ClosingThisWeek; }
        public PursuitPipelineSummary setClosingThisWeek(Integer value) { this.ClosingThisWeek = value; return this; }
    }

}

Java PursuitListRequest 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/pursuits HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PursuitListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Pursuits>
    <Pursuit>
      <Activity>
        <PursuitActivity>
          <Actor>String</Actor>
          <CreatedAt>0001-01-01T00:00:00</CreatedAt>
          <Detail>String</Detail>
          <Kind>String</Kind>
          <Label>String</Label>
          <PursuitActivityID>0</PursuitActivityID>
          <PursuitID>0</PursuitID>
        </PursuitActivity>
      </Activity>
      <AwardedProjectID>0</AwardedProjectID>
      <BidValue>0</BidValue>
      <ClientOwner>String</ClientOwner>
      <CostOfPursuit>0</CostOfPursuit>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <DaysOpen>0</DaysOpen>
      <DecidedAt>0001-01-01T00:00:00</DecidedAt>
      <DueDate>0001-01-01T00:00:00</DueDate>
      <EstCost>0</EstCost>
      <EstimatorRfpRef>String</EstimatorRfpRef>
      <Location>String</Location>
      <Name>String</Name>
      <OpenedAt>0001-01-01T00:00:00</OpenedAt>
      <Outcome>String</Outcome>
      <PursuitID>0</PursuitID>
      <PursuitNumber>String</PursuitNumber>
      <PursuitUID>00000000-0000-0000-0000-000000000000</PursuitUID>
      <Scope>String</Scope>
      <Solicitation>String</Solicitation>
      <Stage>String</Stage>
      <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <WeightedValue>0</WeightedValue>
      <WinProbability>0</WinProbability>
      <WorkType>String</WorkType>
    </Pursuit>
  </Pursuits>
  <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>
  <Summary>
    <ActivePursuits>0</ActivePursuits>
    <ClosingThisWeek>0</ClosingThisWeek>
    <DecidedCount>0</DecidedCount>
    <PipelineValue>0</PipelineValue>
    <WeightedValue>0</WeightedValue>
    <WinRate>0</WinRate>
    <WonCount>0</WonCount>
  </Summary>
</PursuitListResponse>