... | @@ -5,7 +5,7 @@ |
... | @@ -5,7 +5,7 @@ |
|
https://demo.ibrokers.cloud/comprobante/
|
|
https://demo.ibrokers.cloud/comprobante/
|
|
{
|
|
{
|
|
type: "setComprobantes",
|
|
type: "setComprobantes",
|
|
key: "6e1cb93d-f56f-41a1-93A5-5227c21370b1",
|
|
key: "XXX-XXX-XXX",
|
|
id_usuario_registra: "",
|
|
id_usuario_registra: "",
|
|
data: {
|
|
data: {
|
|
tipo_comprobante: "ingreso",
|
|
tipo_comprobante: "ingreso",
|
... | @@ -31,7 +31,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -31,7 +31,7 @@ curl --header "Content-Type: application/json" \ |
|
--data '
|
|
--data '
|
|
{
|
|
{
|
|
type: "setComprobantes",
|
|
type: "setComprobantes",
|
|
key: "6e1cb93d-f56f-41a1-93A5-5227c21370b1",
|
|
key: "XXX-XXX-XXX",
|
|
id_usuario_registra: "",
|
|
id_usuario_registra: "",
|
|
data: {
|
|
data: {
|
|
tipo_comprobante: "ingreso",
|
|
tipo_comprobante: "ingreso",
|
... | @@ -60,7 +60,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -60,7 +60,7 @@ curl --header "Content-Type: application/json" \ |
|
```json
|
|
```json
|
|
{
|
|
{
|
|
"estado": "error",
|
|
"estado": "error",
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"error": "No existe el campo key"
|
|
"error": "No existe el campo key"
|
|
}
|
|
}
|
|
```
|
|
```
|
... | @@ -69,7 +69,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -69,7 +69,7 @@ curl --header "Content-Type: application/json" \ |
|
```json
|
|
```json
|
|
{
|
|
{
|
|
"estado": "error",
|
|
"estado": "error",
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"error": "No existe id_usuario_registra",
|
|
"error": "No existe id_usuario_registra",
|
|
"key": ""
|
|
"key": ""
|
|
}
|
|
}
|
... | @@ -79,7 +79,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -79,7 +79,7 @@ curl --header "Content-Type: application/json" \ |
|
```json
|
|
```json
|
|
{
|
|
{
|
|
"estado": "error",
|
|
"estado": "error",
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"error": "No existe type",
|
|
"error": "No existe type",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": ""
|
|
"key": ""
|
... | @@ -90,7 +90,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -90,7 +90,7 @@ curl --header "Content-Type: application/json" \ |
|
```json
|
|
```json
|
|
{
|
|
{
|
|
"estado": "error",
|
|
"estado": "error",
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "",
|
|
"type": "",
|
|
"error": "No existe data",
|
|
"error": "No existe data",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -103,7 +103,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -103,7 +103,7 @@ curl --header "Content-Type: application/json" \ |
|
{
|
|
{
|
|
"estado": "error",
|
|
"estado": "error",
|
|
"data": "",
|
|
"data": "",
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "",
|
|
"type": "",
|
|
"error": "data debe ser un JSONObject",
|
|
"error": "data debe ser un JSONObject",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -116,7 +116,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -116,7 +116,7 @@ curl --header "Content-Type: application/json" \ |
|
{
|
|
{
|
|
"estado": "error",
|
|
"estado": "error",
|
|
"data": {},
|
|
"data": {},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "",
|
|
"type": "",
|
|
"error": "No existe tipo_comprobante en data",
|
|
"error": "No existe tipo_comprobante en data",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -131,7 +131,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -131,7 +131,7 @@ curl --header "Content-Type: application/json" \ |
|
"data": {
|
|
"data": {
|
|
"tipo_comprobante": ""
|
|
"tipo_comprobante": ""
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "",
|
|
"type": "",
|
|
"error": "No existe detalle en data",
|
|
"error": "No existe detalle en data",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -147,7 +147,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -147,7 +147,7 @@ curl --header "Content-Type: application/json" \ |
|
"tipo_comprobante": "",
|
|
"tipo_comprobante": "",
|
|
"detalle": ""
|
|
"detalle": ""
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "",
|
|
"type": "",
|
|
"error": "detalle debe ser un JSON Array",
|
|
"error": "detalle debe ser un JSON Array",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -163,7 +163,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -163,7 +163,7 @@ curl --header "Content-Type: application/json" \ |
|
"tipo_comprobante": "",
|
|
"tipo_comprobante": "",
|
|
"detalle": []
|
|
"detalle": []
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "",
|
|
"type": "",
|
|
"error": "Requiere al menos dos movimientos",
|
|
"error": "Requiere al menos dos movimientos",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -190,7 +190,7 @@ curl --header "Content-Type: application/json" \ |
... | @@ -190,7 +190,7 @@ curl --header "Content-Type: application/json" \ |
|
{}
|
|
{}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "Error en la key, su llave es invalida.",
|
|
"error": "Error en la key, su llave es invalida.",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
... | @@ -209,11 +209,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -209,11 +209,11 @@ curl --header "Content-Type: application/json" \ |
|
{}
|
|
{}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "Falta el campo observacion.",
|
|
"error": "Falta el campo observacion.",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -229,11 +229,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -229,11 +229,11 @@ curl --header "Content-Type: application/json" \ |
|
{}
|
|
{}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "Falta el campo glosa_comprobante.",
|
|
"error": "Falta el campo glosa_comprobante.",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -250,11 +250,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -250,11 +250,11 @@ curl --header "Content-Type: application/json" \ |
|
{}
|
|
{}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "JSONObject[\"debe\"] || JSONObject[\"haber\"] not found.",
|
|
"error": "JSONObject[\"debe\"] || JSONObject[\"haber\"] not found.",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -277,11 +277,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -277,11 +277,11 @@ curl --header "Content-Type: application/json" \ |
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "No existe codigo",
|
|
"error": "No existe codigo",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -311,11 +311,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -311,11 +311,11 @@ curl --header "Content-Type: application/json" \ |
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "No existe moneda",
|
|
"error": "No existe moneda",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -348,11 +348,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -348,11 +348,11 @@ curl --header "Content-Type: application/json" \ |
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "No existe la cuenta 2-02-01-2-95-05",
|
|
"error": "No existe la cuenta 2-02-01-2-95-05",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -385,11 +385,11 @@ curl --header "Content-Type: application/json" \ |
... | @@ -385,11 +385,11 @@ curl --header "Content-Type: application/json" \ |
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "Fallo al relacionar la cuenta contable (2-02-01-2-91-05) solo puede usar los siguientes auxiliares en esta cuenta (01 ,02 ,03 ).",
|
|
"error": "Fallo al relacionar la cuenta contable (2-02-01-2-91-05) solo puede usar los siguientes auxiliares en esta cuenta (01 ,02 ,03 ).",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -425,10 +425,10 @@ curl --header "Content-Type: application/json" \ |
... | @@ -425,10 +425,10 @@ curl --header "Content-Type: application/json" \ |
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"ip": "54.86.50.139",
|
|
"ip": "0.0.0.0",
|
|
"type": "setComprobantes",
|
|
"type": "setComprobantes",
|
|
"error": "No existe partida doble!! debe:100 - haber:200",
|
|
"error": "No existe partida doble!! debe:100 - haber:200",
|
|
"id_usuario_registra": "",
|
|
"id_usuario_registra": "",
|
|
"key": "6e1cb93d-f56f-41a1-93A5-5227c21370b1"
|
|
"key": "XXX-XXX-XXX"
|
|
}
|
|
}
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |