Skip to main content

kobana billing subscription-item-changes

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

CommandHTTPDescription
subscription-item-changes listGET /v1/subscription_item_changesList subscription item changes
subscription-item-changes getGET /v1/subscription_item_changes/{id}Get subscription item change
subscription-item-changes cancelPOST /v1/subscription_item_changes/{id}/cancelCancel a scheduled change

subscription-item-changes list​

List subscription item changes

kobana billing subscription-item-changes list [OPTIONS]

GET /v1/subscription_item_changes

Returns a paginated list of changes applied (or scheduled) to the organization's subscription items — additions, removals, quantity changes and price swaps. Each record includes the operations snapshot, proration amounts in BRL (float, up to 4 decimal places) and pointers to the resulting invoice/credit.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
person_idstringnoFilter by associated person UUID.
person_document_numberstringnoFilter by person CPF/CNPJ (exact match).
person_name_containsstringnoFilter by person name (partial search, case-insensitive).
subscription_idstringnoFilter by changes of a specific subscription.
billing_account_idstringnoFilter by changes of a specific billing account.
statusstringnoFilter by status: pending, scheduled, completed, canceled or failed. Values: pending, scheduled, completed, canceled, failed.
timingstringnoFilter by the timing of the change application: immediate or end_of_period. Values: immediate, end_of_period.
initiated_by_rolestringnoFilter by the origin of the change: dashboard, portal or api. Values: dashboard, portal, api.
proration_charge_minnumber,nullnoMinimum proration charge amount in BRL (R$). Internally stored in BRL (float, up to 4 decimal places).
proration_charge_maxnumber,nullnoMaximum proration charge amount in BRL (R$). Internally stored in BRL (float, up to 4 decimal places).
proration_credit_minnumber,nullnoMinimum proration credit amount in BRL (R$). Internally stored in BRL (float, up to 4 decimal places).
proration_credit_maxnumber,nullnoMaximum proration credit amount in BRL (R$). Internally stored in BRL (float, up to 4 decimal places).
effective_date_fromstringnoMinimum effective date of the change (inclusive), in YYYY-MM-DD format.
effective_date_tostringnoMaximum effective date of the change (inclusive), in YYYY-MM-DD format.
created_afterstringnoStart of creation date range (YYYY-MM-DD).
created_beforestringnoEnd of creation date range (YYYY-MM-DD).

Responses

HTTPDescription
200Paginated list of item changes.
404Resource not found in the current organization.

subscription-item-changes get​

Get subscription item change

kobana billing subscription-item-changes get [ID] [OPTIONS]

GET /v1/subscription_item_changes/{id}

Path arguments: id

Responses

HTTPDescription
200Item change detail.
404Resource not found in the current organization.

subscription-item-changes cancel​

Cancel a scheduled change

kobana billing subscription-item-changes cancel [ID] [OPTIONS]

POST /v1/subscription_item_changes/{id}/cancel

Cancels an item change that is still scheduled (timing=end_of_period). Changes already applied cannot be canceled. Returns the record with its new status. Requires the write access level. Replaces DELETE /v1/subscription_item_changes/{id}, which was removed.

Path arguments: id

Responses

HTTPDescription
200Change canceled.
404Resource not found in the current organization.
422Request body failed validation.