03-12-2018 23:59

Получение воронки продаж по системе принятия решений

GET   /bs-core/main/leads/sales-funnel/date-from/{dateFrom}/date-to/{dateTo}/rule-step-schema-id/{ruleStepSchemaId}

Запрос

GET /bs-core/main/leads/sales-funnel/date-from/2016-01-01T15:18:00/date-to/2016-04-25T23:59:00/rule-step-schema-id/2 HTTP/1.1
Описание параметров
Нет описанных параметров

Ответ


                        {
    "status": "ok",
    "timestamp": 1462952848673,
    "data": {
        "dateFrom": 1451650680000,
        "dateTo": 1461617940000,
        "ruleStepSchemaId": 2,
        "channel": null,
        "createdLeadsQty": 25,
        "levels": [
            {
                "ruleStepTypeId": 11,
                "name": "Выполнение выражения (expression: lead.getAge() > 18 && lead.getAge()            },
            {
                "ruleStepTypeId": 9,
                "name": "Проверка паспорта ФМС",
                "inputQty": 21,
                "outputQty": 21,
                "deniedQty": 0,
                "denialReasonId": null
            },
            {
                "ruleStepTypeId": 5,
                "name": "Проверка клиента",
                "inputQty": 21,
                "outputQty": 21,
                "deniedQty": 0,
                "denialReasonId": 101559
            },
            {
                "ruleStepTypeId": 3,
                "name": "Внутренний скоринг",
                "inputQty": 21,
                "outputQty": 16,
                "deniedQty": 5,
                "denialReasonId": 101552
            },
            {
                "ruleStepTypeId": 10,
                "name": "Кредитная история Equifax",
                "inputQty": 16,
                "outputQty": 16,
                "deniedQty": 0,
                "denialReasonId": null
            },
            {
                "ruleStepTypeId": 11,
                "name": "Выполнение выражения (expression: bkinohistory==1)",
                "inputQty": 8,
                "outputQty": 4,
                "deniedQty": 4,
                "denialReasonId": 101556
            },
            {
                "ruleStepTypeId": 11,
                "name": "Выполнение выражения (expression: bkinpl90 == 0)",
                "inputQty": 4,
                "outputQty": 4,
                "deniedQty": 0,
                "denialReasonId": 101553
            },
            {
                "ruleStepTypeId": 12,
                "name": "Ручная проверка (processingStatusTo: 102509, responsibleRole: null)",
                "inputQty": 4,
                "outputQty": 0,
                "deniedQty": 4,
                "denialReasonId": null
            }
        ],
        "passedLeadsQty": 0,
        "issuedLeadsQty": 0
    }
}
                    
У данной функции отсутствует описание параметров ответа