Commitments

Update commitment

Changed on

Updates the descriptive fields of a commitment. Economic terms are immutable.

put/commitments/{id}

Request

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

Path parameters

idstring required

Commitment ID

Request body

invoice_descriptionstring
invoice_labelstring
metadataTypesMetadata
namestring

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