Skip to main content

kobana billing tax-periods

Commands of kobana billing tax-periods. Every global option (Global options) applies here.

CommandHTTPDescription
tax-periods listGET /v1/tax_periodsList tax periods
tax-periods createPOST /v1/tax_periodsProcess monthly tax period
tax-periods getGET /v1/tax_periods/{id}Get tax period
tax-periods updatePATCH /v1/tax_periods/{id}Run action on tax period
tax-periods deleteDELETE /v1/tax_periods/{id}Delete tax period

tax-periods list​

List tax periods

kobana billing tax-periods list [OPTIONS]

GET /v1/tax_periods

Returns a paginated list of the organization tax periods (monthly or quarterly). Supports filtering by company, period type, year and status.

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.
company_idstringnoFilter by issuing company.
period_typestringnoFilter by period type: monthly or quarterly. Values: monthly, quarterly.
yearstringnoFilter by reference year (e.g.: 2026).
statusstringnoFilter by status: open, calculated or closed. Values: open, calculated, closed.
monthintegernoFilter by reference month (1 to 12).
quarterintegernoFilter by reference quarter (1 to 4).
gross_revenue_minnumber,nullnoMinimum gross revenue for the period, in BRL (e.g.: 1000.00).
gross_revenue_maxnumber,nullnoMaximum gross revenue for the period, in BRL (e.g.: 50000.00).
das_estimated_minnumber,nullnoMinimum estimated DAS for the period, in BRL (e.g.: 100.00).
das_estimated_maxnumber,nullnoMaximum estimated DAS for the period, in BRL (e.g.: 5000.00).
closed_afterstringnoReturns periods closed on or after this date (format YYYY-MM-DD).
closed_beforestringnoReturns periods closed on or before this date (format YYYY-MM-DD).
created_afterstringnoStart of creation date range (YYYY-MM-DD).
created_beforestringnoEnd of creation date range (YYYY-MM-DD).

Responses

HTTPDescription
200Paginated list of tax periods.
404Resource not found in the current organization.

tax-periods create​

Process monthly tax period

kobana billing tax-periods create [OPTIONS]

POST /v1/tax_periods

Creates (or retrieves) the given monthly tax period and computes the taxes due (ISS, PIS, COFINS, IRPJ, CSLL, CBS, IBS) based on issued NFes and pending compensation. When company_id is omitted, uses the organization default company.

Request body

NameTypeRequiredDescription
yearintegeryesReference year (e.g.: 2026).
monthintegeryesReference month (1 to 12).
company_idstring (uuid)noUUID of the issuing company. Omit to use the organization default company.
external_idstringnoIdentifier in your external system, for idempotency/sync.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).

More fields and nested objects: kobana schema billing.tax-periods.create.

Responses

HTTPDescription
201Tax period processed.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

tax-periods get​

Get tax period

kobana billing tax-periods get [ID] [OPTIONS]

GET /v1/tax_periods/{id}

Path arguments: id

Responses

HTTPDescription
200Tax period detail.
404Resource not found in the current organization.

tax-periods update​

Run action on tax period

kobana billing tax-periods update [ID] [OPTIONS]

PATCH /v1/tax_periods/{id}

Applies an action to the period: recalculate recomputes taxes (monthly periods only), close closes the period and reopen reopens it.

Path arguments: id

Request body

NameTypeRequiredDescription
actionstringyesAction to execute: recalculate, close or reopen. Values: recalculate, close, reopen.

More fields and nested objects: kobana schema billing.tax-periods.update.

Responses

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

tax-periods delete​

Delete tax period

kobana billing tax-periods delete [ID] [OPTIONS]

DELETE /v1/tax_periods/{id}

Permanently removes the tax period. Use with caution — closed periods usually should not be deleted.

Path arguments: id

Responses

HTTPDescription
200Tax period removed.
404Resource not found in the current organization.