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.*


open class PursuitListRequest
{
}

open class PursuitListResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Pursuits:ArrayList<Pursuit> = ArrayList<Pursuit>()
    open var Summary:PursuitPipelineSummary? = null
}

open class Pursuit
{
    open var PursuitID:Int? = null
    open var PursuitUID:UUID? = null
    open var PursuitNumber:String? = null
    open var Name:String? = null
    open var ClientOwner:String? = null
    open var WorkType:String? = null
    open var Solicitation:String? = null
    open var Location:String? = null
    open var Scope:String? = null
    open var Stage:String? = null
    open var Outcome:String? = null
    open var BidValue:BigDecimal? = null
    open var EstCost:BigDecimal? = null
    open var WinProbability:BigDecimal? = null
    open var CostOfPursuit:BigDecimal? = null
    open var DueDate:Date? = null
    open var EstimatorRfpRef:String? = null
    open var AwardedProjectID:Int? = null
    open var OpenedAt:Date? = null
    open var SubmittedAt:Date? = null
    open var DecidedAt:Date? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
    open var DaysOpen:Int? = null
    open var WeightedValue:BigDecimal? = null
    open var Activity:ArrayList<PursuitActivity> = ArrayList<PursuitActivity>()
}

open class PursuitActivity
{
    open var PursuitActivityID:Int? = null
    open var PursuitID:Int? = null
    open var Kind:String? = null
    open var Label:String? = null
    open var Detail:String? = null
    open var Actor:String? = null
    open var CreatedAt:Date? = null
}

open class PursuitPipelineSummary
{
    open var ActivePursuits:Int? = null
    open var PipelineValue:BigDecimal? = null
    open var WeightedValue:BigDecimal? = null
    open var WonCount:Int? = null
    open var DecidedCount:Int? = null
    open var WinRate:BigDecimal? = null
    open var ClosingThisWeek:Int? = null
}

Kotlin PursuitListRequest DTOs

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

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Pursuits: 
	[
		{
			PursuitID: 0,
			PursuitUID: 00000000000000000000000000000000,
			PursuitNumber: String,
			Name: String,
			ClientOwner: String,
			WorkType: String,
			Solicitation: String,
			Location: String,
			Scope: String,
			Stage: String,
			Outcome: String,
			BidValue: 0,
			EstCost: 0,
			WinProbability: 0,
			CostOfPursuit: 0,
			DueDate: 0001-01-01,
			EstimatorRfpRef: String,
			AwardedProjectID: 0,
			OpenedAt: 0001-01-01,
			SubmittedAt: 0001-01-01,
			DecidedAt: 0001-01-01,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			DaysOpen: 0,
			WeightedValue: 0,
			Activity: 
			[
				{
					PursuitActivityID: 0,
					PursuitID: 0,
					Kind: String,
					Label: String,
					Detail: String,
					Actor: String,
					CreatedAt: 0001-01-01
				}
			]
		}
	],
	Summary: 
	{
		ActivePursuits: 0,
		PipelineValue: 0,
		WeightedValue: 0,
		WonCount: 0,
		DecidedCount: 0,
		WinRate: 0,
		ClosingThisWeek: 0
	}
}