Langsung ke konten utama
POST
JavaScript

Otorisasi

Authorization
string
header
wajib

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

Body

application/json
aggregation
Meter Aggregation · object
wajib

Aggregation configuration for the meter

event_name
string
wajib

Event name to track

measurement_unit
string
wajib

measurement unit

name
string
wajib

Name of the meter

description
string | null

Optional description of the meter

filter
null | Meter Filter · object

Optional filter to apply to the meter

Contoh:

Respons

Meter created successfully

aggregation
Meter Aggregation · object
wajib
business_id
string
wajib
created_at
string<date-time>
wajib
event_name
string
wajib
id
string
wajib
measurement_unit
string
wajib
name
string
wajib
updated_at
string<date-time>
wajib
description
string | null
filter
null | Meter Filter · object

A filter structure that combines multiple conditions with logical conjunctions (AND/OR).

Supports up to 3 levels of nesting to create complex filter expressions. Each filter has a conjunction (and/or) and clauses that can be either direct conditions or nested filters.

Contoh:
Terakhir diubah pada 1 April 2026