Dashboard
Fetches chart data for visualization.
Start date for the data range.
End date for the data range.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved chart data.
GET /api/v1/dashboard/chart/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved chart data.
[
{
"count": 1,
"time": "text"
}
]
Retrieves a list of cities with the highest order volumes.
Start date for the data range.
End date for the data range.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved top cities.
GET /api/v1/dashboard/top_cities/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved top cities.
[
{
"name": "text",
"item_count": 1,
"city_count": 1,
"price": 1
}
]
Retrieves a list of top-selling categories.
Start date for the data range.
End date for the data range.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved top categories.
GET /api/v1/dashboard/top_categories/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved top categories.
[
{
"pk": 1,
"name": "text",
"item_count": 1,
"price": 1
}
]
Retrieves total product count and stock for the given channel.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved product details.
GET /api/v1/dashboard/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved product details.
{
"total_product_count": 123,
"total_product_stocks": 123
}
Fetches a list of products sale data for a given period.
Start date for the data range.
End date for the data range.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved products sale data.
GET /api/v1/dashboard/orders_by_product/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved products sale data.
[
{
"sold": 1,
"total": 1,
"stock": 1,
"base_code": "text",
"sku": "text",
"name": "text",
"channel": "text"
}
]
Fetches a list of top products based on sales or quantity.
Start date for the data range.
End date for the data range.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved top products.
GET /api/v1/dashboard/top_products/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved top products.
[
{
"orderitem__product": 1,
"product_count": 1,
"price": 1,
"name": "text"
}
]
Fetches overall dashboard data such as turnover, sales, and refunds.
Start date for the data range.
End date for the data range.
ID of the channel the customer belongs to
5
Filter by payment option slug.
credit_card
Successfully retrieved overall data.
GET /api/v1/dashboard/overall_data/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved overall data.
{
"turnover": 123.45,
"total_order_quantity": 123,
"total_orderitem_quantity": 123,
"average_sale_price": 123.45,
"average_basket_price": 123.45,
"total_shipping_amount": 123.45,
"total_discount": 123.45,
"updated_at": "2021-01-01T00:00:00Z",
"total_sale_amount": 123.45,
"total_refund_amount": 123.45,
"total_cancel_amount": 123.45,
"total_cancel_quantity": 123,
"total_refund_quantity": 123,
"currency_type": "TL"
}
Was this helpful?