ML

Оценка прибыли банка

Internal. Проксируется backend → ml:8005/ml/profit. profit = predicted_GMV × interchange_rate − min(cashback, budget).

post/api/v1/ml/profit

Request

  • Base URL: http://158.160.83.199:8000
  • URL: http://158.160.83.199:8000/api/v1/ml/profit
  • Auth: HTTP bearer

Request body

request_idstring uuid required
client_idstring uuid required
interchange_ratenumber required

Ставка интерчейнджа банка (например 0.015 = 1.5%)

featuresobject

Дополнительные фичи (опционально)

Example request

{
  "categories": [
    {
      "rate_range": {
        "min_permille": 50,
        "max_permille": 50
      },
      "remaining_kopeks": 123450
    }
  ],
  "budgets": {
    "global_remaining_kopeks": 123450
  },
  "interchange_rate": 0.015
}

Response

Прибыль

request_idstring uuid required
profit_rubnumber required

Прибыль банка в рублях (interchange × GMV − min(cashback, budget))

Example response

{
  "profit_rub": 42.5
}

Changes

No recorded changes to this operation across all 1 revision of this API.