Pular para o conteúdo principal

Financeiro

Gerencie lancamentos financeiros, categorias, contas bancarias, medicoes, notas fiscais, cobrancas e provisionamento.

Lancamentos Financeiros

Listar Lancamentos

GET /external/v1/financial-entries

Retorna uma lista paginada de lancamentos financeiros.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
searchstringNaoBusca por titulo
typeCategorystringNaoREVENUE (receita) ou EXPENSE (despesa)
statusstringNaoPENDING, SETTLED, OVERDUE, CANCELLED
personIdstringNaoFiltro por pessoa vinculada
dueDateFromstringNaoVencimento a partir de (ISO 8601: YYYY-MM-DD)
dueDateTostringNaoVencimento ate (ISO 8601: YYYY-MM-DD)
orderBystringNaoCampo: title, originalDueDate, originalAmount, createdAt (default: createdAt)
orderstringNaoASC ou DESC (default: DESC)

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/financial-entries?typeCategory=REVENUE&status=PENDING&dueDateFrom=2026-03-01&dueDateTo=2026-03-31&limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clx5e6f7g8h9i0j1k2l3m4n5",
"code": "REC-2030",
"title": "Fatura Mensal - Tech Solutions",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"typeCategory": "REVENUE",
"status": "PENDING",
"originalAmount": 8500.00,
"paidAmount": null,
"originalDueDate": "2026-03-31T00:00:00.000Z",
"paymentDate": null,
"financialCategoryId": "clxcat001",
"financialCategoryName": "Servicos Prestados",
"bankAccountId": "clxbank001",
"bankAccountName": "Conta Principal - Itau",
"paymentMethod": "BANK_SLIP",
"installmentNumber": 1,
"totalInstallments": 1,
"isActive": true,
"createdAt": "2026-03-01T09:00:00.000Z",
"updatedAt": "2026-03-01T09:00:00.000Z"
}
],
"meta": {
"total": 34,
"page": 1,
"limit": 20,
"totalPages": 2
}
}

Buscar Lancamento por ID

GET /external/v1/financial-entries/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/financial-entries/clx5e6f7g8h9i0j1k2l3m4n5" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clx5e6f7g8h9i0j1k2l3m4n5",
"code": "REC-2030",
"title": "Fatura Mensal - Tech Solutions",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"typeCategory": "REVENUE",
"status": "PENDING",
"originalAmount": 8500.00,
"paidAmount": null,
"discountAmount": 0,
"interestAmount": 0,
"fineAmount": 0,
"originalDueDate": "2026-03-31T00:00:00.000Z",
"paymentDate": null,
"financialCategoryId": "clxcat001",
"financialCategoryName": "Servicos Prestados",
"bankAccountId": "clxbank001",
"bankAccountName": "Conta Principal - Itau",
"paymentMethod": "BANK_SLIP",
"installmentNumber": 1,
"totalInstallments": 1,
"notes": "Referente ao contrato mensal de suporte tecnico.",
"isActive": true,
"createdAt": "2026-03-01T09:00:00.000Z",
"updatedAt": "2026-03-01T09:00:00.000Z"
}

Criar Lancamento

POST /external/v1/financial-entries

Body:

CampoTipoObrigatorioDescricao
personIdstringSimID da pessoa vinculada
titlestringSimTitulo do lancamento (max: 255)
typeCategorystringSimREVENUE (receita) ou EXPENSE (despesa)
originalAmountnumberSimValor original (deve ser maior que zero)
originalDueDatestringSimData de vencimento (ISO 8601: YYYY-MM-DD)
financialCategoryIdstringSimID da categoria financeira
bankAccountIdstringSimID da conta bancaria
paymentMethodstringNaoMetodo de pagamento (ver enum abaixo)
totalInstallmentsnumberNaoNumero de parcelas (default: 1, max: 120)
notesstringNaoObservacoes

Exemplo — Lancamento avista:

curl -X POST "https://api.tesselys.com.br/external/v1/financial-entries" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"title": "Consultoria Tributaria - Marco/2026",
"typeCategory": "REVENUE",
"originalAmount": 4500.00,
"originalDueDate": "2026-04-10",
"financialCategoryId": "clxcat001",
"bankAccountId": "clxbank001",
"paymentMethod": "PIX"
}'

Resposta (201):

