Poniższy przykład w formacie JSON przedstawia przypadek biznesowy zwrotu opakowań pustych (z uwzględnieniem podatku Vat).
Przykład opiera się na kliencie zawartym w przykładowym kliencie Fiscal Service Client Sample {c1062c55-57c4-4ed2-9c53-aff1762326a4} (należy wybrać z menu rozwijanego).
Uwaga:
poniższy przykład mógł zostać utworzony przy użyciu starszej wersji klienta Fiscal Client. Aby upewnić się, że dokument jest zgodny z aktualnym modelem dokumentu, proszę skorzystać z aktualnej wersji przykładowego klienta Fiscal Service Sample
Client
w połączeniu z najnowszą wersją usługi Fiscal Service i w ten sposób wygenerować przykładowy plik JSON!
{
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"DocumentGuid": "a99ef621-0e07-4384-a53f-9986816ae911",
"DocumentId": "20210428T0702552563915+0200",
"CreateDate": "2021-04-28T07:02:55.2563915+02:00",
"BookDate": "2021-04-28T07:02:55.2563915+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": "6er box empties",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 2.0,
"QuantityUnit": null,
"ItemId": "990001",
"BaseNetValue": 20.50,
"BaseGrossValue": 24.4,
"BaseTaxValue": 3.90,
"GTIN": null,
"BusinessTransactionType": 2,
"VatIdentification": 1,
"VatPercent": 19.0,
"NetValue": 20.50,
"GrossValue": 24.4,
"TaxValue": 3.90,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 24.4,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Ten artykuł został przetłumaczony automatycznie.
Komentarze
Komentarze: 0
Zaloguj się, aby dodać komentarz.