latestOpenAPI 3.0.12026-08-192092911.2 MB

916e669fc527

SalesOpportunities

Create a sales opportunity

Create a new sales opportunity (required scope finance:write)

post/v1/finance/salesOpportunities

Headers

Customer-Idinteger required

The customer identifier

Request body

contactIdinteger

The unique identifier of the contact associated with this sales opportunity

subjectstring

The subject of the sales opportunity

status'created' | 'onHold' | 'completedWon' | 'completedLost'

Represents the status of a sales opportunity.<p>Possible values:</p><ul><li><b>created</b>: The sales opportunity has been created.</li><li><b>onHold</b>: The sales opportunity is on hold.</li><li><b>completedWon</b>: The sales opportunity has been completed and won.</li><li><b>completedLost</b>: The sales opportunity has been completed and lost.</li></ul>

dueAtstring date-time

The due date of the sales opportunity

stageIdinteger

The unique identifier of the stage associated with the sales opportunity

probabilityIdinteger

The unique identifier of the probability associated with the sales opportunity

notesstring nullable

Notes associated with the sales opportunity

referencestring nullable

The reference for the sales opportunity

Example request

{
  "contactId": 67890,
  "subject": "New office equipment deal",
  "status": "created",
  "dueAt": "2025-06-30T00:00:00.0000000+00:00",
  "stageId": 3,
  "probabilityId": 2,
  "notes": "Customer is interested in bulk pricing",
  "reference": "SO-2025-001",
  "customFields": [
    {
      "definitionId": 5514123,
      "value": "High net worth"
    }
  ]
}

Response

Created

idinteger

Identifier of the newly created record