Create deal
Changed onAdds a deal to the pipeline for a contact. It starts in the first stage unless stage names another, and goes last in its stage. Give next_step and next_step_due_on to get reminded to follow up.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Contact ID (con_...) the deal is with
Expected value in the currency's smallest unit (cents)
When you expect the deal to close, as YYYY-MM-DD. A value that isn't a date is refused with 422.
What the deal is about. Running updates go on its timeline: POST /activities with deal.
The next thing to do on the deal, e.g. "Call back about the roof size"
When the next step is due, as YYYY-MM-DD. The team is reminded that morning, in the business's time zone, while the deal is open. A value that isn't a date is refused with 422.
Starting stage, on create only. A stage key from GET /deal_stages: one of the account's own stages, or won or lost. Defaults to the first stage. Use POST /deals/{id}/move to change it later.
Why the deal was lost, on create with stage: lost only
Response
Deal created
ID by default, full object when expanded
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
4 more changes in this revision
- warning