Skip to main content
POST
/
subscription-measurements
cURL
curl -X POST \
 /subscription-measurements \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer <token>" \
 --data '{
    "subscriptionItem": "1QEHKTJY9097X91J78YRJEA9E8",
    "measurementCode": "used_traffic"
}'

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Body

The new MeasurementValue resource

quantity
any
required

The new value

Example:

"10.239"

measuredAt
any
required

The date the value was measured. If none is given, the current date is used

Example:

"2021-01-01T00:00:00Z"

subscription
any

The subscription id, or the subscription number. Only necessary if you provide only the measurement code.

Example:

"1QEHKTJY9097X91J78YRJEA9E8"

subscriptionItem
string | null

Either the subscription item or the measurement code must be provided.

Example:

"1QEHKTJY9097X91J78YRJEA9E8"

measurementCode
string | null

Either the subscription item or the measurement code must be provided. If the subscription contains multiple items with the same measurement (code), all their values will be updated.

Example:

"used_traffic"

Response

MeasurementValue resource created