{
"id": "clx6f7g8h9i0j1k2l3m4n5o6",
"code": "REC-2031",
"title": "Consultoria Tributaria - Marco/2026",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"typeCategory": "REVENUE",
"status": "PENDING",
"originalAmount": 4500.00,
"paidAmount": null,
"originalDueDate": "2026-04-10T00:00:00.000Z",
"paymentDate": null,
"financialCategoryId": "clxcat001",
"financialCategoryName": "Servicos Prestados",
"bankAccountId": "clxbank001",
"bankAccountName": "Conta Principal - Itau",
"paymentMethod": "PIX",
"installmentNumber": 1,
"totalInstallments": 1,
"isActive": true,
"createdAt": "2026-03-25T10:30:00.000Z",
"updatedAt": "2026-03-25T10:30:00.000Z"
}

Exemplo — Lancamento parcelado:

curl -X POST "https://api.tesselys.com.br/external/v1/financial-entries" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"title": "Licenca Anual de Software",
"typeCategory": "EXPENSE",
"originalAmount": 24000.00,
"originalDueDate": "2026-04-01",
"financialCategoryId": "clxcat005",
"bankAccountId": "clxbank001",
"paymentMethod": "CREDIT_CARD",
"totalInstallments": 12,
"notes": "Licenca anual do software de gestao. 12x de R$ 2.000,00."
}'
Parcelamento

Quando totalInstallments > 1, o sistema cria automaticamente as parcelas com vencimentos mensais a partir da originalDueDate. O valor de cada parcela e calculado automaticamente (originalAmount / totalInstallments).


Categorias Financeiras

Somente leitura

Categorias financeiras sao gerenciadas pelo painel da Tesselys. A API Externa permite apenas consulta.

Listar Categorias

GET /external/v1/financial-categories

Retorna uma lista paginada de categorias financeiras.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
typestringNaoREVENUE (receita) ou EXPENSE (despesa)

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/financial-categories?type=REVENUE&limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxcat001a2b3c4d5e6f7g8h9",
"name": "Servicos Prestados",
"type": "REVENUE",
"parentId": null,
"code": "1.01",
"isActive": true
},
{
"id": "clxcat002b3c4d5e6f7g8h9i0",
"name": "Consultoria",
"type": "REVENUE",
"parentId": "clxcat001a2b3c4d5e6f7g8h9",
"code": "1.01.01",
"isActive": true
}
],
"meta": {
"total": 18,
"page": 1,
"limit": 20,
"totalPages": 1
}
}

Buscar Categoria por ID

GET /external/v1/financial-categories/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/financial-categories/clxcat001a2b3c4d5e6f7g8h9" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxcat001a2b3c4d5e6f7g8h9",
"name": "Servicos Prestados",
"type": "REVENUE",
"parentId": null,
"code": "1.01",
"isActive": true
}

Contas Bancarias

Somente leitura

Contas bancarias sao gerenciadas pelo painel da Tesselys. A API Externa permite apenas consulta.

Listar Contas Bancarias

GET /external/v1/bank-accounts

Retorna uma lista paginada de contas bancarias.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/bank-accounts?limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxbank01a2b3c4d5e6f7g8h9",
"bankName": "Itau Unibanco",
"agency": "1234",
"accountNumber": "56789-0",
"accountType": "CHECKING",
"balance": 45320.50,
"isActive": true
},
{
"id": "clxbank02b3c4d5e6f7g8h9i0",
"bankName": "Banco do Brasil",
"agency": "5678",
"accountNumber": "12345-6",
"accountType": "SAVINGS",
"balance": 12000.00,
"isActive": true
}
],
"meta": {
"total": 3,
"page": 1,
"limit": 20,
"totalPages": 1
}
}

Buscar Conta Bancaria por ID

GET /external/v1/bank-accounts/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/bank-accounts/clxbank01a2b3c4d5e6f7g8h9" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxbank01a2b3c4d5e6f7g8h9",
"bankName": "Itau Unibanco",
"agency": "1234",
"accountNumber": "56789-0",
"accountType": "CHECKING",
"balance": 45320.50,
"isActive": true
}

Medicoes (Measurements)

Listar Medicoes

GET /external/v1/measurements

