Skip to main content
GET
/
analytics
/
revenue
Revenue breakdown
curl --request GET \
  --url https://api.autoprintfarm.com/public/v1/analytics/revenue \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "date_range": {
      "from": "<string>",
      "to": "<string>"
    },
    "summary": {
      "total_revenue_cents": 123,
      "order_count": 123,
      "average_order_value": 123
    },
    "by_platform": [
      {
        "platform": "<string>",
        "revenue_cents": 123,
        "orders": 123
      }
    ],
    "daily": [
      {
        "date": "<string>",
        "revenue_cents": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Query Parameters

from
string

Start of the reporting window (ISO date, e.g. 2026-01-01). Defaults to 30 days ago.

to
string

End of the reporting window (ISO date). Defaults to today.

Response

Revenue report

success
enum<boolean>
required
Available options:
true
data
object
required