kobana finance organization
Obter a organização do token
Comandos de kobana finance organization. Toda opção global (Opções globais) vale aqui.
| Comando | HTTP | Descrição |
|---|---|---|
organization | GET /v1/organization | Obter a organização do token |
organization update | PATCH /v1/organization | Atualizar 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
| HTTP | Descrição |
|---|---|
200 | The 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
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
trade_name | string | não | Trade name. null clears it. |
website | string (uri) | não | Website URL. null clears it. |
addresses | array<object> | não | Replaces the whole address list. [] clears it. |
custom_metadata | object | não | Metadados do usuário: objeto JSON livre. null mantém o valor atual. Máx. 64 KB serializado, 16 níveis. |
custom_metadata_mode | string | não | Como 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
| HTTP | Descrição |
|---|---|
200 | The updated organization. |
400 | Malformed JSON body. |
422 | Schema validation failure, including a read-only or unknown field. |