---
title: "api_insight_checkout_kpis_get"
method: GET
path: "/accounts/{aid}/insight/kpi/checkout"
tags: ["kpi"]
---

# api_insight_checkout_kpis_get

`GET /accounts/{aid}/insight/kpi/checkout`

Get a list of kpis where the transactiosn used is in the aggregations are transactions from "event_created_at_gte",
until now. However, transactions from the "current" interval are not included.\
E.g if week is provided as interval, then no transactions from the current week are included. This is true for
day and month intervals aswell.

Scopes:
  - read:insight
  - admin:insight
**deprecated** 2025-05-20

## Path parameters

- `aid` string, ^[PT]{1}\d{8}$, required

## Query parameters

- `interval` 'day' | 'week' | 'month', required
- `field` 'total_amount', required
- `transaction_status` 'CAPTURED' | 'REFUNDED' | 'AUTHORIZED', required
- `aggregate_functions` string, required
- `event_created_at_gte` string

## Response `200`

Checkout KPIs

- InsightCheckoutKpis[]
  - `kpi_name` 'avg' | 'sum' | 'count', required
  - `values` object[], required
    - `currency` string — Included if the aggregate_function included `currency`
    - `value` number, required — result of applying the aggregate_function for one period defined by the aggregate_level
    - `date` string, date-time, required — Either the date for the aggregated data(when interval is day) otherwise the first date of the period used to aggregate data (week/month)

## Other responses

- `400` — Bad / Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Unexpected Error

---

[API](https://skmtc.net/dintero/apis/account-management-api.md) · [All operations](https://skmtc.net/dintero/apis/account-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dintero/account-management-api/revisions/9b83a4199008/schema)
