Skip to content

Partner Analytics API

All endpoints on this page require JWT authentication (a Supabase session from the Rheo partner dashboard).


Analytics

GET /partner/analytics

Returns a full analytics snapshot for the authenticated partner: inventory counts, monthly revenue for the past 12 months, a category breakdown, and a revenue summary.

Response 200 OK

{
"inventory": {
"total": 843,
"active": 512,
"draft": 120,
"sold": 198,
"archived": 13
},
"monthlyRevenue": [
{
"month": "2026-04",
"gross": 48500.0,
"fee": 4850.0,
"net": 43650.0,
"orders": 32
}
],
"categoryBreakdown": [
{
"category": "Reservdel",
"count": 640,
"revenue": 81200.0
}
],
"revenueSummary": {
"totalGross": 421000.0,
"totalFee": 42100.0,
"totalNet": 378900.0,
"totalPending": 12400.0
}
}

inventory

FieldDescription
totalAll items across all statuses
activeCurrently live on Rheo or Tradera
draftReceived by Rheo but not yet published (images pending, etc.)
soldCompleted sales
archivedDeleted while linked to an active order

monthlyRevenue

Up to 12 entries, one per calendar month. Months with no sales are included with zeroes.

FieldDescription
monthYYYY-MM string
grossTotal sale price across all orders in SEK
feeRheo platform fee deducted from gross in SEK
netgross - fee in SEK
ordersNumber of completed orders

categoryBreakdown

Up to 10 categories ordered by revenue descending. Category names are derived from the item’s domain field at push time: automotive_part"Reservdel", electronics"Elektronik", fashion"Kläder", other → "Övrigt".

revenueSummary

Aggregated totals across all time.

FieldDescription
totalGrossSum of all completed order amounts in SEK
totalFeeSum of all platform fees in SEK
totalNettotalGross - totalFee
totalPendingAmount from orders in progress (not yet paid or completed) in SEK

Subscription

GET /partner/subscription

Returns the current subscription tier for the authenticated partner.

Response 200 OK

{
"tier": "pro",
"isPro": true,
"subscribedAt": "2026-04-01T00:00:00Z",
"expiresAt": "2026-07-01T00:00:00Z"
}
FieldDescription
tier"free" or "pro"
isProtrue only when tier is pro AND the subscription has not expired
subscribedAtISO 8601 timestamp. null if never subscribed.
expiresAtISO 8601 timestamp. null if no active subscription.

Partners on the free tier have isPro: false and both timestamp fields as null.


POST /partner/subscription/checkout

Creates a Stripe Checkout session for upgrading to the Rheo Partner Pro plan and returns the redirect URL.

The Pro plan is billed monthly at 199 SEK/month via Stripe.

Request body — none required.

Response 200 OK

{
"url": "https://checkout.stripe.com/c/pay/..."
}

Redirect the user to url. On successful payment, Stripe redirects back to the partner dashboard with ?upgraded=true. On cancellation, the user is returned to the dashboard without the query parameter.


Subscription tiers

FeatureFreePro
Item sync (PUT)IncludedIncluded
Tradera auto-publishIncludedIncluded
WebhooksIncludedIncluded
Partner analyticsDashboard viewDashboard view
Priority supportIncluded
Monthly price0 SEK199 SEK/month