The following JSON example shows how to change items within a transaction.
The example is based on the client included in the Fiscal Service Sample Client {c1062c55-57c4-4ed2-9c53-aff1762326a4} (select via drop down menu).
Note: the following example may have been created with a historical version of the Fiscal Client. To ensure that the document corresponds to the current document model, use the up-to-date Fiscal Service Sample Client in combination with the latest version of the Fiscal Service and generate the JSON example in this way!
{
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"DocumentGuid": "22585869-93b4-41f3-aa77-d98b7728bd7e",
"DocumentId": "20210428T1305016361971+0200",
"CreateDate": "2021-04-28T13:05:01.6361971+02:00",
"BookDate": "2021-04-28T13:05:01.6361971+02:00",
"ProcessStartDate": null,
"DocumentNumber": null,
"CancellationDocument": false,
"DocumentReference": null,
"IsTraining": false,
"DocumentType": 0,
"DocumentTypeCaption": null,
"User": {
"Id": "123",
"Caption": "TestUser"
},
"AllocationGroups": null,
"Partner": null,
"FiscalResponse": null,
"FiscalDocumentNumber": 0,
"FiscalDocumentRevision": 0,
"FiscalDocumentStartTime": null,
"Positions": [
{
"ItemCaption": "Tulip",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 6.0,
"QuantityUnit": null,
"ItemId": "000169",
"BaseNetValue": 11.60,
"BaseGrossValue": 13.80,
"BaseTaxValue": 2.20,
"GTIN": null,
"BusinessTransactionType": 0,
"VatIdentification": 1,
"VatPercent": 19.0,
"NetValue": 11.60,
"GrossValue": 13.80,
"TaxValue": 2.20,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
},
{
"ItemCaption": "Rose",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 10.0,
"QuantityUnit": null,
"ItemId": "000322",
"BaseNetValue": 67.00,
"BaseGrossValue": 67.00,
"BaseTaxValue": 0.00,
"GTIN": null,
"BusinessTransactionType": 0,
"VatIdentification": 5,
"VatPercent": 0.0,
"NetValue": 67.00,
"GrossValue": 67.00,
"TaxValue": 0.00,
"AccountingIdentifier": null,
"PositionNumber": 1,
"PositionReference": null,
"CancellationPosition": false
},
{
"ItemCaption": "Rose",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": -2.0,
"QuantityUnit": null,
"ItemId": "000322",
"BaseNetValue": -13.40,
"BaseGrossValue": -13.40,
"BaseTaxValue": 0.00,
"GTIN": null,
"BusinessTransactionType": 0,
"VatIdentification": 5,
"VatPercent": 0.0,
"NetValue": -13.40,
"GrossValue": -13.40,
"TaxValue": 0.00,
"AccountingIdentifier": null,
"PositionNumber": 2,
"PositionReference": null,
"CancellationPosition": false
},
{
"ItemCaption": "Flower green",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 2.0,
"QuantityUnit": null,
"ItemId": "000714",
"BaseNetValue": 7.23,
"BaseGrossValue": 8.60,
"BaseTaxValue": 1.37,
"GTIN": null,
"BusinessTransactionType": 0,
"VatIdentification": 1,
"VatPercent": 19.0,
"NetValue": 7.23,
"GrossValue": 8.60,
"TaxValue": 1.37,
"AccountingIdentifier": null,
"PositionNumber": 3,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 76.00,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Comments
0 comments
Please sign in to leave a comment.