Commitments

Terminate commitment

Changed on

Ends a commitment early, effective at the given time or now.

post/commitments/{id}/terminate

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/commitments/{id}/terminate
  • Auth
    API key in header x-api-key

Path parameters

idstring required

Commitment ID

Request body

cancellation_feestring
effective_atstring date-time

Response

OK

bindingboolean
collection_method'per_period' | 'billing_terms'
commitment_status'active' | 'ended' | 'terminated'
commitment_valuestring
committed_price_idstring
created_atstring date-time
created_bystring
currencystring
customer_idstring
end_datestring date-time

EndDate is exclusive; nil for an open-ended commitment, which runs until terminated.

environment_idstring
idstring
idempotency_keystring
instalment_invoicingstring
invoice_descriptionstring
invoice_labelstring
measurement'billing_period' | 'window'
metadataTypesMetadata
namestring
on_early_termination'forfeit' | 'credit_note' | 'bill_remaining'
overage_price_idstring
priorityinteger
scope_entity_idstring
scope_entity_type'subscription' | 'group' | 'meter' | 'price'
start_datestring date-time
status'published' | 'deleted' | 'archived'
subscription_idstring
tenant_idstring
terminated_atstring date-time
termination_invoice_idstring
timezonestring
total_amountstring
type'amount' | 'quantity'
updated_atstring date-time
updated_bystring
valuestring

Changes

    • breaking

      the request property type changed from object to string

    • warning

      removed the request property

    • warning

      removed the request property /

    • warning

      removed the request property /

    • info

      endpoint added