Report

Reports - Earnings

Daily share-adjusted earnings scoped to the logged-in publisher's org. Earnings read the snapshotted publisher_earnings on the rollup (share applied at roll time), so closed periods are immutable. Money as string DECIMAL. Group by date, account, publisher, provider.

get/publisher/v1/reports/earnings

Request

  • Base URL: https://api.juju.com
  • URL: https://api.juju.com/publisher/v1/reports/earnings
  • Auth: none declared

Query parameters

fromstring date required
tostring date required
publisher_account_idinteger
group_bystring[]

Group-by dimensions (repeat or CSV). Allowed set is per report (see the reports changelog); default date. publisher_account_id accepts a single value or a CSV/repeat list.

bucket'day' | 'week' | 'month'

Date bucket: day|week|month (default day).

Response

Daily rows, ordered by report_date DESC.

metaobject required

Pagination and context metadata. Always present, empty object ({}) when no metadata applies to the response.

errorsstring[] required

Empty array on success. On failure, human-readable error strings suitable for surfacing to end users.

Example response

{
  "data": [
    {
      "earnings": "2948.09"
    }
  ],
  "errors": []
}

Changes

No recorded changes to this operation across all 1 revision of this API.