List deals
Returns a paginated list of deals, the deal that most recently moved into its status first.
query Parameters
searchFull-text search across the deal reference, company name and proposal number.
company_idsOnly return deals for these companies. Accepts a comma-separated list of UUIDs.
status_idsOnly return deals in these pipeline statuses. Accepts a comma-separated list of UUIDs.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List deals › Responses
Array of DealListResource
Create a deal
Creates a new deal for a company and contact, optionally with proposal line items. Each item holds one or more priced sub-items. The items can also be added later.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a deal › Request Body
company_idUUID of the company the deal is for.
contact_idUUID of the primary contact for the deal.
referenceShort reference/title of the deal.
chance_of_successEstimated chance of success, 0–100.
informationFree-form internal information about the deal.
project_idsUUIDs of the projects the deal is linked to. Replaces the current links.
subscription_idsUUIDs of the subscriptions the deal is linked to. Replaces the current links.
estimated_priceEstimated deal value excluding tax, at most 10,000,000.
status_idUUID of the pipeline status to start in. Defaults to the first status. To move an existing deal, use the status endpoint.
Proposal line items. The price of a sub-item, the amount of a sub-item and the total of all sub-items are each limited to 10,000,000 excluding tax.
Create a deal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atGet a deal
Returns a single deal by ID, including its line items.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get a deal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atUpdate a deal
Updates an existing deal. Only the fields present in the request are changed. When items is
present it replaces the full set of line items (send existing item and sub-item IDs to keep them).
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a deal › Request Body
company_idUUID of the company the deal is for.
contact_idUUID of the primary contact for the deal.
referenceShort reference/title of the deal.
informationFree-form internal information about the deal.
project_idsUUIDs of the projects the deal is linked to. Replaces the current links.
subscription_idsUUIDs of the subscriptions the deal is linked to. Replaces the current links.
estimated_priceEstimated deal value excluding tax, at most 10,000,000.
chance_of_successEstimated chance of success, 0–100.
Proposal line items. Replaces the current items. The price of a sub-item, the amount of a sub-item and the total of all sub-items are each limited to 10,000,000 excluding tax.
Update a deal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atDelete a deal
Deletes a deal. A deal can no longer be deleted once its proposal has been sent.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a deal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atDuplicate a deal
Creates a copy of the deal (including its items) and returns the new deal.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Duplicate a deal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atUpdate the proposal
Sets the proposal document of the deal together with its validity and attachments. A pdf
proposal is an uploaded PDF that is shown as slides. An html proposal is a page shown full
screen: an HTML start file with what it uses (CSS, scripts, images) in their folders. Upload the
files first as an HTML bundle with its start file (see Upload an HTML bundle, a single document is
a bundle of one index.html) and give its id as html_bundle_id. New files are a new version,
which the customer sees from then on; earlier versions are kept for 90 days (at most 20). The deal
needs a proposal number first.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update the proposal › Request Body
proposal_typeProposal type: pdf or html.
proposal_file_idUUID of an uploaded PDF file. Required when proposal_type is pdf.
html_bundle_idAn HTML bundle of yours that is not shown yet, with the files of the proposal.
expires_after_daysNumber of days the proposal stays valid after it is sent (minimum 7). expires_on is set from it when the proposal is sent.
attachment_idsUUIDs of uploaded files to attach to the proposal.
Update the proposal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atGenerate a proposal number
Generates and assigns a formal proposal number to the deal. Fails if the deal already has one.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Generate a proposal number › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atSend a deal proposal
Sends the proposal. With type mail the proposal is e-mailed to the given contacts. With
type manual it is only marked as sent. The deal must have a proposal, set through the proposal
endpoint.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Send a deal proposal › Request Body
typeHow the proposal is sent: mail or manual.
subjectE-mail subject. Required when type is mail.
messageE-mail message. Required when type is mail.
contact_idsUUIDs of the contacts to e-mail. Required when type is mail.
Send a deal proposal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atList the versions of an HTML proposal
Every upload of new files is a version, newest first: a version put back counts from when it was
put back. The proposal shows the newest. Earlier versions are kept for 90 days (at most 20). Only
for an html proposal.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List the versions of an HTML proposal › Responses
Array of HtmlBundleResource
idurlThe start file, meant for a sandboxed iframe. The other files are next to it at their relative paths. The link is signed and opens the page for at least 12 hours.
entry_pathThe path of the start file within the set.
Every file of the set, sorted by path.
Who uploaded it.
The AI connection it was uploaded through, if any.
created_atupdated_atThe same as created_at: when it was uploaded, or put back last. The versions go by it.
Restore a version of an HTML proposal
Shows an earlier version again, as the newest, so the one it showed before can be put back in turn. Answers with the version.
path Parameters
dealThe deal UUID
versionThe version UUID, as listed by the versions endpoint.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Restore a version of an HTML proposal › Responses
HtmlBundleResource
idurlThe start file, meant for a sandboxed iframe. The other files are next to it at their relative paths. The link is signed and opens the page for at least 12 hours.
entry_pathThe path of the start file within the set.
Every file of the set, sorted by path.
Who uploaded it.
The AI connection it was uploaded through, if any.
created_atupdated_atThe same as created_at: when it was uploaded, or put back last. The versions go by it.
Download a version of an HTML proposal
The files of a version as one zip, in their folder layout, named after the proposal number and when the version was uploaded. Upload it again to open the same files on another start file.
path Parameters
dealThe deal UUID
versionThe version UUID, as listed by the versions endpoint.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Download a version of an HTML proposal › Responses
Copy a version of an HTML proposal
Copies the files of a version into a new HTML bundle of your own that is not shown yet, with the
same start file, to change a few files in it without sending them all again (see Send files to an
HTML bundle and Remove files from an HTML bundle). Then give it as html_bundle_id to make it the
new version. A copy that is never shown is removed after a day. Answers with the new bundle.
path Parameters
dealThe deal UUID
versionThe version UUID, as listed by the versions endpoint, or proposal_html.id for the current one.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Copy a version of an HTML proposal › Responses
HtmlBundleReferenceResource
idcreated_atMove a deal to a status
Moves the deal into the given pipeline status.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Move a deal to a status › Request Body
status_idUUID of the pipeline status to move the deal to.
Move a deal to a status › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atSet the responsible employee
Assigns the employee (identified in the path) as the deal's responsible employee.
path Parameters
dealThe deal UUID
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Set the responsible employee › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atProcess an accepted deal
Processes an accepted deal in one go, with a destination for every accepted line. A
project-revenue line is added to an existing project. A subscription line becomes a new
subscription, which can optionally bill a recurring project. Create the projects beforehand
with the project endpoints. The projects and subscriptions are linked to the deal. Pass
skip as true to only mark the deal as processed. Only deals in the accepted status that
have not been processed yet can be processed.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Process an accepted deal › Request Body
A destination for every accepted line of the deal. Required unless skip is given.
skipMark the deal as processed without creating any revenue.
Process an accepted deal › Responses
DealResource
idreferenceestimated_pricechance_of_successinformationexpires_after_daysexpires_onUntil when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.
is_expiredview_urlhas_signaturetotal_excluding_taxtotal_including_taxhas_proposalproposal_typeThe newest version of an html proposal: its start file for a sandboxed iframe, and its
files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.
numberformatted_numbersent_atprocessed_atin_status_sinceSeconds the deal has spent in each status, keyed by status UUID.
updated_atcreated_atList activities
Returns a paginated list of activities logged on the parent resource, newest first. Activities cover both system-generated events and manually logged remarks.
With include_related the list is the timeline of the resource: its own activities together with
those of the records that belong to it, such as the domain names, applications and mailbox domains
of a website. Each activity then names the record it belongs to in subject.
path Parameters
dealThe deal UUID
query Parameters
typeOnly return activities of this type (for example remark).
include_relatedAlso return the activities of the records that belong to the resource, each naming its record in subject.
sourceWith include_related: only return the activities of one record, as <type>:<id>, for example domain:<uuid>. The record has to be the resource itself or belong to it.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List activities › Responses
Array of ActivityWithSubjectResource
Array of ActivityResource
Log a remark
Logs a manual remark as an activity on the parent resource. The remark may contain basic HTML
(p, br, b, strong, i, em, u, s, ul, ol, li, a, span). Other tags
and attributes are stripped and line breaks become <br>. To mention an employee and notify
them, add a span with a data-employee-id attribute holding the employee's UUID, for example
<span data-employee-id="…">@Jan</span>. The answer names the record in subject, like the
timeline does.
path Parameters
dealThe deal UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Log a remark › Responses
ActivityWithSubjectResource
idtypetitledataThe contact who did it in the customer portal, if any.
The AI connection the activity was done through, if any.
updated_atcreated_atnull when the record is gone