Pular para o conteúdo principal

kobana finance organization

Obter a organização do token

Comandos de kobana finance organization. Toda opção global (Opções globais) vale aqui.

ComandoHTTPDescrição
organizationGET /v1/organizationObter a organização do token
organization updatePATCH /v1/organizationAtualizar o perfil da organização

organization​

Obter a organização do token

kobana finance organization [OPÇÕES] [COMANDO]

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.

Respostas

HTTPDescrição
200The organization of the token.

organization update​

Atualizar o perfil da organização

kobana finance organization update [OPÇÕES]

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.

Corpo da requisição

NomeTipoObrigatórioDescrição
trade_namestringnãoTrade name. null clears it.
websitestring (uri)nãoWebsite URL. null clears it.
addressesarray<object>nãoReplaces the whole address list. [] clears it.
custom_metadataobjectnãoMetadados do usuário: objeto JSON livre. null mantém o valor atual. Máx. 64 KB serializado, 16 níveis.
custom_metadata_modestringnãoComo o custom_metadata enviado é reconciliado com o valor armazenado: replace (padrão) substitui o objeto inteiro, merge faz deep merge sobre o valor atual. Valores: replace, merge.

Outros campos e objetos aninhados: kobana schema finance.organization.update.

Respostas

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