---
title: "Query and filter for commitments."
method: POST
path: "/organizations/{orgId}/dataexplorer/commitments/v2"
tags: ["DataExplorer"]
---

# Query and filter for commitments.

`POST /organizations/{orgId}/dataexplorer/commitments/v2`

## Request

- Base URL: `https://api.m3ter.com`
- URL: `https://api.m3ter.com/organizations/{orgId}/dataexplorer/commitments/v2`
- Auth: OAuth 2
  - Authorization code: `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize`, token URL `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/token`
  - Client credentials, token URL `/oauth/token`
- TypeScript: <https://skmtc.dev/m3ter-com/apis/m3ter-api/docs/organizations/:orgId/dataexplorer/commitments/v2/post.ts> (a function with typed inputs; its response is checked against the schema)

Query and filter for commitments.

## Path parameters

- `orgId` string, required

## Request body

- QueryCommitmentsRequest: Data Explorer commitments query.
  - `startDate` string, date-time, required: ISO 8601 formatted start date for the commitment.
  - `endDate` string, date-time, required: ISO 8601 formatted end date for the commitment.
  - `dimensions` DimensionQuery[]: Dimensions to filter by. The only valid dimension is 'account'.
    - `name` string, required: The Dimension name to target.
    - `attributes` string[]: The dimension attribute to target
    - `filter` string[], required: The value of a dimension to filter by. Use "*" to filter on all dimension values.
  - `limit` integer: Limit the number of data points returned

## Response `200`

Returns a list of commitments.

- BillDataResponse: Response containing bill line items.
  - `values` BillData[]: A list of bill line items.
    - `updatedDate` string, date-time
    - `dimensions` LineItemDimensions
      - `account` string
      - `accountName` string
      - `accountId` string
      - `parentAccountCode` string
      - `parentAccountName` string
      - `parentAccountId` string
      - `childAccountId` string
      - `description` string
      - `lineItemType` 'STANDING_CHARGE' | 'USAGE' | 'COUNTER_RUNNING_TOTAL_CHARGE' | 'COUNTER_ADJUSTMENT_DEBIT' | 'COUNTER_ADJUSTMENT_CREDIT' | 'USAGE_CREDIT' | 'MINIMUM_SPEND' | 'MINIMUM_SPEND_REFUND' | 'CREDIT_DEDUCTION' | 'MANUAL_ADJUSTMENT' | 'CREDIT_MEMO' | 'DEBIT_MEMO' | 'COMMITMENT_CONSUMED' | 'COMMITMENT_FEE' | 'OVERAGE_SURCHARGE' | 'OVERAGE_USAGE' | 'BALANCE_CONSUMED' | 'BALANCE_FEE' | 'AD_HOC': See [Bill Line Item Types](https://www.m3ter.com/docs/guides/running-viewing-and-managing-bills/bill-line-item-types) for more information.
      - `productName` string
      - `quantityUnit` string
      - `subtotalUnit` string
      - `convertedSubtotalUnit` string
      - `billId` string
      - `externalInvoiceReference` string
      - `commitmentId` string
      - `billLineItemId` string
    - `measures` LineItemMeasures
      - `convertedSubtotal` number, double
      - `subtotal` number, double
      - `version` number, double
      - `conversionRate` number, double
      - `quantity` number, double
      - `units` number, double
    - `billDetails` BillDetails
      - `day` integer
      - `week` string
      - `year` integer
      - `month` string
      - `locked` string
      - `status` string
      - `dueDate` string
      - `startDate` string
      - `endDate` string
      - `servicePeriodStartDate` string
      - `servicePeriodEndDate` string
      - `billDate` string
      - `timezone` string
      - `yearMonth` string
      - `billCurrency` string
      - `billingFrequency` string

## Other responses

- `4XX`: Error message
- `5XX`: Error message

## Changes

- **2026-10-16** `85c514abc692`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/m3ter-com/apis/m3ter-api/changes/organizations/:orgId/dataexplorer/commitments/v2/post.md)

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) - [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/m3ter-com/apis/m3ter-api/revisions/85c514abc692?raw)
