OpenMeter Subscriptions

Change subscription

Changed on

Closes a running subscription and starts a new one according to the specification. Can be used for upgrades, downgrades, and plan changes.

post/openmeter/subscriptions/{subscriptionId}/change

Request

  • Base URL: http://localhost:8888/api/v3
  • URL: http://localhost:8888/api/v3/openmeter/subscriptions/{subscriptionId}/change
  • Auth: none declared

Path parameters

subscriptionIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

labelsLabels

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

settlement_mode'credit_then_invoice' | 'credit_only'

Settlement mode for billing.

Values:

  • credit_then_invoice: Credits are applied first, then any remainder is invoiced.
  • credit_only: Usage is settled exclusively against credits.
starting_phasestring

The key of the phase to start the subscription in. If not provided, the subscription starts in the first phase of the plan.

Only applies when creating from a published plan; custom plans define their own phases inline.

billing_anchorstring date-time

RFC3339 formatted date-time string in UTC.

cost_basis_mode'dynamic' | 'pinned'

Controls how custom-currency cost bases are selected for the subscription.

Response

The request has succeeded.

Changes

    • breaking

      added to the ///////// request property allOf list

    • warning

      removed from the ///////// request property allOf list

    • info

      added to the ////////////// response property allOf list for the response status

    • info

      added to the ////////////// response property allOf list for the response status

    • info

      removed from the ////////////// response property allOf list for the response status

    • info

      removed from the ////////////// response property allOf list for the response status

    • info

      added the new optional request property