Skip to content

Get Environment Metric Purchases

GET
/v1/environment/{environment_id}/analytics/purchases

Get purchase count during time window, requires <routers.common.permissions.PortalPermission object at 0x7f271aa41220> permission

Authorizations

Parameters

Path Parameters

environment_id
required

Environment ID

string format: uuid

Environment ID

Query Parameters

from_date
string format: date-time
to_date
string format: date-time
previous_seconds
integer
default: 600 >= 1

Responses

200

Successful Response

object
counts
required

Data broken down by platform.

object
key
additional properties
integer
date_range
required

The date range for the data.

object
from_date
required

The start date.

string format: date-time
to_date
required

The end date.

string format: date-time

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string