Følgende JSON-eksempel viser forretningsscenariet for et internt forbrug, der betales af kunden via EC-kort.
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:
Det følgende eksempel kan være oprettet med en ældre version af Fiscal-klienten. 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!
{
"ModelVersion": "1.0.4",
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"AutomaticVatCalculation": 0,
"AllowedVatDeviation": 0.0,
"DocumentGuid": "49570d12-3382-464a-8bb3-ce791028a023",
"DocumentId": "49570d12-3382-464a-8bb3-ce791028a023",
"CreateDate": "2022-03-25T09:28:12.157357+01:00",
"BookDate": "2022-03-25T09:28:12.157357+01:00",
"ProcessStartDate": null,
"DocumentNumber": null,
"CancellationDocument": false,
"DocumentReference": null,
"IsTraining": false,
"DocumentType": 0,
"DocumentTypeCaption": null,
"User": {
"Id": "123",
"Caption": "TestUser"
},
"AllocationGroups": null,
"Partner": null,
"Notes": null,
"TaxPositions": null,
"FiscalResponse": null,
"FiscalDocumentNumber": 0,
"FiscalDocumentRevision": 0,
"FiscalDocumentStartTime": null,
"Positions": [
{
"ItemCaption": "Bread",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": true,
"ItemGroupId": null,
"ItemGroupCaption": null,
"Quantity": 1.0,
"QuantityUnit": null,
"ItemId": "003160",
"BaseNetValue": 3.18,
"BaseGrossValue": 3.4,
"BaseTaxValue": 0.22,
"GTIN": null,
"BusinessTransactionType": 0,
"VatIdentification": 2,
"VatPercent": 7.0,
"NetValue": 3.18,
"GrossValue": 3.4,
"TaxValue": 0.22,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false,
"AdditionalFields": {},
"ExternalIdentifier": []
}
],
"Payments": [
{
"Amount": 3.4,
"CurrencyIsoCode": "EUR",
"Caption": "EC",
"UniqueReadablePaymentIdentifier": "ECCARD",
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0,
"AdditionalFields": {},
"PaymentType": 1,
"VatIdentification": null,
"VatPercent": null,
"TaxValue": null,
"ExternalIdentifier": []
}
]
}
Denne artikel er oversat automatisk.
Kommentarer
0 kommentarer
Log ind for at kommentere.