Skip to content

Preview what winning a deal does

GET
/deals/{id}/won-plan
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/deals/example/won-plan \
--header 'Authorization: Bearer <token>'

Returns the workspace’s won-deal settings, the latest accepted estimate winning would convert, and one step per reaction (promote the company, open the order, draft the invoice, start the kickoff project, propose its team and managers, create its Discord channel, add the team-only tasks for the client’s accesses, invite the primary contact, email the service intake, add the manual setup items to the company’s onboarding checklist) saying whether it will run and why. Read-only; winning is POST /deals/{id}/win. Requires deals.view.

id
required

Deal identifier (CUID2).

string
>= 1 characters

Deal identifier (CUID2).

What winning the deal does.

Media typeapplication/json
object
data
required
object
acceptedEstimate
required

The latest accepted estimate winning converts, or null.

Any of:
object
currency
required
string
id
required
string
number
required
string
total
required
number
kickoff

What winning asks about the kickoff project; null when none is set on win or the deal already has one. Absent on an older server.

Any of:
object
canCreateProject

Whether the caller may start a new project; without it only companyProjects can be chosen. Absent on an older server.

boolean
companyProjects
required

The company’s active projects the caller reaches and the deal can join, most recently updated first.

Array<object>
object
id
required
string
name
required
string
defaultProjectId
required

The project offered by default, or null when a new one is.

string | null
suggestedProjectName
required

The name a new kickoff project is offered with: the company’s, followed by a number when one of its projects already has that name.

string
settings
required
object
createAccessTasksOnWon

Absent on a server older than this setting.

boolean
createDiscordChannelOnWon

Absent on a server older than this setting.

boolean
createKickoffOnWon

Absent on a server older than this setting.

boolean
createOrderOnWon
required
boolean
defaultOwnerMemberId
required
string | null
designNoticeRoleId

Absent on a server older than this setting.

string | null
designProjectTypeIds

The project types whose won deals need design. Absent on a server older than this setting, and in the won-deal plan.

Array<string>
draftInvoiceOnWon
required
boolean
draftTasksFromSowOnWon

Absent on a server older than this setting.

boolean
handoffNoticeRoleId

Absent on a server older than this setting.

string | null
invitePortalOnWon
required
boolean
kickoffAccesses

The accesses the kickoff asks the client for. Absent on a server older than this setting, and in the won-deal plan.

Array<string>
onboardingProjectTemplateId
required
string | null
openSetupItemsOnWon

Absent on a server older than this setting.

boolean
promoteOnWon
required
boolean
proposeAssignmentOnWon

Absent on a server older than this setting.

boolean
sendIntakeOnWon
required
boolean
suggestWonOnSigned
required
boolean
winOnFirstPayment

Absent on a server older than this setting.

boolean
winOnSigned

Absent on a server older than this setting.

boolean
steps
required
Array<object>
object
key
required
string
Allowed values: promote order invoice kickoff sowTasks assignment discord repository accesses invite intake vault checklist
summary
required
string
willRun
required
boolean
suggestedOrderName

The short title the order the win opens takes unless orderName changes it, by default the name the workspace’s order name template gives an Hour block starting today (for example Hour block | Nov 28, 2026); null when no order opens. Absent on an older server.

string | null

Example

{
"data": {
"steps": [
{
"key": "promote"
}
]
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.