Retorna uma lista paginada de medicoes.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
statusstringNaoDRAFT, SUBMITTED, APPROVED, REJECTED
personIdstringNaoFiltro por pessoa vinculada

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/measurements?status=APPROVED&limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxmsr01a2b3c4d5e6f7g8h9",
"title": "Medicao Marco/2026 - Projeto Alpha",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"measurementType": "DETAILED",
"status": "APPROVED",
"totalAmount": 32500.00,
"startDate": "2026-03-01T00:00:00.000Z",
"endDate": "2026-03-31T00:00:00.000Z",
"createdAt": "2026-03-25T14:00:00.000Z"
}
],
"meta": {
"total": 12,
"page": 1,
"limit": 20,
"totalPages": 1
}
}

Buscar Medicao por ID

GET /external/v1/measurements/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/measurements/clxmsr01a2b3c4d5e6f7g8h9" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxmsr01a2b3c4d5e6f7g8h9",
"title": "Medicao Marco/2026 - Projeto Alpha",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"measurementType": "DETAILED",
"status": "APPROVED",
"totalAmount": 32500.00,
"startDate": "2026-03-01T00:00:00.000Z",
"endDate": "2026-03-31T00:00:00.000Z",
"createdAt": "2026-03-25T14:00:00.000Z"
}

Criar Medicao

POST /external/v1/measurements

Body:

CampoTipoObrigatorioDescricao
titlestringSimTitulo da medicao (max: 255)
personIdstringSimID da pessoa vinculada
measurementTypestringNaoSIMPLE ou DETAILED (default: SIMPLE)
startDatestringNaoData de inicio (ISO 8601: YYYY-MM-DD)
endDatestringNaoData de fim (ISO 8601: YYYY-MM-DD)

Exemplo de requisicao:

curl -X POST "https://api.tesselys.com.br/external/v1/measurements" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"title": "Medicao Abril/2026 - Projeto Beta",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"measurementType": "SIMPLE",
"startDate": "2026-04-01",
"endDate": "2026-04-30"
}'

Resposta (201):

{
"id": "clxmsr02b3c4d5e6f7g8h9i0",
"title": "Medicao Abril/2026 - Projeto Beta",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"measurementType": "SIMPLE",
"status": "DRAFT",
"totalAmount": 0,
"startDate": "2026-04-01T00:00:00.000Z",
"endDate": "2026-04-30T00:00:00.000Z",
"createdAt": "2026-03-26T10:00:00.000Z"
}

Notas Fiscais (Invoices)

Listar Notas Fiscais

GET /external/v1/invoices

Retorna uma lista paginada de notas fiscais.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
statusstringNaoDRAFT, SENT, PAID, CANCELLED
personIdstringNaoFiltro por pessoa vinculada

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/invoices?status=SENT&limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxinv01a2b3c4d5e6f7g8h9",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"measurementId": "clxmsr01a2b3c4d5e6f7g8h9",
"invoiceAmount": 32500.00,
"status": "SENT",
"dueDate": "2026-04-15T00:00:00.000Z",
"createdAt": "2026-03-26T11:00:00.000Z"
}
],
"meta": {
"total": 8,
"page": 1,
"limit": 20,
"totalPages": 1
}
}

Buscar Nota Fiscal por ID

GET /external/v1/invoices/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/invoices/clxinv01a2b3c4d5e6f7g8h9" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxinv01a2b3c4d5e6f7g8h9",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"measurementId": "clxmsr01a2b3c4d5e6f7g8h9",
"invoiceAmount": 32500.00,
"status": "SENT",
"dueDate": "2026-04-15T00:00:00.000Z",
"createdAt": "2026-03-26T11:00:00.000Z"
}

Criar Nota Fiscal

POST /external/v1/invoices

Body:

CampoTipoObrigatorioDescricao
personIdstringSimID da pessoa vinculada
measurementIdstringNaoID da medicao associada
invoiceAmountnumberSimValor da nota fiscal (deve ser maior que zero)
dueDatestringNaoData de vencimento (ISO 8601: YYYY-MM-DD)
descriptionstringNaoDescricao da nota fiscal

Exemplo de requisicao:

curl -X POST "https://api.tesselys.com.br/external/v1/invoices" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"measurementId": "clxmsr01a2b3c4d5e6f7g8h9",
"invoiceAmount": 32500.00,
"dueDate": "2026-04-15",
"description": "NF referente a medicao de marco/2026"
}'

