...
Example of Sending
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"CT2_DATA":"9/1/2023" ,
"CT2_LOTE": "008960",
"CT2_SBLOTE": "001",
"ITENS":[{
"CT2_MOEDLC": "01",
"CT2_DC" : "3",
"CT2_CREDIT": "CTBXATUC",
"CT2_DEBITO": "CTBXATUD",
"CT2_VALOR": 1500.60 ,
"CT2_HIST": "DOUBLE ENTRY ",
},
{
"CT2_MOEDLC": "01",
"CT2_DC" : "2",
"CT2_CREDIT": "CTBXATUC",
"CT2_VALOR": 1600 ,
"CT2_HIST": "DOUBLE ENTRY ",
}]
} |
Example of Answer
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"CompanyGroup": "T1", // company group in which the entry was inserted.
"CT2_FILIAL": "D MG 01 ", // Branch in which the entry was inserted.
"CT2_DOC": "000003", // Generated document number.
"error": "" // Error will be returned blank if the inclusion is successful. In case of error, the error description is returned.
} |
| Informações |
|---|
...
|
...
| |
** If the sent content of field CT2_HIST is greater than the size of the field in Protheus, the system automatically generates history carry-forward rows (CT2_DC = 4) depending on the size of field CT2_HIST |
...
...
Example of Sending
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"CT2_DATA": "09/01/2023" ,
"CT2_LOTE": "THIAGO",
"CT2_SBLOTE": "001",
"CT2_DOC" : "000003",
"CT2_LOTEST":"EST001",
"CT2_SBLOTEST":"001"
} |
Example of Answer
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"CompanyGroup": "T1", // company group in which the reversal entry was inserted.
"CT2_FILIAL": "D MG 01 ", // Branch in which the reversal entry was inserted.
"CT2_DOC": "000001", // Generated reversal document number.
"error": "" // Error will be returned blank if the reversal is successful. In case of error, the error description is returned.
} |
...
Example of Sending
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"CT2_DATA": "09/01/2023" ,
"CT2_LOTE": "000001",
"CT2_SBLOTE": "001",
"CT2_DOC" : "000005"
} |
Example of Answer
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"CompanyGroup": "T1", // company group in which the entry was deleted.
"CT2_FILIAL": "D MG 01 ", // Branch in which the entry was deleted.
"CT2_DOC": "000005", // Deleted document number.
"error": "" // Error will be returned blank if the deletion is successful. In case of error, the error description is returned.
} |
...