Skip to main content

kobana billing service-items

Commands of kobana billing service-items. Every global option (Global options) applies here.

CommandHTTPDescription
service-items listGET /v1/service_itemsList service items
service-items createPOST /v1/service_itemsCreate service item
service-items updatePUT /v1/service_itemsUpsert service item
service-items getGET /v1/service_items/{id}Get service item
service-items deleteDELETE /v1/service_items/{id}Delete service item

service-items list​

List service items

kobana billing service-items list [OPTIONS]

GET /v1/service_items

Returns a paginated list of the current organization's service items (LC 116/2003 catalog). Use the filters to narrow by company, LC 116 code, NBS, tax classification, operation indicator, or Simples annex.

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 UUID of the issuing company associated with the item.
searchstringnoFree-text search across name, internal_code and description.
is_activestringnoFilter by status: true returns only active items; false, only inactive. Values: true, false.
lc116_codestringnoFilter by LC 116/2003 code (e.g. 01.05).
nbs_codestringnoFilter by NBS code (Brazilian Service Nomenclature).
c_class_tribstringnoFilter by IBS/CBS tax classification (c_class_trib).
indop_codestringnoFilter by Operation Indicator (indop_code) used in SNNFSE NFS-e.
simples_annexstringnoFilter by applicable Simples Nacional annex: annex_iii, annex_iv or annex_v. Values: annex_iii, annex_iv, annex_v.
cnae_codestringnoFilter by CNAE code related to the service.
municipal_codestringnoFilter by municipal service code.
internal_codestringnoFilter by internal item code.
cbs_ibs_categorystringnoFilter by CBS/IBS category for the item per the tax reform.
created_afterstringnoStart of creation date range (YYYY-MM-DD).
created_beforestringnoEnd of creation date range (YYYY-MM-DD).

Responses

HTTPDescription
200Paginated list of service items.
404Resource not found in the current organization.

service-items create​

Create service item

kobana billing service-items create [OPTIONS]

POST /v1/service_items

Creates a service item in the LC 116/2003 catalog. internal_code is the internal identifier and lc116_code must follow the Complementary Law 116/2003 catalog (e.g. 01.05). When company_id is provided, the company must belong to the authenticated organization.

Request body

NameTypeRequiredDescription
namestringyesService item name.
internal_codestringyesInternal item code — immutable after creation.
lc116_codestringyesLC 116/2003 service code (e.g. 01.05).
external_idstringnoIdentifier in your external system, for idempotency/sync.
company_idstring (uuid)noUUID of the associated issuing company. Omit or send null for an item applicable to all companies.
descriptionstringnoOptional description.
municipal_codestringnoMunicipal service code, when applicable.
nbs_codestringnoNBS code.
cnae_codestringnoRelated CNAE code.
simples_annexstringnoApplicable Simples Nacional annex: annex_iii, annex_iv or annex_v. Values: annex_iii, annex_iv, annex_v.
default_iss_ratenumbernoDefault ISS rate in percentage points (e.g. 2.5).
c_class_tribstringnoIBS/CBS CST tax classification.
cbs_ibs_categorystringnoCBS/IBS category for the item.
indop_codestringnoSNNFSE NFS-e Operation Indicator (indOp).
custom_metadataobjectnoArbitrary client-defined metadata (key/value).

More fields and nested objects: kobana schema billing.service-items.create.

Responses

HTTPDescription
201Service item created.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

service-items update​

Upsert service item

kobana billing service-items update [OPTIONS]

PUT /v1/service_items

Takes the same body as POST, plus id and public_id, and dedups on id, public_id, external_id and the resource's natural keys, in that order, stopping at the first key that finds a record. A match is updated and returns 200; otherwise the record is created and returns 201. The POST's required fields are required only when no record is found, and updates are partial: absent fields keep their stored value.

Request body

NameTypeRequiredDescription
external_idstringnoIdentifier in your external system, for idempotency/sync.
company_idstring (uuid)noUUID of the associated issuing company. Omit or send null for an item applicable to all companies.
namestringnoService item name.
descriptionstringnoOptional description.
internal_codestringnoInternal item code — immutable after creation.
lc116_codestringnoLC 116/2003 service code (e.g. 01.05).
municipal_codestringnoMunicipal service code, when applicable.
nbs_codestringnoNBS code.
cnae_codestringnoRelated CNAE code.
simples_annexstringnoApplicable Simples Nacional annex: annex_iii, annex_iv or annex_v. Values: annex_iii, annex_iv, annex_v.
default_iss_ratenumbernoDefault ISS rate in percentage points (e.g. 2.5).
c_class_tribstringnoIBS/CBS CST tax classification.
cbs_ibs_categorystringnoCBS/IBS category for the item.
indop_codestringnoSNNFSE NFS-e Operation Indicator (indOp).
custom_metadataobjectnoArbitrary client-defined metadata (key/value).
idstring (uuid)noRecord UUID. Used only to locate it — never written.
public_idstring (uuid)noPublic UUID of the record, used to locate it.

More fields and nested objects: kobana schema billing.service-items.update.

Responses

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

service-items get​

Get service item

kobana billing service-items get [ID] [OPTIONS]

GET /v1/service_items/{id}

Path arguments: id

Responses

HTTPDescription
200Service item detail.
404Resource not found in the current organization.

service-items delete​

Delete service item

kobana billing service-items delete [ID] [OPTIONS]

DELETE /v1/service_items/{id}

Deletes the service item (soft delete: deleted_at — it disappears from every read; tax rules, products and issued NFS-e that cite it keep the reference). Requires the delete access level. To just stop using it, deactivate it (PATCH with is_active=false). Until October 2026 this route deleted the item for good, or only deactivated it when a tax rule used it.

Path arguments: id

Responses

HTTPDescription
200Service item deleted.
404Resource not found in the current organization.
422Request body failed validation.