Informações |
---|
| Expandir |
---|
title | GET (Recuperar lançamentos contábeis do sistema) |
---|
| GET: Exemplos de requisições que buscam e recuperam lançamentos no sistema. Informações |
---|
| Expandir |
---|
title | Get All (Recuperar todas os Lançamento da coligada escolhida) |
---|
| Informações |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": true,
"items": [
{
"reversal": false,
"companyId": 6,
"entryId": 9,
"batchCode": 0,
"userId": "mestre",
"description": "GAS",
"accountEntry": [
{
"entryNumberId": 8,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2011-09-15T00:00:00-03:00",
"dateInclusion": "2017-09-15T11:44:42-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.892",
"debitDescription": "COLIG. 6 FILIAL 12",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.002",
"creditDescription": "Caixa Filial Rio de Janeiro",
"companyIdAgainstEntry": 0,
"value": 111.00,
"value2": 200.00,
"date2": "2011-09-15T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 8,
"idpartida": 8
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
},
{
"reversal": false,
"companyId": 6,
"entryId": 10,
"batchCode": 0,
"description": "ALTERADO VIA PUT API Alterado eae",
"accountEntry": [
{
"entryNumberId": 9,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T16:01:07-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.015",
"creditDescription": "200,00 C",
"companyIdAgainstEntry": 0,
"value": 300.00,
"value2": 400.00,
"date2": "2017-04-10T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 0,
"idpartida": 9
},
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 51,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2024-02-23T09:24:20-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.014",
"creditDescription": "IRRF",
"companyIdAgainstEntry": 0,
"value": 200.00,
"value2": 300.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {},
"batchCodeOrigin": 0,
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
}
]
} |
|
|
|
|
|
Informações |
---|
| Expandir |
---|
title | Order (Retorna os dados ordenados) |
---|
| Informações |
---|
| Order: parâmetro responsável pela ordenação do resultado, podendo ser ascendente ou descendente. O resultado com a ordem descendente deve ser precedida do caractere "-" (menos). Exemplo 1: ?order=campo1 (Ascendente) Exemplo 2: ?order=-campo1 (Descendente) Múltiplos campos de ordenação: ?order=[-]campo1, [-]campo2, [-]campo3 ... |
Informações |
---|
icon | false |
---|
title | Order (Asc) |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId}?order={campo} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": true,
"items": [
{
"reversal": false,
"companyId": 6,
"entryId": 10,
"batchCode": 0,
"description": "ALTERADO VIA PUT API Alterado eae",
"accountEntry": [
{
"entryNumberId": 9,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T16:01:07-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.015",
"creditDescription": "200,00 C",
"companyIdAgainstEntry": 0,
"value": 300.00,
"value2": 400.00,
"date2": "2017-04-10T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 0,
"idpartida": 9
},
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 51,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2024-02-23T09:24:20-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.014",
"creditDescription": "IRRF",
"companyIdAgainstEntry": 0,
"value": 200.00,
"value2": 300.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {},
"batchCodeOrigin": 0,
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
},
{
"reversal": false,
"companyId": 6,
"entryId": 11,
"batchCode": 0,
"description": "BLOCO K",
"accountEntry": [
{
"entryNumberId": 10,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T17:06:56-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.016",
"debitDescription": "585,76 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.018",
"creditDescription": "585,76 C",
"companyIdAgainstEntry": 0,
"value": 585.76,
"value2": 1171.52,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 10,
"idpartida": 10
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 11,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"costCenterCode": "211",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:10:39-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.017",
"debitDescription": "1122,12 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.019",
"creditDescription": "1122,12 C",
"companyIdAgainstEntry": 0,
"value": 1122.12,
"value2": 2244.24,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "X",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 11,
"idpartida": 11
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 12,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:26:03-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.020",
"debitDescription": "6,00 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.018",
"creditDescription": "6,00 C",
"companyIdAgainstEntry": 0,
"value": 6.00,
"value2": 12.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 12,
"idpartida": 12
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 13,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"costCenterCode": "211",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:36:57-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.019",
"debitDescription": "256,00 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.021",
"creditDescription": "256,00 C",
"companyIdAgainstEntry": 0,
"value": 256.00,
"value2": 512.00,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 13,
"idpartida": 13
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
}
]
} |
|
|
|
|
|
Informações |
---|
| Expandir |
---|
title | Order Desc (Ordena o resultado de forma decrescente) |
---|
| Informações |
---|
icon | false |
---|
title | Order (Desc) |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId}?order=[-]{campo} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": true,
"items": [
{
"reversal": false,
"companyId": 6,
"entryId": 10,
"batchCode": 0,
"description": "ALTERADO VIA PUT API Alterado eae",
"accountEntry": [
{
"entryNumberId": 9,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T16:01:07-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.015",
"creditDescription": "200,00 C",
"companyIdAgainstEntry": 0,
"value": 300.00,
"value2": 400.00,
"date2": "2017-04-10T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 0,
"idpartida": 9
},
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 51,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2024-02-23T09:24:20-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.014",
"creditDescription": "IRRF",
"companyIdAgainstEntry": 0,
"value": 200.00,
"value2": 300.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {},
"batchCodeOrigin": 0,
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
},
{
"reversal": false,
"companyId": 6,
"entryId": 11,
"batchCode": 0,
"description": "BLOCO K",
"accountEntry": [
{
"entryNumberId": 10,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T17:06:56-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.016",
"debitDescription": "585,76 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.018",
"creditDescription": "585,76 C",
"companyIdAgainstEntry": 0,
"value": 585.76,
"value2": 1171.52,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 10,
"idpartida": 10
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 11,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"costCenterCode": "211",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:10:39-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.017",
"debitDescription": "1122,12 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.019",
"creditDescription": "1122,12 C",
"companyIdAgainstEntry": 0,
"value": 1122.12,
"value2": 2244.24,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "X",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 11,
"idpartida": 11
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 12,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:26:03-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.020",
"debitDescription": "6,00 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.018",
"creditDescription": "6,00 C",
"companyIdAgainstEntry": 0,
"value": 6.00,
"value2": 12.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 12,
"idpartida": 12
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 13,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"costCenterCode": "211",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:36:57-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.019",
"debitDescription": "256,00 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.021",
"creditDescription": "256,00 C",
"companyIdAgainstEntry": 0,
"value": 256.00,
"value2": 512.00,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 13,
"idpartida": 13
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
}
]
} |
|
|
|
|
|
Informações |
---|
| Expandir |
---|
title | Filter (Resultado filtrado) |
---|
| Informações |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId}?{campo}={valor} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": false,
"items": [
{
"reversal": false,
"companyId": 6,
"entryId": 9,
"batchCode": 0,
"userId": "mestre",
"description": "GAS",
"accountEntry": [
{
"entryNumberId": 8,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2011-09-15T00:00:00-03:00",
"dateInclusion": "2017-09-15T11:44:42-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.892",
"debitDescription": "COLIG. 6 FILIAL 12",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.002",
"creditDescription": "Caixa Filial Rio de Janeiro",
"companyIdAgainstEntry": 0,
"value": 111.00,
"value2": 200.00,
"date2": "2011-09-15T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 8,
"idpartida": 8
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
}
]
} |
|
|
|
|
|
Informações |
---|
| Expandir |
---|
title | Paginação (Retorno de quantidades específicas por página) |
---|
| Informações |
---|
| Page: Página que será apresentada. PageSize: Quantidade máxima de registros por página que serão apresentados. Exemplo: ?page=1&pageSize=1 Valores padrão: Caso não sejam preenchidos os parâmetros evidenciados acima serão preenchidos com valores padrão. Page: 1 PageSize: 20 |
Informações |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId}?page={valor1}&pageSize={valor2} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": true,
"items": [
{
"reversal": false,
"companyId": 6,
"entryId": 9,
"batchCode": 0,
"userId": "mestre",
"description": "GAS",
"accountEntry": [
{
"entryNumberId": 8,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2011-09-15T00:00:00-03:00",
"dateInclusion": "2017-09-15T11:44:42-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.892",
"debitDescription": "COLIG. 6 FILIAL 12",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.002",
"creditDescription": "Caixa Filial Rio de Janeiro",
"companyIdAgainstEntry": 0,
"value": 111.00,
"value2": 200.00,
"date2": "2011-09-15T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 8,
"idpartida": 8
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
},
{
"reversal": false,
"companyId": 6,
"entryId": 10,
"batchCode": 0,
"description": "ALTERADO VIA PUT API Alterado eae",
"accountEntry": [
{
"entryNumberId": 9,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T16:01:07-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.015",
"creditDescription": "200,00 C",
"companyIdAgainstEntry": 0,
"value": 300.00,
"value2": 400.00,
"date2": "2017-04-10T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 0,
"idpartida": 9
},
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 51,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2024-02-23T09:24:20-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.017",
"debitDescription": "BLOCO K 200 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.014",
"creditDescription": "IRRF",
"companyIdAgainstEntry": 0,
"value": 200.00,
"value2": 300.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {},
"batchCodeOrigin": 0,
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
},
{
"reversal": false,
"companyId": 6,
"entryId": 11,
"batchCode": 0,
"description": "BLOCO K",
"accountEntry": [
{
"entryNumberId": 10,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T17:06:56-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.016",
"debitDescription": "585,76 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.018",
"creditDescription": "585,76 C",
"companyIdAgainstEntry": 0,
"value": 585.76,
"value2": 1171.52,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 10,
"idpartida": 10
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 11,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"costCenterCode": "211",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:10:39-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.017",
"debitDescription": "1122,12 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.019",
"creditDescription": "1122,12 C",
"companyIdAgainstEntry": 0,
"value": 1122.12,
"value2": 2244.24,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "X",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 11,
"idpartida": 11
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 12,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:26:03-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.020",
"debitDescription": "6,00 D",
"companyIdCreditAccount": 6,
"creditAccount": "2.1.1.1.018",
"creditDescription": "6,00 C",
"companyIdAgainstEntry": 0,
"value": 6.00,
"value2": 12.00,
"date2": "2017-04-11T00:00:00-03:00",
"historicCode": "011",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 12,
"idpartida": 12
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
},
{
"entryNumberId": 13,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"costCenterCode": "211",
"date": "2017-04-11T00:00:00-03:00",
"dateInclusion": "2018-04-11T18:36:57-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "2.1.1.1.019",
"debitDescription": "256,00 D",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.021",
"creditDescription": "256,00 C",
"companyIdAgainstEntry": 0,
"value": 256.00,
"value2": 512.00,
"date2": "2017-04-11T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 13,
"idpartida": 13
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
}
]
} |
|
|
|
|
|
Informações |
---|
| Expandir |
---|
title | Fields (Retorno de campos específicos no resultado) |
---|
| Informações |
---|
| Fields: parâmetro responsável pela especialização de campos em um resultado, ou seja, o usuário define quais campos serão apresentados no resultado. Exemplo: ?fields=campo1 Múltiplos campos de ordenação: ?fields=campo1, campo2, campo3 ... |
Informações |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId}?fields={campos} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": false,
"items": [
{
"entryId": 9,
"batchCode": 0,
"description": "GAS"
},
{
"entryId": 10,
"batchCode": 0,
"description": "BLOCO K"
},
{
"entryId": 11,
"batchCode": 0,
"description": "BLOCO K"
},
{
"entryId": 12,
"batchCode": 0,
"description": "EQUIVALENCIA - AUTOMAÇÃO put"
},
{
"entryId": 14,
"batchCode": 50,
"description": "Contabilização aquisição do Patrimônio 01.01.001__1"
},
{
"entryId": 20,
"batchCode": 0,
"description": "GAS 2"
},
{
"entryId": 22,
"batchCode": 0,
"description": "GAS 2"
},
{
"entryId": 23,
"batchCode": 0,
"description": "GAS"
},
{
"entryId": 24,
"batchCode": 0,
"description": "GAS"
},
{
"entryId": 26,
"batchCode": 0,
"description": "GAS"
},
{
"entryId": 29,
"batchCode": 0,
"description": "EQUIVALENCIA - AUTOMAÇÃO"
}
]
} |
|
|
|
|
|
Informações |
---|
| Expandir |
---|
title | GetOne (Recuperar Lançamento e Partida pela chave composta) |
---|
| Informações |
---|
| Nos parâmetros do GetOne é necessário passar uma chave composta ("id"), por isso informamos "companyId" (código da coligada), além do Lançamento que queremos selecionar, o "entryId" (Id de Lançamento), o "batchCode" (código Lote), sendo eles separados pelo caractere "|" pipe. |
Informações |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId}/{entryId}|{batchCode} Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"reversal": false,
"companyId": 6,
"entryId": 9,
"batchCode": 0,
"userId": "mestre",
"description": "GAS",
"accountEntry": [
{
"entryNumberId": 8,
"branchId": 12,
"branchName": "ESCOLA EXEMPLO 1",
"date": "2011-09-15T00:00:00-03:00",
"dateInclusion": "2017-09-15T11:44:42-03:00",
"companyIdDebitAccount": 6,
"debitAccount": "1.1.1.1.892",
"debitDescription": "COLIG. 6 FILIAL 12",
"companyIdCreditAccount": 6,
"creditAccount": "1.1.1.1.002",
"creditDescription": "Caixa Filial Rio de Janeiro",
"companyIdAgainstEntry": 0,
"value": 111.00,
"value2": 200.00,
"date2": "2011-09-15T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 8,
"idpartida": 8
},
"batchCodeOrigin": 0,
"userModified": "mestre",
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [],
"apportionmentCredit": [],
"valuesCurrencies": [],
"apportionmentValuesCurrencies": []
}
]
} |
|
|
|
|
|
|
| Informações |
---|
| Expandir |
---|
title | Post (Inserir um Lançamento e Partida) |
---|
| POST: Cria um novo lançamento no sistema. Informações |
---|
| Máscara de Url: http://{domínio}:{porta}/api/ctb/v1/AccountingEntries/{companyId} Informações |
---|
icon | false |
---|
title | Exemplo de Entrada |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| O JSON abaixo contém os dados para incluir uma nova partida na coligada 1 (um). Além dos dados comuns, estamos enviando informações de rateio gerencial, valores de multimoeda e campo complementar.
No caso de campo complementar observe que na requisição de envio os campos chave são suprimidos.
Bloco de código |
---|
language | js |
---|
theme | Emacs |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"companyId": 1,
"entryId": 0,
"batchCode": 0,
"userId": "mestre",
"description": "Inclusão de Lançamento VIA API com rateio - POST",
"accountEntry": [
{
"entryNumberId": 0,
"branchId": 1,
"departmentCode": "05",
"costCenterCode": "02.2.2.5",
"date": "2020-03-02T00:00:00-03:00",
"dateInclusion": "2024-04-03T14:45:58-03:00",
"companyIdDebitAccount": 1,
"debitAccount": "1.1.1.1.004",
"companyIdCreditAccount": 1,
"creditAccount": "1.1.1.1.900",
"companyIdAgainstEntry": 0,
"value": 1000.00,
"value2": 300.00,
"date2": "2020-03-02T00:00:00-03:00",
"complementaryFields": {
"responsabilidade": "03"
},
"apportionmentDebit": [
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "1.01.01.4",
"apportionmentId": 1094,
"entryNumberId": 0,
"value": 800.00
},
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "1.01.02.2",
"apportionmentId": 1095,
"entryNumberId": 0,
"value": 200.00
}
],
"apportionmentCredit": [
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "5.01",
"apportionmentId": 1096,
"entryNumberId": 0,
"value": 680.00
},
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "5.02",
"apportionmentId": 0,
"entryNumberId": 12765,
"value": 320.00
}
],
"valuesCurrencies": [
{
"companyId": 1,
"entryNumberId": 12765,
"currency": "$",
"value": 5000.0000
},
{
"companyId": 1,
"entryNumberId": 12765,
"currency": "€",
"value": 7000.0000
}
]
}
]
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Na resposta do resultado, são retornadas algumas informações adicionais. Destacamos especialmente o cálculo do rateio de multimoeda, realizado pelo sistema, bem como o valor percentual do rateio gerencial. Bloco de código |
---|
language | js |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"reversal": false,
"companyId": 1,
"entryId": 3001,
"batchCode": 0,
"description": "Inclusão de Lançamento VIA API com rateio - POST",
"accountEntry": [
{
"entryNumberId": 12768,
"branchId": 1,
"branchName": "TOTVS - Filial Belo Horizonte",
"departmentCode": "05",
"departmentName": "DCO - Depto Contabilidade",
"costCenterCode": "02.2.2.5",
"date": "2020-03-02T00:00:00-03:00",
"dateInclusion": "2024-04-03T14:45:58-03:00",
"companyIdDebitAccount": 1,
"debitAccount": "1.1.1.1.004",
"debitDescription": "Caixa Filial Belo Horizonte",
"companyIdCreditAccount": 1,
"creditAccount": "1.1.1.1.900",
"creditDescription": "ACOMPANHAMENTO ORÇAMENTÁRIO",
"companyIdAgainstEntry": 0,
"value": 1000.00,
"value2": 300.00,
"date2": "2020-03-02T00:00:00-03:00",
"integrateApplication": "C",
"generationType": "O",
"user": "mestre",
"complementaryFields": {
"codlote": 0,
"lctref": 13236,
"responsabilidade": "03",
"idpartida": 12768
},
"batchCodeOrigin": 0,
"operationId": 0,
"reversalAccountId": 0,
"groupAccountId": 0,
"accountId": 0,
"itemAmountRAS": 0,
"apportionmentDebit": [
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "1.01.01.4",
"apportionmentId": 1106,
"entryNumberId": 12768,
"value": 800.00,
"percentual": "80,000000000000000000"
},
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "1.01.02.2",
"apportionmentId": 1107,
"entryNumberId": 12768,
"value": 200.00,
"percentual": "20,000000000000000000"
}
],
"apportionmentCredit": [
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "5.01",
"apportionmentId": 1108,
"entryNumberId": 12768,
"value": 680.00,
"percentual": "68,000000000000000000"
},
{
"companyId": 1,
"date": "2020-03-02T00:00:00-03:00",
"companyIdAccountManagement": 1,
"accountManagementInactive": 0,
"accountManagementCode": "5.02",
"apportionmentId": 1109,
"entryNumberId": 12768,
"value": 320.00,
"percentual": "32,000000000000000000"
}
],
"valuesCurrencies": [
{
"companyId": 1,
"entryNumberId": 12768,
"currency": "$",
"value": 5000.0000
},
{
"companyId": 1,
"entryNumberId": 12768,
"currency": "€",
"value": 7000.0000
}
],
"apportionmentValuesCurrencies": [
{
"companyId": 1,
"apportionmentId": 1108,
"currency": "$",
"value": 3400.0000
},
{
"companyId": 1,
"apportionmentId": 1108,
"currency": "€",
"value": 4760.0000
},
{
"companyId": 1,
"apportionmentId": 1109,
"currency": "$",
"value": 1600.0000
},
{
"companyId": 1,
"apportionmentId": 1109,
"currency": "€",
"value": 2240.0000
},
{
"companyId": 1,
"apportionmentId": 1106,
"currency": "$",
"value": 4000.0000
},
{
"companyId": 1,
"apportionmentId": 1106,
"currency": "€",
"value": 5600.0000
},
{
"companyId": 1,
"apportionmentId": 1107,
"currency": "$",
"value": 1000.0000
},
{
"companyId": 1,
"apportionmentId": 1107,
"currency": "€",
"value": 1400.0000
}
]
}
]
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Negativo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
theme | FadeToGrey |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"code": "FE006",
"message": "Chave duplicada\r\n\r\nPossíveis causas:\r\n - inclusão de registro cujo valor da chave primária já existe\r\n - inclusão de registro cujo valor do índice único já existe",
"detailedMessage": null,
"helpUrl": null,
"details": [
{
"code": "Exception",
"message": "Violation of PRIMARY KEY constraint 'PKCLCOMPL'. Cannot insert duplicate key in object 'dbo.CLCOMPL'. The duplicate key value is (6, 8).\r\nThe statement has been terminated.",
"detailedMessage": null,
"helpUrl": null,
"details": [
{
"code": "Exception",
"message": "INSERT INTO [CLCOMPL] ([CODCOLIGADA], [CODLOTE], [LCTREF], [DOCUMENTO], [DIGITADOR], [KWHORA], [DATA], [VALIDADE], [RESPONSABILIDADE], [IDPARTIDA], [RECCREATEDBY], [RECCREATEDON], [RECMODIFIEDBY], [RECMODIFIEDON], [SPEDFCONT], [IDDMPL], [IDINTEIRO]) VALUES (6, 0, 28, null, null, , null, null, null, 8, 'mestre', '26/03/2024 09:38:59', 'mestre', '26/03/2024 09:38:59', null, null, 0)",
"detailedMessage": null,
"helpUrl": null,
"details": null
}
]
},
{
"code": "Exception",
"message": "INSERT INTO [CLCOMPL] ([CODCOLIGADA], [CODLOTE], [LCTREF], [DOCUMENTO], [DIGITADOR], [KWHORA], [DATA], [VALIDADE], [RESPONSABILIDADE], [IDPARTIDA], [RECCREATEDBY], [RECCREATEDON], [RECMODIFIEDBY], [RECMODIFIEDON], [SPEDFCONT], [IDDMPL], [IDINTEIRO]) VALUES (6, 0, 28, null, null, , null, null, null, 8, 'mestre', '26/03/2024 09:38:59', 'mestre', '26/03/2024 09:38:59', null, null, 0)",
"detailedMessage": null,
"helpUrl": null,
"details": null
}
]
} |
|
|
|
|
|
|