Here below the bundle log of my latest try:
Zap.create_document_v2_post_write ran at April 9, 2020, 2:40 p.m. as 7c754a19
the bundle:
{
"response": {
"status_code": 200,
"headers": {
"Server": "Apache-Coyote/1.1",
"Content-Length": "157",
"Date": "Thu, 09 Apr 2020 14:40:37 GMT"
},
"content": null
},
"zap": {},
"auth_fields": {
"api_key": "**********************************"
},
"request": {
"url": "https://www.app.fattura24.com/api/v0.3/SaveDocument",
"method": "POST",
"auth": null,
"headers": {
"Content-Type": "application/json; charset=utf-8",
"Accept": "application/json"
},
"params": {
"apiKey": "********************************",
"xml": "<?xml version='1.0' encoding='UTF-8'?><Fattura24><Document><Rows><Row><Description>prodotto bove</Description><Qty>5</Qty><Price>819.6721311475409</Price><Discounts>0</Discounts><VatCode>22</VatCode></Row></Rows><Date>2020-04-9</Date><DocumentType>I-force</DocumentType><SendEmail>false</SendEmail><VatDescription>22</VatDescription><CustomerName>Ingrassia Ciccio</CustomerName><CustomerFiscalCode>aaa</CustomerFiscalCode><payment>;object Object]</payment><customer>;object Object]</customer><general>;object Object]</general><TotalWithoutTax>-851.6393442622953</TotalWithoutTax><VatAmount>901.6393442622953</VatAmount><Total>50</Total><Payments><Payment><Paid>No</Paid><Amount>50</Amount><Date>2020-04-9</Date></Payment></Payments></Document></Fattura24>"
},
"data": null,
"files": {},
"allow_redirects": false
},
"action_fields": {
"customer":
{
"CustomerName": "Ingrassia Ciccio",
"CustomerFiscalCode": "aaa"
}
],
"general":
{
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": 1.0,
"Total": 5000.0
}
],
"payment":
{
"Paid": false
}
],
"products":
{
"Discounts": 0.0,
"Description": "prodotto bove",
"Qty": 5,
"Price": 1000.0,
"ProductPriceIncludesTaxes": true,
"ProductVatValue": 22.0,
"VatDescription": "22",
"ProductVatType": "PercentageRate"
}
]
},
"action_fields_full": {
"Discounts": "0",
"Paid": "No",
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": "1",
"Total": "\u20ac 50,00",
"Description": "prodotto bove",
"Qty": "5",
"Price": "\u20ac 10,00",
"ProductPriceIncludesTaxes": true,
"ProductVatValue": "22",
"VatDescription": "22",
"ProductVatType": "PercentageRate",
"CustomerName": "Ingrassia Ciccio",
"CustomerFiscalCode": "aaa",
"payment":
{
"Paid": false
}
],
"products":
{
"Discounts": 0.0,
"Description": "prodotto bove",
"Qty": 5,
"Price": 1000.0,
"ProductPriceIncludesTaxes": true,
"ProductVatValue": 22.0,
"VatDescription": "22",
"ProductVatType": "PercentageRate"
}
],
"customer":
{
"CustomerName": "Ingrassia Ciccio",
"CustomerFiscalCode": "aaa"
}
],
"general":
{
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": 1.0,
"Total": 5000.0
}
]
},
"action_fields_raw": {
"Discounts": "0",
"Paid": "No",
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": "1",
"Total": "{{83637924__COL$G}}",
"Description": "{{83637924__COL$D}}",
"Qty": "{{83637924__COL$F}}",
"Price": "{{83637924__COL$E}}",
"ProductPriceIncludesTaxes": true,
"ProductVatValue": "22",
"VatDescription": "22",
"ProductVatType": "PercentageRate",
"CustomerName": "{{83637924__COL$B}} {{83637924__COL$A}}",
"CustomerFiscalCode": "aaa"
},
"meta": {
"frontend": true
}
}
the results:
>
{
"description": "Operation completed successfully",
"documentId": "9519107",
"documentNumber": "60-2020"
}
]
the logs:
no logs recorded!
Zap.create_document_v2_pre_write ran at April 9, 2020, 2:40 p.m. as 47fb679f
the bundle:
{
"request": {
"url": "https://www.app.fattura24.com/api/v0.3/SaveDocument",
"method": "POST",
"headers": {
"Content-Type": "application/json; charset=utf-8",
"Accept": "application/json"
},
"params": {
"apiKey": "************************************"
},
"data": "{\"customer\": {\"CustomerName\": \"Ingrassia Ciccio\", \"CustomerFiscalCode\": \"aaa\"}], \"general\": {\"DocumentType\": \"I-force\", \"SendEmail\": false, \"AmountsFormat\": 1.0, \"Total\": 5000.0}], \"payment\": {\"Paid\": false}], \"products\": {\"Discounts\": 0.0, \"Description\": \"prodotto bove\", \"Qty\": 5, \"Price\": 1000.0, \"ProductPriceIncludesTaxes\": true, \"ProductVatValue\": 22.0, \"VatDescription\": \"22\", \"ProductVatType\": \"PercentageRate\"}]}",
"files": {}
},
"zap": {},
"auth_fields": {
"api_key": "**********************************"
},
"url_raw": "https://www.app.fattura24.com/api/v0.3/SaveDocument",
"action_fields": {
"customer":
{
"CustomerName": "Ingrassia Ciccio",
"CustomerFiscalCode": "aaa"
}
],
"general":
{
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": 1.0,
"Total": 5000.0
}
],
"payment":
{
"Paid": false
}
],
"products":
{
"Discounts": 0.0,
"Description": "prodotto bove",
"Qty": 5,
"Price": 1000.0,
"ProductPriceIncludesTaxes": true,
"ProductVatValue": 22.0,
"VatDescription": "22",
"ProductVatType": "PercentageRate"
}
]
},
"action_fields_full": {
"Discounts": "0",
"Paid": "No",
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": "1",
"Total": "\u20ac 50,00",
"Description": "prodotto bove",
"Qty": "5",
"Price": "\u20ac 10,00",
"ProductPriceIncludesTaxes": true,
"ProductVatValue": "22",
"VatDescription": "22",
"ProductVatType": "PercentageRate",
"CustomerName": "Ingrassia Ciccio",
"CustomerFiscalCode": "aaa",
"payment":
{
"Paid": false
}
],
"products":
{
"Discounts": 0.0,
"Description": "prodotto bove",
"Qty": 5,
"Price": 1000.0,
"ProductPriceIncludesTaxes": true,
"ProductVatValue": 22.0,
"VatDescription": "22",
"ProductVatType": "PercentageRate"
}
],
"customer":
{
"CustomerName": "Ingrassia Ciccio",
"CustomerFiscalCode": "aaa"
}
],
"general":
{
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": 1.0,
"Total": 5000.0
}
]
},
"action_fields_raw": {
"Discounts": "0",
"Paid": "No",
"DocumentType": "I-force",
"SendEmail": false,
"AmountsFormat": "1",
"Total": "{{83637924__COL$G}}",
"Description": "{{83637924__COL$D}}",
"Qty": "{{83637924__COL$F}}",
"Price": "{{83637924__COL$E}}",
"ProductPriceIncludesTaxes": true,
"ProductVatValue": "22",
"VatDescription": "22",
"ProductVatType": "PercentageRate",
"CustomerName": "{{83637924__COL$B}} {{83637924__COL$A}}",
"CustomerFiscalCode": "aaa"
},
"meta": {
"frontend": true
}
}
the results:
{
"url": "https://www.app.fattura24.com/api/v0.3/SaveDocument",
"method": "POST",
"headers": {
"Content-Type": "application/json; charset=utf-8",
"Accept": "application/json"
},
"params": {
"apiKey": "***********************************",
"xml": "<?xml version='1.0' encoding='UTF-8'?><Fattura24><Document><Rows><Row><Description>prodotto bove</Description><Qty>5</Qty><Price>819.6721311475409</Price><Discounts>0</Discounts><VatCode>22</VatCode></Row></Rows><Date>2020-04-9</Date><DocumentType>I-force</DocumentType><SendEmail>false</SendEmail><VatDescription>22</VatDescription><CustomerName>Ingrassia Ciccio</CustomerName><CustomerFiscalCode>aaa</CustomerFiscalCode><payment>;object Object]</payment><customer>;object Object]</customer><general>;object Object]</general><TotalWithoutTax>-851.6393442622953</TotalWithoutTax><VatAmount>901.6393442622953</VatAmount><Total>50</Total><Payments><Payment><Paid>No</Paid><Amount>50</Amount><Date>2020-04-9</Date></Payment></Payments></Document></Fattura24>"
},
"data": "{\"customer\": {\"CustomerName\": \"Ingrassia Ciccio\", \"CustomerFiscalCode\": \"aaa\"}], \"general\": {\"DocumentType\": \"I-force\", \"SendEmail\": false, \"AmountsFormat\": 1.0, \"Total\": 5000.0}], \"payment\": {\"Paid\": false}], \"products\": {\"Discounts\": 0.0, \"Description\": \"prodotto bove\", \"Qty\": 5, \"Price\": 1000.0, \"ProductPriceIncludesTaxes\": true, \"ProductVatValue\": 22.0, \"VatDescription\": \"22\", \"ProductVatType\": \"PercentageRate\"}]}",
"files": {}
}
the logs:
> "INFO\tZID: d8a6eb0b66e0 ZRUN: 2 RSSMEM: {\"rss\":71929856,\"heapTotal\":44863488,\"heapUsed\":24845600,\"external\":325152}"
Zap.test_api_key_post_poll ran at April 9, 2020, 2:38 p.m. as 641bfe72
the bundle:
{
"response": {
"status_code": 200,
"headers": {
"Server": "Apache-Coyote/1.1",
"Content-Length": "155",
"Date": "Thu, 09 Apr 2020 14:38:36 GMT"
},
"content": null
},
"zap": {},
"auth_fields": {
"api_key": "**************************************"
},
"request": {
"url": "https://www.app.fattura24.com/api/v0.3/TestKey",
"method": "GET",
"auth": null,
"headers": {
"Content-Type": "application/json; charset=utf-8",
"Accept": "application/json"
},
"params": {
"apiKey": "**************************************"
},
"data": null
},
"trigger_fields": {},
"meta": {
"auth_test": true
}
}
the results:
>
{
"returnCode": "1",
"description": "Complimenti, la tua API KEY è corretta."
}
]
the logs:
> "INFO\tZID: d8a6eb0b66e0 ZRUN: 1 RSSMEM: {\"rss\":37183488,\"heapTotal\":10772480,\"heapUsed\":6933456,\"external\":577762}"
> "ERROR\tentity not found:è \r@##line:1,col:76]"
if you look at <Price> you’ll find the value
819.6721311475409 but that should be 8.19……