The following JSON example shows a business case where an item is entered and paid for by the customer using multiple payment methods (cash and with two vouchers).
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": "55e1ea97-c93a-48b3-b92f-90784b397b15", "DocumentId": "20210423T0640597201442+0200", "CreateDate": "2021-04-23T06:40:59.7201442+02:00", "BookDate": "2021-04-23T06:40:59.7201442+02:00", "DocumentNumber": null, "CancellationDocument": false, "DocumentReference": null, "IsTraining": false, "DocumentType": 0, "DocumentTypeCaption": null, "User": { "Id": "123", "Caption": "TestUser" }, "AllocationGroups": [], "Partner": null, "FiscalResponse": null, "FiscalDocumentNumber": 0, "FiscalDocumentRevision": 0, "Positions": [ { "ItemCaption": "Wedding bouquet", "ItemShortCaption": null, "Discounts": [], "Type": 0, "UseSubItemVatCalculation": true, "SubItems": null, "InHouse": false, "Quantity": 3.0, "QuantityUnit": null, "ItemId": "001180", "BaseNetValue": 57.48, "BaseGrossValue": 68.40, "BaseTaxValue": 10.92, "GTIN": "8718274490558", "BusinessTransactionType": 0, "VatIdentification": 1, "VatPercent": 19.0, "NetValue": 57.48, "GrossValue": 68.40, "TaxValue": 10.92, "AccountingIdentifier": null, "PositionNumber": 0, "PositionReference": null, "CancellationPosition": false } ], "Payments": [ { "Amount": 34.20, "PaymentType": cash, "CurrencyIsoCode": "EUR", "Caption": null, "UniqueReadablePaymentIdentifier": null, "ForeignAmount": 0.0, "ForeignAmountExchangeRate": 0.0 }, { "Amount": 34.20, "PaymentType": "multiPurposeVoucher", "CurrencyIsoCode": "EUR", "Caption": "Voucher", "UniqueReadablePaymentIdentifier": null, "ForeignAmount": 0.0, "ForeignAmountExchangeRate": 0.0,
"AdditionalFields" {
"VoucherId": "string"
} } ] }
Comments
0 comments
Please sign in to leave a comment.