Skip to main content
GET
/
analytics
/
billing-summary
Get billing summary
curl --request GET \
  --url https://api-message.nativehub.live/api/v1/analytics/billing-summary \
  --header 'Authorization: Bearer <token>'
{
  "total_revenue": 6271.5,
  "total_cost": 3756.9,
  "total_margin": 2514.6,
  "by_currency": [
    {
      "currency": "USD",
      "revenue": 6271.5,
      "cost": 3756.9
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

date_from
string<date>

Start date for billing summary

date_to
string<date>

End date for billing summary

Response

200 - application/json

Billing summary retrieved successfully

total_revenue
number
total_cost
number
total_margin
number
by_currency
object[]