---
title: "Metering"
description: "The Metering API enables partners to send usage data for consolidated usage-based billing."
url: https://community.exoscale.com/reference/partner-api/metering/
section: reference
last_updated: 2026-10-14
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# Metering

The Metering API enables partners to send usage data for consolidated usage-based billing.

[Read more](https://www.exoscale.com/partner-programs/)


---

## Other Operations

## <span data-label="POST" class="pill-POST"></span>metering-transaction

Apply metering transaction

```
POST /metering:apply
```

Submit usage metering for the given organization. The API accepts a set of
`usage` entries. Each entry represents a product, its variable and a metering
value. The value might be negative or decimal (up to five
decimal places). Sample payload:

```json
{
  'usage': [
    {
      'product': 'partner',
      'variable': 'license_product',
      'quantity': 3.1415
    },
    {
      'product': 'partner',
      'variable': 'commission',
      'quantity': -42.00005
    }
  ],
  'organization': 'bf9bbc88-71ea-407c-9920-fc1101d86183'
}
```

### Request body

Content-Type: `application/json`

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `organization` | string | no | Target Org<br/><br/>Must be a valid UUID. |
| `usage` | array of [Usage data](https://community.exoscale.com/reference/partner-api/_schemas/usage-data/index.md) | no | Usage data |

<details>
<summary>Example</summary>

```json
{
  "organization": "a1b2c3d4-e5f6-4a5b-8c9d-0123456789ab",
  "usage": [
    {
      "product": "string",
      "quantity": 0,
      "variable": "string"
    }
  ]
}
```
</details>


### Responses

Status: `204` - 204

Content-Type: `application/json`

| Property | Type | Description |
| --- | --- | --- |
| `ok` | boolean |  |

<details>
<summary>Example output</summary>

```json
{
  "ok": true
}
```
</details>


SDK reference for `metering-transaction`: [golang](https://pkg.go.dev/github.com/exoscale/egoscale/v3#Client.MeteringTransaction) | [Python](https://exoscale.github.io/python-exoscale/v2.html#exoscale.api.v2.Client.metering_transaction) | [Java](https://exoscale.github.io/exoscale-sdk-java/com/exoscale/sdk/api/ExoscaleApi.html#meteringTransaction(com.exoscale.sdk.model.MeteringTransactionRequest))

[CLI](https://community.exoscale.com/tools/command-line-interface/index.md): `exo api metering-transaction`


