Il seguente esempio JSON illustra il caso d’uso di un consumo fuori sede (da asporto). All’importo del pagamento viene applicato un supplemento di 10 EUR, che il cliente paga in contanti.
L’esempio si basa sul client incluso nel Fiscal Service Client Sample {c1062c55-57c4-4ed2-9c53-aff1762326a4} (da selezionare tramite il menu a tendina).
Nota:
l’esempio seguente potrebbe essere stato creato con una versione precedente del client fiscale. Per garantire che il documento corrisponda al modello attuale, si prega di utilizzare il client di esempio del Fiscal Service
aggiornato in combinazione con l’ultima versione del Fiscal Service e di generare l’esempio JSON in questo modo!
{
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"DocumentGuid": "08720188-5363-4f6f-b4f1-7a10046524af",
"DocumentId": "20210428T0655589463593+0200",
"CreateDate": "2021-04-28T06:55:58.9463593+02:00",
"BookDate": "2021-04-28T06:55:58.9463593+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": "Flower blue",
"ItemShortCaption": null,
"Discounts": [
{
"DiscountValue": 10.0,
"Caption": "Aufschlag",
"DiscountOrder": 0,
"Type": 0,
"TypeValue": 10.0
}
],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 8.0,
"QuantityUnit": null,
"ItemId": "000452",
"BaseNetValue": 30.25,
"BaseGrossValue": 36.00,
"BaseTaxValue": 5.75,
"GTIN": null,
"BusinessTransactionType": 0,
"VatIdentification": 1,
"VatPercent": 19.0,
"NetValue": 38.66,
"GrossValue": 46.00,
"TaxValue": 7.34,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 46.00,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Questo articolo è stato tradotto automaticamente.
Commenti
0 commenti
Accedi per aggiungere un commento.