Sales per variant
curl --request GET \
--url https://api.tassyir.io/apps/2026-10/analytics/variants \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tassyir.io/apps/2026-10/analytics/variants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"period": {
"startDate": "<string>",
"endDate": "<string>",
"days": 0
},
"currency": "<string>",
"variants": [
{
"variant": {
"id": "<string>",
"name": "<string>",
"sku": "<string>",
"price": "<string>"
},
"product": {
"id": "<string>",
"name": "<string>"
},
"storeId": "<string>",
"totalOrders": 0,
"deliveredOrders": 0,
"returnedOrders": 0,
"grossRevenue": "<string>",
"averageGrossRevenuePerOrder": "<string>",
"costs": {
"buyPrice": "<string>",
"packagePrice": "<string>",
"totalNetProfit": "<string>",
"averageNetProfitPerOrder": "<string>",
"totalDeliveryFeeDifference": "<string>",
"averageDeliveryFeeDifference": "<string>",
"totalRefundFees": "<string>",
"averageRefundFeePerOrder": "<string>",
"totalCommissionCosts": "<string>",
"averageCommissionPerOrder": "<string>"
}
}
],
"page": 0,
"limit": 0,
"hasNextPage": true
}
}{
"type": "<string>",
"title": "<string>",
"status": 400,
"detail": "<string>",
"code": "INVALID_DATE_RANGE",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 401,
"detail": "<string>",
"code": "APP_TOKEN_INVALID",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 403,
"detail": "<string>",
"code": "PERMISSION_DENIED",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 429,
"detail": "<string>",
"code": "BUSINESS_RATE_LIMITED",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 460,
"detail": "<string>",
"code": "STORE_SCOPE_FORBIDDEN",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 500,
"detail": "<string>",
"code": "INTERNAL_ERROR",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 503,
"detail": "<string>",
"code": "API_BUSY",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}Analytics
Sales per variant
Variants ranked by orders, one page at a time. costs needs the read_costs scope: without it the key is absent.
Needs the read_analytics scope (permission analytics:read).
GET
/
apps
/
2026-10
/
analytics
/
variants
Sales per variant
curl --request GET \
--url https://api.tassyir.io/apps/2026-10/analytics/variants \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tassyir.io/apps/2026-10/analytics/variants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"period": {
"startDate": "<string>",
"endDate": "<string>",
"days": 0
},
"currency": "<string>",
"variants": [
{
"variant": {
"id": "<string>",
"name": "<string>",
"sku": "<string>",
"price": "<string>"
},
"product": {
"id": "<string>",
"name": "<string>"
},
"storeId": "<string>",
"totalOrders": 0,
"deliveredOrders": 0,
"returnedOrders": 0,
"grossRevenue": "<string>",
"averageGrossRevenuePerOrder": "<string>",
"costs": {
"buyPrice": "<string>",
"packagePrice": "<string>",
"totalNetProfit": "<string>",
"averageNetProfitPerOrder": "<string>",
"totalDeliveryFeeDifference": "<string>",
"averageDeliveryFeeDifference": "<string>",
"totalRefundFees": "<string>",
"averageRefundFeePerOrder": "<string>",
"totalCommissionCosts": "<string>",
"averageCommissionPerOrder": "<string>"
}
}
],
"page": 0,
"limit": 0,
"hasNextPage": true
}
}{
"type": "<string>",
"title": "<string>",
"status": 400,
"detail": "<string>",
"code": "INVALID_DATE_RANGE",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 401,
"detail": "<string>",
"code": "APP_TOKEN_INVALID",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 403,
"detail": "<string>",
"code": "PERMISSION_DENIED",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 429,
"detail": "<string>",
"code": "BUSINESS_RATE_LIMITED",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 460,
"detail": "<string>",
"code": "STORE_SCOPE_FORBIDDEN",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 500,
"detail": "<string>",
"code": "INTERNAL_ERROR",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 503,
"detail": "<string>",
"code": "API_BUSY",
"docs": "<string>",
"fix": "<string>",
"requestId": "<string>",
"errors": [
"<string>"
]
}