📄 epap JSON Format

Der folgende JSON-Body ist fiktiv und dient zur Orientierung.

Um den Kassenbon bei einem Nutzer einzuspeichern, muss eine gültige userID hinzugefügt werden. Falls die userID mit 'empty' gesendet wird, erzeugt die API einen QR-Code zur Darstellung auf einem Kundendisplay.

{
"store": {
"storeName": "Gartencenter Meier",
"storeID": "132324",
"registerID": "#23454",
"companyName": "Gartencenter Deutschland",
"companyID": "#23231",
"storeEmail": "store@examplecompany.com",
"storeWebsite": "examplecompany.com",
"storePhone": "00491324567835",
"storeUstID": "DE923892984",
"storeLogoLink": "www.linkToStoreImagePng.com",
"address": {
"streetAddress": "Beispielstraße 3",
"city": "Hannover",
"zipCode": "30159",
"country": "Deutschland",
"placesID": "ChIJDe82sbd0sEcRk0d2d86DDyQ",
"description": "Gartencenter Meier, Beispielstraße 3, Hannover",
"openingTimes": "MO - SA: 08:00 - 21:00 Uhr"
}
},
"productList": [
{
"productName": "Tomaten",
"EANCode": "273894340",
"productCount": 1,
"productWeight": 0.345,
"productCategory": "Lebensmittel",
"productTax": 0.07,
"productPriceIncludingVAT": 2.13,
"productPriceExcludingVAT": 1.99,
"totalProductPriceIncludingVAT": 0.74,
"totalProductPriceExcludingVAT": 0.69,
"additionalAttributes": [
{
"warrantyInYears": 2
},
{
"warrantyUntilTimeStamp": 15783902
},
{
"validUntilTimeStamp": 15787903
},
{
"instructions": "Gebrauchsanweisung etc."
}
],
"discounts": [
{
"amount": 0.15,
"percentage": 0.2,
"description": "20% Rabatt"
}
]
},
{
"productName": "Mango",
"EANCode": "245453",
"productCount": 2,
"productWeight": 0,
"productCategory": "Lebensmittel",
"productTax": 0.07,
"productPriceIncludingVAT": 2.14,
"productPriceExcludingVAT": 2,
"totalProductPriceIncludingVAT": 4.28,
"totalProductPriceExcludingVAT": 4,
"additionalAttributes": [
{
"validUntilTimeStamp": 15787903
}
],
"discounts": []
},
{
"productName": "Rasensamen 10kg",
"EANCode": "273894340",
"productCount": 1,
"productWeight": 0,
"productCategory": "Garten",
"productTax": 0.19,
"productPriceIncludingVAT": 16.99,
"productPriceExcludingVAT": 14.28,
"totalProductPriceIncludingVAT": 16.99,
"totalProductPriceExcludingVAT": 14.28,
"additionalAttributes": [
{
"warrantyInYears": 2
},
{
"warrantyUntilTimeStamp": 15783902
},
{
"instructions": "Mehr Informationen finden Sie unter www.rasensamen.de!"
}
],
"discounts": []
}
],
"payment": [
{
"type": "CARD",
"amount": 22.01,
"additionalInfo": {
"cardType": "Mastercard",
"paymentTimeStamp": 1543235735,
"paymentTransactionNumber": "2342434",
"traceNumber": "27834894290",
"maskedCardNumber": "##########28430002",
"terminalId": "03403439",
"authorizationCode": "HIU456HDDF67FH",
"authorizationMethodType": "00948"
},
"additionalAttributes": [
{
"bonusPoints": "823"
},
{
"visitsLastMonth": "4"
},
{
"key3": "value3"
}
]
},
{
"type": "VOUCHER",
"amount": 22.01,
"additionalInfo": {
"paymentTransactionNumber": "23444353"
},
"additionalAttributes": [
{
"bonusPoints": "823"
},
{
"visitsLastMonth": "4"
},
{
"key3": "value3"
}
]
},
{
"type": "CASH",
"amount": 22.01,
"additionalInfo": {
"givenAmount": 25
}
}
],
"receiptNumber": "89942344234",
"serialNumber": "AS63478TS",
"cashierID": "Frau Meier / 0234554",
"category": "Garten",
"totalSumBrutto": 22.01,
"totalSumNetto": 18.97,
"transactionStartTimeStamp": 1575398634000,
"transactionEndedTimeStamp": 1575398648000,
"transactionNumber": "AF78234GH",
"currencyISOCode": "EUR",
"userID": "toBeAdded",
"type":"new_epap",
"additionalNotes": "Zum Beispiel ein kurzer Werbetext."
}