Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Meters are the customer-specific counters of usage for the different Meter Types, and one Meter should be created for each customer, see Data Model.

Meters can be created, retrieved, updated, and deleted using the API, see API Documentation .

Examples

Below are a few examples of how this may look like.

Retrieving a list of meters:

GET /api/usage-metering/v1/meters

{}

Creating a meter:

POST /api/usage-metering/v1/meters

{
"domain": "string",
"externalRef": "string",
"meterTypeId": "string",
"userId": "string"
}

Deleting a meter:

DELETE /api/usage-metering/v1/meters{id}

{}

Retrieving one single meter:

GET /api/usage-metering/v1/meters{id}

{}

Updating a specific meter:

PATCH /api/usage-metering/v1/meters{id}

{
"resetAt": "string",
"value": 0
}

  • No labels