Resposta (201):

{
"id": "clxinv02b3c4d5e6f7g8h9i0",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"measurementId": "clxmsr01a2b3c4d5e6f7g8h9",
"invoiceAmount": 32500.00,
"status": "DRAFT",
"dueDate": "2026-04-15T00:00:00.000Z",
"createdAt": "2026-03-26T11:30:00.000Z"
}

Cobrancas (Charges)

Somente leitura

Cobrancas sao geradas automaticamente pelo sistema de faturamento. A API Externa permite apenas consulta.

Listar Cobrancas

GET /external/v1/charges

Retorna uma lista paginada de cobrancas.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
statusstringNaoPENDING, CONFIRMED, RECEIVED, OVERDUE, REFUNDED, CANCELLED
personIdstringNaoFiltro por pessoa vinculada

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/charges?status=PENDING&limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxchg01a2b3c4d5e6f7g8h9",
"financialEntryId": "clx5e6f7g8h9i0j1k2l3m4n5",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"amount": 8500.00,
"status": "PENDING",
"dueDate": "2026-04-10T00:00:00.000Z",
"paidAt": null,
"paymentMethod": "PIX",
"createdAt": "2026-03-26T09:00:00.000Z"
}
],
"meta": {
"total": 5,
"page": 1,
"limit": 20,
"totalPages": 1
}
}

Buscar Cobranca por ID

GET /external/v1/charges/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/charges/clxchg01a2b3c4d5e6f7g8h9" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxchg01a2b3c4d5e6f7g8h9",
"financialEntryId": "clx5e6f7g8h9i0j1k2l3m4n5",
"personId": "clx1a2b3c4d5e6f7g8h9i0j1",
"personName": "Tech Solutions Ltda",
"amount": 8500.00,
"status": "PENDING",
"dueDate": "2026-04-10T00:00:00.000Z",
"paidAt": null,
"paymentMethod": "PIX",
"createdAt": "2026-03-26T09:00:00.000Z"
}

Provisionamento

Listar Provisionamentos

GET /external/v1/provisioning

Retorna uma lista paginada de provisionamentos financeiros.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
typeCategorystringNaoREVENUE (receita) ou EXPENSE (despesa)

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/provisioning?typeCategory=EXPENSE&limit=20" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxprv01a2b3c4d5e6f7g8h9",
"title": "Aluguel Escritorio Central",
"amount": 6500.00,
"typeCategory": "EXPENSE",
"repeatPeriod": "MONTHLY",
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": null,
"bankAccountId": "clxbank01a2b3c4d5e6f7g8h9",
"financialCategoryId": "clxcat003c4d5e6f7g8h9i0j1",
"personId": "clx2b3c4d5e6f7g8h9i0j1k2",
"costCenterId": "clxcc001a2b3c4d5e6f7g8h9",
"isActive": true,
"createdAt": "2026-01-05T08:00:00.000Z"
}
],
"meta": {
"total": 7,
"page": 1,
"limit": 20,
"totalPages": 1
}
}

Buscar Provisionamento por ID

GET /external/v1/provisioning/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/provisioning/clxprv01a2b3c4d5e6f7g8h9" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxprv01a2b3c4d5e6f7g8h9",
"title": "Aluguel Escritorio Central",
"amount": 6500.00,
"typeCategory": "EXPENSE",
"repeatPeriod": "MONTHLY",
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": null,
"bankAccountId": "clxbank01a2b3c4d5e6f7g8h9",
"financialCategoryId": "clxcat003c4d5e6f7g8h9i0j1",
"personId": "clx2b3c4d5e6f7g8h9i0j1k2",
"costCenterId": "clxcc001a2b3c4d5e6f7g8h9",
"isActive": true,
"createdAt": "2026-01-05T08:00:00.000Z"
}

Criar Provisionamento

POST /external/v1/provisioning

Body:

CampoTipoObrigatorioDescricao
titlestringSimTitulo do provisionamento (max: 255)
amountnumberSimValor provisionado (deve ser maior que zero)
typeCategorystringSimREVENUE (receita) ou EXPENSE (despesa)
startDatestringSimData de inicio (ISO 8601: YYYY-MM-DD)
repeatPeriodstringNaoMONTHLY, WEEKLY ou BIWEEKLY
bankAccountIdstringNaoID da conta bancaria
financialCategoryIdstringNaoID da categoria financeira
costCenterIdstringNaoID do centro de custo
personIdstringNaoID da pessoa vinculada

