Invoices

Invoice Created

Event type: 4

{ "event": { "type": 4, "guid": "4f5e3b8f48687807521a", "order": 1264 }, "customer": { "identifier": "9bd9ca2666e77754b82b", "url": "example.hellotess.com", "port": 443 }, "data": { "id": "0e9601bfe4a6faa247ad", "uid": "99fb7cc2-0312-581c-f7af-4d079fe70145", "number": "1-3-689", "cancelled": false, "date": "2017-04-10T12:03:12+01:00", "dateAdded": "2017-04-10T12:03:12+01:00", "numberOfGuests": 4, "zvtTraceNumber": "", "zvtDeviceId": "", "zvtTerminalType": "", "roomName": "", "location": { "store": { "id": "f8fb3b7d0fb990650821", "name": "Store 1, Musterstrasse 2, Musterstadt", "number": 2, "active": true, "invoiceReceiptData": { "header": "helloTESS", "headerLogo": null, "footer": "", "footerLogo": null } }, "terminal": { "id": "cg922e72a041607a6beb", "storeId": "f8fb3b7d0fb990650821", "name": "Test Terminal 1", "ip": "192.168.1.23", "port": 8080, "master": true, "externalPLU": "B8123", "terminalNumber": 2, "defaultTableId": "a01fe823972c4970b5bb", "bundleIdentifier": "com.hellotess.master", "iosVersion": "13.4.1", "cdVersion": "6.8.0", "tessVersion": "7.3.15", "lastSync": { "$DateValue": "2020-10-05 14:09:55" }, "active": true, "deviceId": "je927e72a041687a6beb" }, "shift": { "id": "f8fb3b7abcd990650821", "number": 245, "status": 0, "start": "2017-04-10T12:03:12+01:00", "end": "2017-04-10T12:03:12+01:00" }, "table": { "id": "$tableTheke", "name": "table 2", "roomId": "abcd3b7d0fb990650821", "storeId": "f8fb3b7d0fb990650821", "externalPLU": 8123, "numberOfSeats": 3, "active": false }, "signature": { "invoiceId": "0e9601bfe4a6faa247ad", "firstBookingTime": "2022-11-09T09:43:46Z", "startTime": "2022-11-09T08:09:52Z", "logTime": "2022-11-09T09:43:46Z", "serialNumber": "2u66za5fff2fdzyiq7cdaikee88ggfabgo65s3a2zh4vj6ad8pjijzdaexpoti5g", "startSignature": "kIUngg98374bKG8Vv9w+BgjoGDT9w3R9h5N8ChrRrMrK83uTQn+1kmw1COplsiyre/DbDZeZnk22ih5hsqKA==", "signature": "JWWT2XQjse5I2GNuDEezjrpUWTsB9fj0lKDm0nASVOaLsVhYvX8/rghvOtkUWQpqfMsmtiea/rO4JyST3whsSa==", "signatureCounter": 431, "transactionNumber": 102, "qrcode": "qrCodeString" } }, "articles": [ { "id": "12360154324a6f", "articleGroupId": "67890154324a6f", "plu": 4711, "name": "Cheeseburger", "basePrice": 1200, "price": 500, "quantity": 2, "totalPrice": 1000, "taxRate": 1900, "dateAdded": "2017-04-10T12:03:12+01:00", "isTakeAway": false } ], "payment": { "waiter": { "id": "defaef0fb990650821", "firstName": "Gustav", "surname": "Gans", "employeeNumber": 15689, "waiterNumber": 0, "active": true, "email": "gustav.gans@gmail.com", "roleId": "084a76183b411ea74c5a", "personellNumber": 1234, "mustChangePin": 0, "activeStores": {} }, "cashChangeCurrency": "€", "cashChangeExchanged": 100, "cashTenderedCurrency": "€", "cashTenderedExchanged": 100, "discounts": [ { "id": "471101bfe4a6faa247ad", "name": "50% Special Promotion", "type": "1: absolute", "amountInPercent": 5000, "amountInCents": 500, "enterDiscountOnPaying": true, "externalPLU": 4711576, "active": false } ], "methods": [ { "id": "081501bfe4a6faa247ad", "name": "Cash", "gross": 270 } ], "qrcode": "", "userGroup": {} }, "taxRates": [ { "rate": 1900, "gross": 1190, "net": 1000, "tax": 1000 } ], "totals": { "gross": 1190, "net": 1000, "tax": 190, "subvention": 0, "surcharge": 0 }, "customer": { "firstName": "Carl", "surname": "Customer", "company": "Whotherock GmbH", "address1": "Musterstrasse 123", "address2": null, "postalCode": 80335, "city": "Munich", "country": "Germany" } } }

Invoice cancelled

Event type: 4
data.cancelled: true

(Payload as above)