Skip to main content

kobana billing subscription-changes

Commands of kobana billing subscription-changes. Every global option (Global options) applies here.

CommandHTTPDescription
subscription-changes config listGET /v1/subscription_changes/configGet subscription change settings
subscription-changes config updatePUT /v1/subscription_changes/configUpdate subscription change settings

subscription-changes config list​

Get subscription change settings

kobana billing subscription-changes config list [OPTIONS]

GET /v1/subscription_changes/config

Returns the organization settings for subscription item changes — allowed operations (add/remove/quantity change/price swap), proration method per operation, timing (immediate or end_of_period), refund/credit on remove and portal self-service. If not yet present, defaults are created on first read.

Responses

HTTPDescription
200Organization settings.
404Resource not found in the current organization.

subscription-changes config update​

Update subscription change settings

kobana billing subscription-changes config update [OPTIONS]

PUT /v1/subscription_changes/config

Partially updates the settings. Only supplied fields are changed. refund_on_remove requires credit_on_remove to also be enabled — refund is a variant of credit.

Request body

NameTypeRequiredDescription
allow_item_addbooleannoAllows adding new items to an existing subscription.
allow_item_removebooleannoAllows removing items from an existing subscription.
allow_quantity_changebooleannoAllows changing the quantity of items already on the subscription.
allow_price_swapbooleannoAllows swapping the price (variant) of an existing item without removing it.
add_prorationstringnoProration method when adding items: full_proration, no_proration or partial_proration. Values: full_proration, no_proration, partial_proration.
remove_prorationstringnoProration method when removing items: full_proration, no_proration or partial_proration. Values: full_proration, no_proration, partial_proration.
quantity_up_prorationstringnoProration method when increasing an item quantity. Values: full_proration, no_proration, partial_proration.
quantity_down_prorationstringnoProration method when decreasing an item quantity. Values: full_proration, no_proration, partial_proration.
add_timingstringnoTiming when adding items: immediate or end_of_period. Values: immediate, end_of_period.
remove_timingstringnoTiming when removing items: immediate or end_of_period. Values: immediate, end_of_period.
quantity_up_timingstringnoTiming when increasing quantity: immediate or end_of_period. Values: immediate, end_of_period.
quantity_down_timingstringnoTiming when decreasing quantity: immediate or end_of_period. Values: immediate, end_of_period.
refund_on_removebooleannoWhen true, issues a refund to the customer when items are removed. Requires credit_on_remove to be enabled.
credit_on_removebooleannoWhen true, issues a credit in favor of the customer when items are removed.
portal_self_servicebooleannoWhen true, lets customers change their own subscription from the portal.
portal_require_confirmationbooleannoWhen true, requires explicit customer confirmation before applying the change in the portal.
external_idstringnoIdentifier in your external system, for idempotency/sync.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).

More fields and nested objects: kobana schema billing.subscription-changes.config.update.

Responses

HTTPDescription
200Configuration updated.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.