Sljedeći JSON primjer prikazuje poslovni slučaj u kojem se unosi stavka, dodaju napojnice i kupac plaća gotovinom.
Primjer se temelji na klijentu uključenom u Fiscal Service Sample Client {c1062c55-57c4-4ed2-9c53-aff1762326a4} (odaberite putem padajućeg izbornika).
Napomena:
sljedeći primjer možda je izrađen pomoću starije verzije fiskalnog klijenta. Kako biste osigurali da dokument odgovara trenutnom modelu dokumenta, upotrijebite ažurirani primjer klijenta fiskalne usluge
u kombinaciji s najnovijom verzijom fiskalne usluge i na taj način generirajte JSON primjer!
{
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"DocumentGuid": "1e398c94-6f37-431b-af38-0ee4d01cc94e",
"DocumentId": "20210428T1257470869353+0200",
"CreateDate": "2021-04-28T12:57:47.0869353+02:00",
"BookDate": "2021-04-28T12:57:47.0869353+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": "Chocolate",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 6.0,
"QuantityUnit": null,
"ItemId": "003145",
"BaseNetValue": 19.07,
"BaseGrossValue": 20.4,
"BaseTaxValue": 1.33,
"GTIN": "7622300429331",
"BusinessTransactionType": 0,
"VatIdentification": 2,
"VatPercent": 7.0,
"NetValue": 19.07,
"GrossValue": 20.4,
"TaxValue": 1.33,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
},
{
"Type": 3,
"Caption": "",
"Identifier": null,
"BusinessTransactionType": 5,
"VatIdentification": 5,
"VatPercent": 0.0,
"NetValue": 2.0,
"GrossValue": 2.0,
"TaxValue": 0.0,
"AccountingIdentifier": null,
"PositionNumber": 1,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 22.4,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Ovaj je članak automatski preveden.
Komentari
0 komentara
Molimo Prijavite se kako bi ostavili komentar.