Exemplo de requisicao:

curl -X POST "https://api.tesselys.com.br/external/v1/provisioning" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"title": "Manutencao Mensal - Servidores",
"amount": 3200.00,
"typeCategory": "EXPENSE",
"startDate": "2026-04-01",
"repeatPeriod": "MONTHLY",
"bankAccountId": "clxbank01a2b3c4d5e6f7g8h9",
"financialCategoryId": "clxcat003c4d5e6f7g8h9i0j1",
"costCenterId": "clxcc001a2b3c4d5e6f7g8h9"
}'

Resposta (201):

{
"id": "clxprv02b3c4d5e6f7g8h9i0",
"title": "Manutencao Mensal - Servidores",
"amount": 3200.00,
"typeCategory": "EXPENSE",
"repeatPeriod": "MONTHLY",
"startDate": "2026-04-01T00:00:00.000Z",
"endDate": null,
"bankAccountId": "clxbank01a2b3c4d5e6f7g8h9",
"financialCategoryId": "clxcat003c4d5e6f7g8h9i0j1",
"personId": null,
"costCenterId": "clxcc001a2b3c4d5e6f7g8h9",
"isActive": true,
"createdAt": "2026-03-26T12:00:00.000Z"
}

Atualizar Provisionamento

PUT /external/v1/provisioning/:id

Aceita os mesmos campos do POST (todos opcionais na atualizacao).

Exemplo de requisicao:

curl -X PUT "https://api.tesselys.com.br/external/v1/provisioning/clxprv02b3c4d5e6f7g8h9i0" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"amount": 3500.00,
"personId": "clx2b3c4d5e6f7g8h9i0j1k2"
}'

Resposta (200):

{
"id": "clxprv02b3c4d5e6f7g8h9i0",
"title": "Manutencao Mensal - Servidores",
"amount": 3500.00,
"typeCategory": "EXPENSE",
"repeatPeriod": "MONTHLY",
"startDate": "2026-04-01T00:00:00.000Z",
"endDate": null,
"bankAccountId": "clxbank01a2b3c4d5e6f7g8h9",
"financialCategoryId": "clxcat003c4d5e6f7g8h9i0j1",
"personId": "clx2b3c4d5e6f7g8h9i0j1k2",
"costCenterId": "clxcc001a2b3c4d5e6f7g8h9",
"isActive": true,
"createdAt": "2026-03-26T12:00:00.000Z"
}

Valores de Enum

typeCategory

ValorDescricao
REVENUEReceita (conta a receber)
EXPENSEDespesa (conta a pagar)

status — Lancamentos (somente leitura)

ValorDescricao
PENDINGPendente — aguardando pagamento
SETTLEDLiquidado — pagamento confirmado
OVERDUEVencido — passou da data de vencimento sem pagamento
CANCELLEDCancelado

paymentMethod

ValorDescricao
PIXPIX
CREDIT_CARDCartao de credito
DEBIT_CARDCartao de debito
BANK_SLIPBoleto bancario
BANK_TRANSFERTransferencia bancaria
CASHDinheiro
CHECKCheque
OTHEROutro

accountType (Contas Bancarias)

ValorDescricao
CHECKINGConta corrente
SAVINGSConta poupanca

measurementType (Medicoes)

ValorDescricao
SIMPLEMedicao simples
DETAILEDMedicao detalhada

status — Medicoes

ValorDescricao
DRAFTRascunho — em elaboracao
SUBMITTEDSubmetida — aguardando aprovacao
APPROVEDAprovada
REJECTEDRejeitada

status — Notas Fiscais

ValorDescricao
DRAFTRascunho — em elaboracao
SENTEnviada ao cliente
PAIDPaga
CANCELLEDCancelada

status — Cobrancas

ValorDescricao
PENDINGPendente — aguardando pagamento
CONFIRMEDConfirmada — pagamento identificado
RECEIVEDRecebida — pagamento creditado
OVERDUEVencida — passou da data de vencimento
REFUNDEDEstornada
CANCELLEDCancelada

repeatPeriod (Provisionamento)

ValorDescricao
MONTHLYMensal
WEEKLYSemanal
BIWEEKLYQuinzenal