Revenue export API
Download your workspace's revenue lines as a streamed CSV from GET /api/export/revenue, filtered by date range and app, with columns and error responses.
GET /api/export/revenue streams your workspace's daily revenue lines as CSV. It backs the dashboard export (see Exports) and works with a session cookie or a Bearer session token.
/api/export/revenueSessionQuery parameters
Prop
Type
curl -H "Authorization: Bearer <session token>" \
"https://revenuehog.dev/api/export/revenue?range=3m" -o revenue.csvResponse
content-type: text/csv; charset=utf-8, cache-control: no-store, and a download filename of revenuehog-<range>[-<app-slug>]-<YYYY-MM-DD>.csv. Rows are ordered newest date first and use CRLF line endings.
| Column | Meaning |
|---|---|
date | Day, YYYY-MM-DD (UTC) |
app | App display name |
product_id | Store product ID |
product_name | Product name |
country | Storefront country |
currency | Local currency |
units | Units sold |
refunds | Refunded units |
gross_usd | Gross in USD |
proceeds_usd | Proceeds in USD |
proceeds_local | Proceeds in local currency |
estimated | yes when the line is an estimate not yet replaced by a report |
Errors
| Status | Body |
|---|---|
401 | { "error": "unauthorized" } |
404 | { "error": "unknown app" } |
Related
Last updated on
Paywall management API
Read and edit paywall entitlements, SKU defaults and A/B experiments through GET and PUT /api/mobile/paywall, with every operation, field and error message.
Server-to-server endpoints
The per-connection endpoints that receive App Store Server Notifications, Google Play notifications and Stripe webhooks, with verification and responses.