Now, using downpayment according this table https://docs.fiskaltrust.eu/docs/poscreators/middleware-doc/italy/reference-tables/ftpayitemcase the scu send to the epson printer this xml:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<printerFiscalReceipt>
<beginFiscalReceipt />
<printRecItem description="Artikel1" quantity="1,0" unitPrice="1" department="1" justification="1" />
<printRecItem description="Artikel2" quantity="1,0" unitPrice="2" department="1" justification="1" />
<printRecTotal description="Cash" payment="-1,0" paymentType="0" index="0" justification="1" />
<printRecTotal description="Cash" payment="2,0" paymentType="0" index="0" justification="1" />
<endFiscalReceipt />
</printerFiscalReceipt>
</soapenv:Body>
</soapenv:Envelope>
And get back:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<response success="false" code="PRINTER ERROR" status="16">
<addInfo>
<elementList>lastCommand,printerStatus</elementList>
<lastCommand>84</lastCommand>
<printerStatus>00100</printerStatus>
</addInfo>
</response>
</soapenv:Body>
</soapenv:Envelope>
I suppose that the real xml need to be this one:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<printerFiscalReceipt>
<beginFiscalReceipt />
<printRecItem description="Artikel1" quantity="1,0" unitPrice="1" department="1" justification="1" />
<printRecItem description="Artikel2" quantity="1,0" unitPrice="2" department="1" justification="1" />
<printRecTotal description="Discount" payment="1,0" paymentType="6" index="0" justification="1" />
<printRecTotal description="Cash" payment="2,0" paymentType="0" index="0" justification="1" />
<endFiscalReceipt />
</printerFiscalReceipt>
</soapenv:Body>
</soapenv:Envelope>
Because in that case i get back the real response.
The initial Request json (ft interface) is something like that:
{
"ftCashBoxID": "{{cashbox_id}}",
"cbTerminalID": "",
"ftPosSystemId": "7b5955e3-4944-4ff3-8df9-46166b70132a",
"cbReceiptReference": "12-1769703083674",
"cbArea": "0",
"cbUser": "Chef",
"cbCustomer": null,
"ftReceiptCaseData": null,
"ftReceiptCase": 5283883447184523265,
"cbChargeItems": [
{
"Amount": 1,
"Description": "Artikel1",
"ProductNumber": "1",
"Quantity": 1,
"VATRate": 22,
"ftChargeItemCase": 5283883447184523267,
"Moment": "{{current_moment}}",
"Position": 1
},
{
"Amount": 2,
"Description": "Artikel2",
"ProductNumber": "2",
"Quantity": 1,
"VATRate": 22,
"ftChargeItemCase": 5283883447184523267,
"Moment": "{{current_moment}}",
"Position": 2
}
],
"cbPayItems": [
{
"Quantity": 1,
"Moment": "{{current_moment}}",
"Description": "Cash",
"Amount": -1,
"ftPayItemCase": 5283883447185047552
},
{
"Quantity": 1,
"Moment": "{{current_moment}}",
"Description": "Cash",
"Amount": 2,
"ftPayItemCase": 5283883447184523265
}
],
"cbReceiptMoment": "{{current_moment}}"
}
Now, using downpayment according this table https://docs.fiskaltrust.eu/docs/poscreators/middleware-doc/italy/reference-tables/ftpayitemcase the scu send to the epson printer this xml:
And get back:
I suppose that the real xml need to be this one:
Because in that case i get back the real response.
The initial Request json (ft interface) is something like that: