Følgende JSON-eksempel viser en test-/træningskvittering.
Træningskvitteringer accepteres kun i lande, hvor landepropertien »trainingModeAllowed« er »true« (se Landekarakteristika (fiscalCountryProperties)). I alle andre lande afviser skatte- og afgiftstjenesten dokumenter med »IsTraining«: »true« (valideringsfejl »Træningskvittering er ikke tilladt i dette land.«).
Eksemplet er baseret på den client, der er inkluderet i Fiscal Service Client Sample {c1062c55-57c4-4ed2-9c53-aff1762326a4} (vælg via rullemenuen).
Bemærk:
Følgende eksempel er muligvis oprettet med en ældre version af Fiscal Client. For at sikre, at dokumentet svarer til den aktuelle dokumentmodel, skal du bruge den opdaterede Fiscal Service Sample Client
i kombination med den nyeste version af Fiscal Service og generere JSON-eksemplet på denne måde!
{
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"DocumentGuid": "d3340fbf-d1aa-49bd-8de9-9517d8639606",
"DocumentId": "20210428T0705487446795+0200",
"CreateDate": "2021-04-28T07:05:48.7436849+02:00",
"BookDate": "2021-04-28T07:05:48.7456772+02:00",
"ProcessStartDate": null,
"DocumentNumber": null,
"CancellationDocument": false,
"DocumentReference": null,
"IsTraining": true,
"DocumentType": 0,
"DocumentTypeCaption": null,
"User": {
"Id": "123",
"Caption": "TestUser"
},
"AllocationGroups": null,
"Partner": null,
"FiscalResponse": null,
"FiscalDocumentNumber": 0,
"FiscalDocumentRevision": 0,
"FiscalDocumentStartTime": null,
"Positions": [
{
"ItemCaption": "Wedding bouquet",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 4.0,
"QuantityUnit": null,
"ItemId": "001180",
"BaseNetValue": 76.64,
"BaseGrossValue": 91.20,
"BaseTaxValue": 14.56,
"GTIN": "8718274490558",
"BusinessTransactionType": 0,
"VatIdentification": 1,
"VatPercent": 19.0,
"NetValue": 76.64,
"GrossValue": 91.20,
"TaxValue": 14.56,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 91.20,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Denne artikel er oversat automatisk.
Kommentarer
0 kommentarer
Log ind for at kommentere.