Deals
Page number to fetch, 1-indexed. Defaults to 1.
Number of results per page (1-100). Defaults to the API's standard page size if omitted.
Lucene-style filter query (e.g. status:active AND createdAt:[2024-01-01 TO *]). Field names match the Deal object's own fields. This syntax is part of an in-flight migration (see docs/design/lucene-migration-json-filter-spec.md) and may change.
Field name to sort by. One of id, name, value, pipeline, stage, quoteType, leadSource, leadFormKey, owner, jobAddress, jobAddress.address, jobAddress.city, jobAddress.state, jobAddress.zip, timestamp.created, timestamp.updated (aliases: createdDate, updatedDate). pipeline and stage sort by key, owner by first name and jobAddress by street address. createdAt and updatedAt are accepted for timestamp.created and timestamp.updated. A :asc or :desc suffix (e.g. timestamp.updated:desc) sets the direction, and a leading - (e.g. -timestamp.updated) means descending. Either one overrides sortDir, and the suffix wins over the prefix. Any other field returns a 400. Defaults to timestamp.updated.
Sort direction: asc or desc. Only takes effect when sort is set.
List of deals
Bad Request
Not Authorized
Not found
Unexpected error
GET /v2/deals HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"totalRows": 1,
"page": 1,
"perPage": 1,
"rows": [
{
"id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
"name": "New Deal",
"contact": {
"firstName": "Alice",
"lastName": "Smith",
"email": "aliceemail@fakemail.com"
},
"jobAddress": {
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"pipeline": "sales-pipeline",
"stage": "initial-contact",
"leadSource": "Website",
"linkedEstimateIds": [
"estimate-123"
],
"linkedInvoiceIds": [
"invoice-321"
]
}
]
}The unique ID for the Deal. Ignored when creating & updating deals.
The Name of the Deal.
The pipeline this Deal is in
The stage of the pipeline this Deal is in
The monetary value of this Deal
The lead source of this Deal
The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.
Tags associated with this Deal
List of linked Estimate IDs
List of linked Invoice IDs
Details about the new Deal
The unique ID for the Deal. Ignored when creating & updating deals.
The Name of the Deal.
The pipeline this Deal is in
The stage of the pipeline this Deal is in
The monetary value of this Deal
The lead source of this Deal
The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.
Tags associated with this Deal
List of linked Estimate IDs
List of linked Invoice IDs
Bad Request
Not Authorized
Not found
Unexpected error
POST /v2/deals HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 384
{
"id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
"name": "New Deal",
"contact": {
"firstName": "Alice",
"lastName": "Smith",
"email": "aliceemail@fakemail.com"
},
"jobAddress": {
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"pipeline": "sales-pipeline",
"stage": "initial-contact",
"leadSource": "Website",
"linkedEstimateIds": [
"estimate-123"
],
"linkedInvoiceIds": [
"invoice-321"
]
}{
"id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
"name": "New Deal",
"contact": {
"firstName": "Alice",
"lastName": "Smith",
"email": "aliceemail@fakemail.com"
},
"jobAddress": {
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"pipeline": "sales-pipeline",
"stage": "initial-contact",
"leadSource": "Website",
"linkedEstimateIds": [
"estimate-123"
],
"linkedInvoiceIds": [
"invoice-321"
]
}ID of the Deal
Details about the deal
The unique ID for the Deal. Ignored when creating & updating deals.
The Name of the Deal.
The pipeline this Deal is in
The stage of the pipeline this Deal is in
The monetary value of this Deal
The lead source of this Deal
The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.
Tags associated with this Deal
List of linked Estimate IDs
List of linked Invoice IDs
Bad Request
Not Authorized
Not found
Unexpected error
GET /v2/deals/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
"name": "New Deal",
"contact": {
"firstName": "Alice",
"lastName": "Smith",
"email": "aliceemail@fakemail.com"
},
"jobAddress": {
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"pipeline": "sales-pipeline",
"stage": "initial-contact",
"leadSource": "Website",
"linkedEstimateIds": [
"estimate-123"
],
"linkedInvoiceIds": [
"invoice-321"
]
}ID of the Deal
The Name of the Deal.
The pipeline this Deal is in
The stage of the pipeline this Deal is in
The lead source of this Deal
Tags associated with this Deal
The updated deal
The unique ID for the Deal. Ignored when creating & updating deals.
The Name of the Deal.
The pipeline this Deal is in
The stage of the pipeline this Deal is in
The monetary value of this Deal
The lead source of this Deal
The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.
Tags associated with this Deal
List of linked Estimate IDs
List of linked Invoice IDs
Bad Request
Not Authorized
Not found
Unexpected error
PUT /v2/deals/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 268
{
"name": "New Deal",
"contact": {
"firstName": "Alice",
"lastName": "Smith",
"email": "aliceemail@fakemail.com"
},
"jobAddress": {
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"pipeline": "sales-pipeline",
"stage": "initial-contact",
"leadSource": "Website"
}{
"id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
"name": "New Deal",
"contact": {
"firstName": "Alice",
"lastName": "Smith",
"email": "aliceemail@fakemail.com"
},
"jobAddress": {
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"pipeline": "sales-pipeline",
"stage": "initial-contact",
"leadSource": "Website",
"linkedEstimateIds": [
"estimate-123"
],
"linkedInvoiceIds": [
"invoice-321"
]
}ID of the Deal
No Content
No content
Bad Request
Not Authorized
Not found
Unexpected error
DELETE /v2/deals/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Adds a checklist to a deal. It creates one task per checklist entry, in order. The tasks are unassigned and have no due date, the same as adding a checklist in the app. List the available checklists with GET /settings/taskTemplates.
ID of the Deal
The ID of the checklist to add, from GET /settings/taskTemplates.
The checklist and the tasks it created
The ID of the deal the checklist was added to.
The ID of the checklist template that was applied.
The display label of the checklist template.
The ID of this checklist on the deal. Every task in tasks carries it.
Bad Request
Not Authorized
Deal or checklist not found
Unexpected error
POST /v2/deals/{id}/checklists HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"templateId": "job-prep"
}{
"dealId": "text",
"templateId": "text",
"templateLabel": "text",
"checklistId": "text",
"tasks": [
{
"title": "Make the call",
"dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
"notes": "Call the client to see how everything is going.",
"owner": {
"id": "ownerid1234",
"firstName": "John",
"lastName": "Doe",
"email": "johndoefake@fakemail.com"
},
"timestamp": {
"start": 1672531200
}
}
]
}Last updated
Was this helpful?

