Please check HeroJSON Specification for implementation details!
{"merchant": {"name": "Global Receipt Delicatesse","companyID": "123456-7","branch": {"name": "Receipt Restaurant","subName":"FastFood","email": "restaurant@example.com","phone": "040-5086462","address": {"streetAddress": "Itsenäisyydenkatu 17 a 15","city": "Tampere","zipCode": "33500","country": "Finland"}}},"products": [{"name": "Ground Control","EANCode": "42222130165","quantity": "4","productId": "1234","quantityCode": "PCS","unitPriceIncVAT": 5180,"unitPriceIncVATDecimal": "51,80","totalAmountExcVAT": 18836,"totalAmountIncVAT": 20720,"vats": [{"VATRate": "24","VATAmount": 1884,"totalAmountExcVAT": 18836,"totalAmountIncVAT": 20720}],"discounts": [{"amount": 0,"percentage": "0.00","description": ""}],"freeText": "Product instructions etc","customAttributes": [{ "Warranty": "2 years" },{ "Valid until": "2020-11-26" }]}],"freeText": "Custom greetings etc","vats": [{"VATRate": "24","totalVATAmount": 1884,"totalAmountExcVAT": 18836,"totalAmountIncVAT": 20720}],"payments": [{"type": "CARD,CASH,VOUCHER,LOYALTY","amount": 20720,"attributes": {"cardType": "PaymentCard","maskedPAN": "401288******1881","timeStamp": "2018-11-26T12:35:34.678Z","terminalId": "BS-4545F9","unixTimeStamp": 1543235735,"referenceNumber": "12315352349","authorizationCode": "HIU456HDDF67FH","authorizationMethodType": "00948","transactionId": "123e4567-e89b-12d3-a456-426655440000"},"customAttributes": [{ "key": "value" },{ "key2": "value2" },{ "key3": "value3" }]},{"type": "LOYALTY","amount": 20720,"attributes": {"cardType": "Plussa","maskedPAN": "1881"},"customAttributes": [{ "ExtraBonus": "234 points" },{ "key2": "value2" },{ "key3": "value3" }]},{"type": "CASH","amount": 34920,"attributes": {"handedAmount": 40000}}],"customAttributes": [{ "key": "value" },{ "key2": "value2" },{ "key3": "value3" }],"receiptNumber": "89942344234","receiptTimeStamp": "2018-11-26T12:35:34.678Z","currencyISOCode": "EUR","totalVATAmount": 1884,"totalPriceExcVAT": 18836,"totalPriceIncVAT": 20720,}