API reference
All operations
OPPORTUNITIES

Adds a competitor entry to an opportunity or sales quote equipment item.

Set `RecordType` and `RecordId` to the record the competitor belongs to (for example `Opportunity` or `SalesQuoteEquipment`). For an opportunity whose status is lost, the entry is marked as the competitor the sale was lost to. For sales quote equipment, the entry is also copied to the other equipment lines on the same quote with the same make and model.

POST/api/v2/opportunities/competitors

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Request body

application/jsonrequired

The competitor entry to create. `CompetitorId` is ignored.

OpportunityCompetitorDto
  • competitorIdinteger · int32
  • recordTypestring
  • recordIdinteger · int32
  • competitorNamestring
  • makestring
  • modelstring
  • serialNostring
  • equipYearstring
  • hoursinteger · int32
  • attachmentsstring
  • optionsstring
  • additionalEquipmentstring
  • commentsstring
  • quotedPricenumber · double
  • ratenumber · double
  • termsstring
  • paymentnumber · double
  • wonAgainstboolean
  • lostToboolean
  • rentalIntervalstring
  • rentalRatenumber · double
  • rentalDurationinteger · int32

Responses

Competitor created successfully.

Standard response envelopeisSuccessmessageerrorsdata

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

dataOpportunityCompetitorDto
  • competitorIdinteger · int32
  • recordTypestring
  • recordIdinteger · int32
  • competitorNamestring
  • makestring
  • modelstring
  • serialNostring
  • equipYearstring
  • hoursinteger · int32
  • attachmentsstring
  • optionsstring
  • additionalEquipmentstring
  • commentsstring
  • quotedPricenumber · double
  • ratenumber · double
  • termsstring
  • paymentnumber · double
  • wonAgainstboolean
  • lostToboolean
  • rentalIntervalstring
  • rentalRatenumber · double
  • rentalDurationinteger · int32