Skip to main content
GET
Get Opportunity

Authorizations

Authorization
string
header
required

HTTP Bearer Authentication

Path Parameters

opportunityId
string
required

Query Parameters

includeFiles
boolean
default:true

Whether to include the source files. Set false when you only need the record.

includeLineItems
boolean
default:true

Whether to include parsed purchase-order line items. Set false to skip an extra lookup.

Response

The opportunity with its files and line items

opportunityId
string<uuid>
required
name
string
required
type
enum<string>
required

Document type. Selling is the wire name for an RFP

Available options:
Selling,
PurchaseOrder,
Contract,
SalesProposal,
BoardMeeting,
StrategicPlan,
CapitalImprovementPlan,
AnnualFinancialReport,
BoardMeetingAgenda,
BoardMeetingAgendaPacket,
ProposedBudget,
Budget,
BudgetAmendment
buyer
OpportunityBuyer · object
required

Parent of the buyer, when the buyer sits under one (a district over a school)

createdAt
string<date-time>
required

When Starbridge ingested the opportunity

updatedAt
string<date-time>
required

When Starbridge last updated the opportunity

url
string
required

Starbridge dashboard link that opens this opportunity. Give it to the user when they ask for a link to the opportunity; sourceUrl fields point at the buyer's original documents instead.

summary
string | null

Full summary of the document — not truncated, unlike the one searchOpportunities returns

parentBuyer
OpportunityBuyer · object | null

Parent of the buyer, when the buyer sits under one (a district over a school)

sellerId
string<uuid> | null

Seller the opportunity was awarded to, for a purchase order or contract

sellerName
string | null

Name of the seller the opportunity was awarded to

purchaseAmount
integer | null

Purchase amount in whole currency units, when the document carries one

oneTimeCost
integer | null

One-time cost extracted from the document

annualCost
integer | null

Recurring annual cost extracted from the document

fromDate
string | null
untilDate
string | null
status
enum<string> | null

Past or Future, derived from untilDate — Future means the deadline has not passed

Available options:
Future,
NextTwoYears,
NextYear,
NextNineMonths,
NextSixMonths,
NextThreeMonths,
NextTwoMonths,
NextOneMonth,
NextSixtyDays,
NextThirtyDays,
NextSevenDays,
NextOneDay,
Present,
LastOneDay,
LastSevenDays,
LastThirtyDays,
LastSixtyDays,
LastOneMonths,
LastTwoMonths,
LastThreeMonths,
LastSixMonths,
LastNineMonths,
LastYear,
LastTwoYears,
Past
rfpIds
string<uuid>[]

Ids of the RFP records bundled into this opportunity

purchaseOrderIds
string<uuid>[]

Ids of the purchase-order records bundled into this opportunity

files
OpportunityFile · object[] | null

Source files behind the opportunity. Null when includeFiles=false

lineItems
LineItem · object[] | null

Purchase-order line items parsed from the files, oldest first, from at most 200 purchase orders. Null when includeLineItems=false, empty when the opportunity has no parsed purchase orders. purchaseAmount here is in whole currency units, like the opportunity's own purchaseAmount.