Method create.sales_funnel
Description Creating a sales funnel and its stages
Available to Agent, Client

Request parameters

Name Type Required Description
access_token string yes Authentication session key
user_id number no Unique user identifier of the agent client on behalf of which the request is made
Is required for the agent
To obtain a list of client users, you must use the method "get.customer_users"
ext_id string yes Unique external identifier of the sales funnel
name string yes Sales funnel name
Sales funnel stages
stages object yes
success object yes Successful stage of the sales funnel
ext_id string yes External stage identifier
name string yes Stage name
failed object yes Failed stage of the sales funnel
ext_id string yes External stage identifier
name string yes Stage name
in_process array yesList of intermediate stages
Minimum 1, maximum 100 stages in one funnel
ext_id string yes External stage identifier
name string yes Stage name
order number yes Stage number
maximum value 10000

Response parameters

Title Type Required Description
ext_id string yes Funnel unique identifier

JSON request structure```json

{ "jsonrpc": "2.0", "id": "number", "method": "create.sales_funnel", "params": { "access_token": "string", "user_id": "number", "ext_id": "string", "name": "string", "stages": { "success": { "ext_id": "string", "name": "string" }, "failed": { "ext_id": "string", "name": "string" }, "in_process": [ { "ext_id": "string", "name": "string", "order": "number" } ] } } }

### JSON response structure```JSON
{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
      "data": {
          "ext_id": "string",
          },
      "metadata": "object"
  }
}

List of returned errors

See the section "List of errors for methods with the create verb"