API reference
All operations
DEAL

Partially updates an existing deal.

Only the properties named in `updatedFields` are changed (names are case-insensitive); other properties in the body are ignored. Supported names: `Identifier`, `QuotedDeliveryDate`, `TargetDeliveryDate`, `TargetDeliveryDateComments`, `ProjectedDeliveryDate`, `ProjectedDeliveryDateComments`, `AttachmentDeliveryDate`, `AttachmentDeliveryDateComments`, `SaleTypeID`, `TransactionTypeID`, `FinanceTerm`, `WarrantyTerm`, `SellPrice`, `ActualProfitMargin`, `MonthlyPayment`, `InterestRate`, `EquipmentMake`, `EquipmentModel`, `EquipmentDescription`, `EquipmentSerialNo` and `EquipmentStockNo`; unknown names are ignored. Dates are stored without a time. Equipment and pricing fields apply to the deal's first equipment line. Entries in `udfs` are always applied, matched by `fieldName`; unknown field names are skipped. After saving, the deal's task list is re-evaluated.

PATCH/api/v2/deals/{dealId}

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentialsAPI key

Parameters

dealIdpathinteger · int32required

The ID of the deal to update.

Request body

application/jsonrequired

The list of fields to update, their new values, and optional user-defined field values.

UpdateDealRequest
  • updatedFieldsstring[]
  • identifierstring
  • quotedDeliveryDatestring · date-timenullable
  • targetDeliveryDatestring · date-timenullable
  • targetDeliveryDateCommentsstring
  • projectedDeliveryDatestring · date-timenullable
  • projectedDeliveryDateCommentsstring
  • attachmentDeliveryDatestring · date-timenullable
  • attachmentDeliveryDateCommentsstring
  • saleTypeIDinteger · int32
  • transactionTypeIDinteger · int32
  • financeTermstring
  • warrantyTermstring
  • creditReleaseNostring
  • sellPricenumber · double
  • actualProfitMarginnumber · double
  • monthlyPaymentnumber · double
  • interestRatenumber · double
  • equipmentMakestring
  • equipmentModelstring
  • equipmentDescriptionstring
  • equipmentSerialNostring
  • equipmentStockNostring

Responses

Deal updated.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

databoolean
boolean