Deals

Create deal stage

Changed on

Adds an open stage to the pipeline, last unless position says otherwise. An account has at most 12 open stages. Answers 422 when the name is taken or the pipeline is full.

post/deal_stages

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

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

DealStageCreateRequest required
name, string required

What the stage is called on the board. Unique in the account, and not Won or Lost.

key, string

The stage's id in the API, e.g. site_visit. Fixed once created. Defaults to one derived from name.

position, integer

1-based place among the open stages. Omit to keep it where it is, or to add a new stage last.

quote_sent, boolean

true makes this the stage a deal moves to when one of its quotes is sent. Exactly one stage has it, so setting it takes it from the stage that had it. false is ignored.

Response

Stage created

DealStage required
object, string required
id, string required
name, string required
position, integer required
quote_sent, boolean required
open, boolean required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision