Orders and ad spend per source and campaign
curl --request GET \
--url https://api.tassyir.io/apps/2026-10/analytics/marketing \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tassyir.io/apps/2026-10/analytics/marketing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"period": {
"startDate": "<string>",
"endDate": "<string>",
"days": 0
},
"channel": "all",
"spendCurrency": "<string>",
"spendUnavailable": "not_connected",
"totals": {
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
}
},
"sources": [
{
"id": "<string>",
"name": "<string>",
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
},
"organic": true,
"children": [
{
"id": "<string>",
"name": "<string>",
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
},
"status": "<string>",
"spendMissing": "unread_account",
"children": [
{
"id": "<string>",
"name": "<string>",
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
},
"thumbnailUrl": "<string>"
}
]
}
]
}
]
}
}{
"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
Orders and ad spend per source and campaign
The attribution tree: source, then campaign, then ad. Spend is what Meta and TikTok report, in the ad account’s currency; it is account-wide, so a store filter or a store-limited installation gets no spend (spendUnavailable: gated).
Needs the read_analytics scope (permission analytics:read).
GET
/
apps
/
2026-10
/
analytics
/
marketing
Orders and ad spend per source and campaign
curl --request GET \
--url https://api.tassyir.io/apps/2026-10/analytics/marketing \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tassyir.io/apps/2026-10/analytics/marketing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"period": {
"startDate": "<string>",
"endDate": "<string>",
"days": 0
},
"channel": "all",
"spendCurrency": "<string>",
"spendUnavailable": "not_connected",
"totals": {
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
}
},
"sources": [
{
"id": "<string>",
"name": "<string>",
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
},
"organic": true,
"children": [
{
"id": "<string>",
"name": "<string>",
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
},
"status": "<string>",
"spendMissing": "unread_account",
"children": [
{
"id": "<string>",
"name": "<string>",
"counts": {
"visits": 0,
"orders": 0,
"confirmed": 0,
"delivered": 0,
"canceled": 0,
"returned": 0,
"revenue": "<string>",
"orderValue": "<string>"
},
"ads": {
"spend": "<string>",
"currency": "<string>",
"impressions": 0,
"clicks": 0,
"purchases": 0,
"purchaseValue": "<string>"
},
"thumbnailUrl": "<string>"
}
]
}
]
}
]
}
}{
"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>"
]
}