The following JSON example shows a business case where an item is entered. The customer receives a 10% discount in the form of a rebate on the item, which he pays for in cash.
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": "344c3f86-447d-4a8f-8233-aa01d7151ace",
"DocumentId": "20210416T1123318372136+0200",
"CreateDate": "2021-04-16T11:23:31.8372136+02:00",
"BookDate": "2021-04-16T11:23:31.8372136+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": [
{
"DiscountValue": 2.280,
"Caption": "Rabatt",
"DiscountOrder": 0,
"Type": 1,
"TypeValue": 10.0
}
],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 1.0,
"QuantityUnit": null,
"ItemId": "001180",
"BaseNetValue": 19.16,
"BaseGrossValue": 22.80,
"BaseTaxValue": 3.64,
"GTIN": "8718274490558",
"BusinessTransactionType": 0,
"VatIdentification": 1,
"VatPercent": 19.0,
"NetValue": 17.24,
"GrossValue": 20.520,
"TaxValue": 3.280,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 20.520,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Comments
0 comments
Please sign in to leave a comment.