MobiariDocs
Admin APIStores

Get the store's usage

GET
/stores/{store_id}/usage

Daily counters of metered usage (e-mails sent, assistant use...) and today's marketing e-mail cap.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid

Query Parameters

days?integer

Days back, 1 to 365. Defaults to 30.

Formatint64

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/usage"
{
  "days": 0,
  "email_caps": {
    "exhausted": true,
    "limit": 0,
    "sent_today": 0,
    "source": "string",
    "warmup_day": 0
  },
  "month": {
    "property1": 0,
    "property2": 0
  },
  "series": [
    {
      "day": "2019-08-24",
      "metric": "string",
      "value": 0
    }
  ],
  "totals": {
    "property1": 0,
    "property2": 0
  }
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}