Insights

Embed
Preview of the card
<a href="https://shippified.net/docs/ref-insights"><img src="https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/pages/7183c6ec-c11c-4cb8-9941-b9a0931039ff/social-card.svg?v=4bd9898cfc89" alt="Insights" width="600" height="315"></a>
GET https://shippified.net/api/profitability

Profit & loss for a calendar period.

Revenue is each order's salePriceCents and cost is its costCents, for orders received in the period; subscription overhead, pro-rated to the period, is subtracted for net profit. Includes a daily series, breakdowns by store and by source, and totals for the previous period for comparison. Periods are calendar-aligned in UTC.

Parameters

range
string
query
Current month, quarter or year, or all time. Unknown values fall back to month.

Code samples

cURL
curl -X GET "https://shippified.net/api/profitability"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{
  "range": "month",
  "window": {
    "range": "month",
    "start": "2024-01-01T00:00:00Z",
    "end": "2024-01-01T00:00:00Z",
    "label": "Q3 2026"
  },
  "previousWindow": {},
  "generatedAt": "2024-01-01T00:00:00Z",
  "revenueCents": 0,
  "cogsCents": 0,
  "subsCostCents": 0,
  "grossProfitCents": 0,
  "netProfitCents": 0,
  "orderCount": 0,
  "ordersWithSalePrice": 0,
  "coverage": 0,
  "daily": [
    {
      "date": "string",
      "revenueCents": 0,
      "cogsCents": 0,
      "profitCents": 0
    }
  ],
  "perStore": [
    {
      "name": "string",
      "revenueCents": 0,
      "cogsCents": 0,
      "profitCents": 0,
      "count": 0
    }
  ],
  "perSource": [
    {
      "name": "string",
      "revenueCents": 0,
      "cogsCents": 0,
      "profitCents": 0,
      "count": 0
    }
  ],
  "previous": {
    "revenueCents": 0,
    "netProfitCents": 0
  }
}
401 Not authenticated.
GET https://shippified.net/api/calendar

Order, delivery and subscription-renewal events for one month.

Each order contributes an order_received event and either a delivered event (actual delivery date) or an estimated_delivery event. Active subscriptions contribute a subscription_renewal event on each renewal date in the month. Dates are days in your timezone (POST /api/account/timezone, default UTC) — an order received at 9pm in New York is on that day, not the next UTC day. Events are sorted by date, then kind.

Parameters

month
string
query
Month as YYYY-MM. Defaults to the current month in your timezone.

Code samples

cURL
curl -X GET "https://shippified.net/api/calendar"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{
  "month": "2026-09",
  "timezone": "America/New_York",
  "generatedAt": "2024-01-01T00:00:00Z",
  "events": [
    {
      "date": "string",
      "kind": "order_received",
      "label": "string",
      "amount": "string",
      "ref": {
        "type": "order",
        "id": "string"
      },
      "meta": {}
    }
  ]
}
400 month isn't a valid YYYY-MM.
{
  "error": "string"
}
401 Not authenticated.
GET https://shippified.net/api/leaderboard

Order-count leaderboard across workspaces.

Only workspaces that opted in with POST /api/account/public-stats are ranked, plus you (flagged isYou) so you can always see where you'd place, without being shown to anyone else. week and month are rolling 7- and 30-day windows ranked by windowed; all ranks by lifetime count.

Parameters

timeframe
string
query
Unknown values fall back to all.

Code samples

cURL
curl -X GET "https://shippified.net/api/leaderboard"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{
  "timeframe": "week",
  "generatedAt": "2024-01-01T00:00:00Z",
  "total": 0,
  "rows": [
    {
      "rank": 0,
      "userId": "string",
      "username": "string",
      "displayName": "string",
      "publicProfile": true,
      "lifetime": 0,
      "windowed": 0,
      "level": 0,
      "isYou": true
    }
  ]
}
401 Not authenticated.
Updated