Skip to main content

kobana finance organization

Get the organization of the token

Commands of kobana finance organization. Every global option (Global options) applies here.

CommandHTTPDescription
organizationGET /v1/organizationGet the organization of the token
organization updatePATCH /v1/organizationUpdate the organization profile

organization​

Get the organization of the token

kobana finance organization [OPTIONS] [COMMAND]

GET /v1/organization

Returns the organization the Bearer token belongs to: its public id, registration (name, trade name, CNPJ/CPF), contacts, addresses and custom_metadata. Requires scope finance/settings with access level read. The organization comes only from the token — there is no {id} and no listing — and the route is organization-level, so no X-Workspace-Id header is needed. Commercial settings and secrets are never returned.

Responses

HTTPDescription
200The organization of the token.

organization update​

Update the organization profile

kobana finance organization update [OPTIONS]

PATCH /v1/organization

Partial update of the profile the customer owns: trade_name, website, addresses and custom_metadata. Requires scope finance/settings with access level write, the settings.update permission and, since the profile applies to every workspace, the organization owner or access to all of its workspaces. Identity (id, public_id, external_id), the fiscal document (document_type, document_number) and name, email and phone — mirrors of the Kobana Account, overwritten by the account sync — are not writable (422, like any unknown key); a commercial setting (courtesy, entitlements, partner_slug…) is a 403. custom_metadata: null keeps the stored value.

Request body

NameTypeRequiredDescription
trade_namestringnoTrade name. null clears it.
websitestring (uri)noWebsite URL. null clears it.
addressesarray<object>noReplaces the whole address list. [] clears it.
custom_metadataobjectnoMetadados do usuário: objeto JSON livre. null mantém o valor atual. Máx. 64 KB serializado, 16 níveis.
custom_metadata_modestringnoComo o custom_metadata enviado é reconciliado com o valor armazenado: replace (padrão) substitui o objeto inteiro, merge faz deep merge sobre o valor atual. Values: replace, merge.

More fields and nested objects: kobana schema finance.organization.update.

Responses

HTTPDescription
200The updated organization.
400Malformed JSON body.
422Schema validation failure, including a read-only or unknown field.