---
title: "commitment.created"
method: POST
path: "/webhook-events/commitment.created"
tags: ["Webhook Events"]
---

# commitment.created

`POST /webhook-events/commitment.created`

## Request

- Base URL: `https://us.api.flexprice.io/v1`
- URL: `https://us.api.flexprice.io/v1/webhook-events/commitment.created`
- Auth: none declared

Fired when a commitment is created on a subscription. Doc-only for parsing.

## Response `200`

Webhook payload

- WebhookDtoCommitmentWebhookPayload
  - `commitment` CommitmentResponse
    - `active_windows` TypesActiveWindow[]
      - `end` TypesBucket
        - `hour` integer
        - `minute` integer
      - `start` TypesBucket
        - `hour` integer
        - `minute` integer
    - `binding` boolean
    - `collection_method` 'per_period' | 'billing_terms'
    - `commitment_status` 'active' | 'ended' | 'terminated'
    - `commitment_value` string
    - `committed_price_id` string
    - `created_at` string, date-time
    - `created_by` string
    - `currency` string
    - `customer_id` string
    - `end_date` string, date-time: EndDate is exclusive; nil for an open-ended commitment, which runs until terminated.
    - `environment_id` string
    - `id` string
    - `idempotency_key` string
    - `instalment_invoicing` string
    - `invoice_description` string
    - `invoice_label` string
    - `measurement` 'billing_period' | 'window'
    - `metadata` TypesMetadata
    - `name` string
    - `on_early_termination` 'forfeit' | 'credit_note' | 'bill_remaining'
    - `overage_price_id` string
    - `priority` integer
    - `scope_entity_id` string
    - `scope_entity_type` 'subscription' | 'group' | 'meter' | 'price'
    - `start_date` string, date-time
    - `status` 'published' | 'deleted' | 'archived'
    - `subscription_id` string
    - `tenant_id` string
    - `terminated_at` string, date-time
    - `termination_invoice_id` string
    - `timezone` string
    - `total_amount` string
    - `type` 'amount' | 'quantity'
    - `updated_at` string, date-time
    - `updated_by` string
    - `value` string
  - `event_type` 'subscription.created' | 'subscription.draft.created' | 'subscription.activated' | 'subscription.updated' | 'subscription.paused' | 'subscription.cancelled' | 'subscription.resumed' | 'subscription.plan_changed' | 'subscription.phase.created' | 'subscription.phase.updated' | 'subscription.phase.deleted' | 'feature.created' | 'feature.updated' | 'feature.deleted' | 'feature.wallet_balance.alert' | 'entitlement.created' | 'entitlement.updated' | 'entitlement.deleted' | 'commitment.created' | 'commitment.updated' | 'commitment.terminated' | 'wallet.created' | 'wallet.updated' | 'wallet.terminated' | 'wallet.transaction.created' | 'wallet.transaction.updated' | 'payment.created' | 'payment.updated' | 'payment.failed' | 'payment.success' | 'payment.pending' | 'refund.created' | 'refund.succeeded' | 'refund.failed' | 'customer.created' | 'customer.updated' | 'customer.deleted' | 'invoice.update.finalized' | 'invoice.update.payment' | 'invoice.update.voided' | 'invoice.update' | 'invoice.payment.overdue' | 'invoice.sync.success' | 'invoice.sync.failed' | 'wallet.credit_balance.dropped' | 'wallet.credit_balance.recovered' | 'wallet.ongoing_balance.dropped' | 'wallet.ongoing_balance.recovered' | 'wallet.ongoing_balance.updated' | 'subscription.spend.threshold_reached' | 'subscription.spend.threshold_recovered' | 'subscription.line_item_spend.threshold_reached' | 'subscription.line_item_spend.threshold_recovered' | 'subscription.group_spend.threshold_reached' | 'subscription.group_spend.threshold_recovered' | 'entitlement.grant.exhausted' | 'subscription.renewal.due' | 'invoice.communication.triggered' | 'credit_note.created' | 'credit_note.updated' | 'checkout.session.initiated' | 'checkout.session.completed' | 'checkout.session.failed' | 'checkout.session.expired' | 'event.rejected'

## Changes

- **2026-10-25** `9b4083f46c66`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/webhook-events/commitment.created/post.md)

---

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