For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Deals

List Deals

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · int32 · min: 1Optional

Page number to fetch, 1-indexed. Defaults to 1.

perPageinteger · int32 · min: 1 · max: 100Optional

Number of results per page (1-100). Defaults to the API's standard page size if omitted.

querystringOptional

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.

sortstringOptional

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.

sortDirstring · enumOptional

Sort direction: asc or desc. Only takes effect when sort is set.

Possible values:
Responses
200

List of deals

application/json
totalRowsnumberOptional
pagenumberOptional
perPagenumberOptional
get/deals
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"
      ]
    }
  ]
}

Create Deal

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstring · uuidOptional

The unique ID for the Deal. Ignored when creating & updating deals.

namestring · nullableOptional

The Name of the Deal.

pipelinestring · nullableOptional

The pipeline this Deal is in

stagestring · nullableOptional

The stage of the pipeline this Deal is in

valuenumber · float · nullableOptional

The monetary value of this Deal

leadSourcestring · nullableOptional

The lead source of this Deal

leadFormKeystring · nullableRead-onlyOptional

The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.

tagsstring[]Optional

Tags associated with this Deal

linkedEstimateIdsstring[]Optional

List of linked Estimate IDs

linkedInvoiceIdsstring[]Optional

List of linked Invoice IDs

Responses
200

Details about the new Deal

application/json
idstring · uuidOptional

The unique ID for the Deal. Ignored when creating & updating deals.

namestring · nullableOptional

The Name of the Deal.

pipelinestring · nullableOptional

The pipeline this Deal is in

stagestring · nullableOptional

The stage of the pipeline this Deal is in

valuenumber · float · nullableOptional

The monetary value of this Deal

leadSourcestring · nullableOptional

The lead source of this Deal

leadFormKeystring · nullableRead-onlyOptional

The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.

tagsstring[]Optional

Tags associated with this Deal

linkedEstimateIdsstring[]Optional

List of linked Estimate IDs

linkedInvoiceIdsstring[]Optional

List of linked Invoice IDs

post/deals
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"
  ]
}

Retrieve Deal

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Deal

Responses
200

Details about the deal

application/json
idstring · uuidOptional

The unique ID for the Deal. Ignored when creating & updating deals.

namestring · nullableOptional

The Name of the Deal.

pipelinestring · nullableOptional

The pipeline this Deal is in

stagestring · nullableOptional

The stage of the pipeline this Deal is in

valuenumber · float · nullableOptional

The monetary value of this Deal

leadSourcestring · nullableOptional

The lead source of this Deal

leadFormKeystring · nullableRead-onlyOptional

The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.

tagsstring[]Optional

Tags associated with this Deal

linkedEstimateIdsstring[]Optional

List of linked Estimate IDs

linkedInvoiceIdsstring[]Optional

List of linked Invoice IDs

get/deals/{id}
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"
  ]
}

Update Deal

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Deal

Body
namestring · nullableOptional

The Name of the Deal.

pipelinestring · nullableOptional

The pipeline this Deal is in

stagestring · nullableOptional

The stage of the pipeline this Deal is in

leadSourcestring · nullableOptional

The lead source of this Deal

tagsstring[]Optional

Tags associated with this Deal

Responses
200

The updated deal

application/json
idstring · uuidOptional

The unique ID for the Deal. Ignored when creating & updating deals.

namestring · nullableOptional

The Name of the Deal.

pipelinestring · nullableOptional

The pipeline this Deal is in

stagestring · nullableOptional

The stage of the pipeline this Deal is in

valuenumber · float · nullableOptional

The monetary value of this Deal

leadSourcestring · nullableOptional

The lead source of this Deal

leadFormKeystring · nullableRead-onlyOptional

The key of the lead form this Deal was created from, if any. Ignored when creating & updating deals.

tagsstring[]Optional

Tags associated with this Deal

linkedEstimateIdsstring[]Optional

List of linked Estimate IDs

linkedInvoiceIdsstring[]Optional

List of linked Invoice IDs

put/deals/{id}
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"
  ]
}

Delete Deal

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Deal

Responses
204

No Content

No content

delete/deals/{id}
DELETE /v2/deals/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Add Checklist to Deal

post

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.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Deal

Body
templateIdstringRequired

The ID of the checklist to add, from GET /settings/taskTemplates.

Responses
200

The checklist and the tasks it created

application/json
dealIdstringRequired

The ID of the deal the checklist was added to.

templateIdstringRequired

The ID of the checklist template that was applied.

templateLabelstringRequired

The display label of the checklist template.

checklistIdstringRequired

The ID of this checklist on the deal. Every task in tasks carries it.

post/deals/{id}/checklists
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?