Skip to main content
GET
/
api
/
v1
/
dashboard
/
stats
Dashboard istatistiklerini getir
curl --request GET \
  --url https://vpos-sandbox.payven.com.tr/api/v1/dashboard/stats \
  --header 'Authorization: Bearer <token>'
{
  "today_transactions": 123,
  "today_success_rate": 123,
  "today_total_amount": 123,
  "today_successful": 123,
  "today_failed": 123,
  "today_canceled": 123,
  "problem_connectors": 123,
  "total_connectors": 123,
  "transactions_trend": {
    "value": 123,
    "is_positive": true,
    "has_baseline": true
  },
  "success_rate_trend": {
    "value": 123,
    "is_positive": true,
    "has_baseline": true
  },
  "amount_trend": {
    "value": 123,
    "is_positive": true,
    "has_baseline": true
  },
  "trend_buckets": [
    {
      "label": "<string>",
      "transactions": 123
    }
  ],
  "status_distribution": [
    {
      "status": "<string>",
      "name": "<string>",
      "value": 123,
      "color": "<string>"
    }
  ],
  "recent_failed_transactions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "merchant_name": "<string>",
      "amount": 123,
      "error_message": "<string>",
      "connector_name": "<string>",
      "created": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Identity servisinden alinan Keycloak JWT. Format: Authorization: Bearer <token>. Token alma: POST /api/v1/auth/{slug}/token

Query Parameters

period
string

Response

OK

period
enum<string>
Available options:
Today,
Last7Days,
Last30Days
today_transactions
integer<int32>
today_success_rate
number<double>
today_total_amount
integer<int64>
today_successful
integer<int32>
today_failed
integer<int32>
today_canceled
integer<int32>
problem_connectors
integer<int32>
total_connectors
integer<int32>
transactions_trend
object
success_rate_trend
object
amount_trend
object
trend_buckets
object[] | null
status_distribution
object[] | null
recent_failed_transactions
object[] | null