Skip to main content
GET
/
orders
/
stats
Order counts + last-30-day revenue rollup
curl --request GET \
  --url https://api.autoprintfarm.com/public/v1/orders/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "total_orders": 123,
    "by_status": {},
    "by_platform": {},
    "pending_fulfillment": 123,
    "last_30_days": {
      "total_orders": 123,
      "total_revenue": 123,
      "total_shipping": 123,
      "total_tax": 123,
      "total_discount": 123,
      "avg_order_value": 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.

Response

Order statistics

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